@open-charging-cloud/wwcp-poi 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/CHANGELOG.md +836 -498
  2. package/README.md +44 -32
  3. package/dist/crypto/ber.d.ts +48 -0
  4. package/dist/crypto/ber.d.ts.map +1 -0
  5. package/dist/crypto/certificates.d.ts +21 -0
  6. package/dist/crypto/certificates.d.ts.map +1 -0
  7. package/dist/crypto/curves.d.ts +25 -0
  8. package/dist/crypto/curves.d.ts.map +1 -0
  9. package/dist/crypto/ecc.d.ts +34 -0
  10. package/dist/crypto/ecc.d.ts.map +1 -0
  11. package/dist/crypto/publicKeys.d.ts +51 -0
  12. package/dist/crypto/publicKeys.d.ts.map +1 -0
  13. package/dist/crypto/rsa.d.ts +30 -0
  14. package/dist/crypto/rsa.d.ts.map +1 -0
  15. package/dist/encoding/text.d.ts +9 -0
  16. package/dist/encoding/text.d.ts.map +1 -1
  17. package/dist/evTaler/amounts.d.ts +89 -0
  18. package/dist/evTaler/amounts.d.ts.map +1 -0
  19. package/dist/evTaler/contractTerms.d.ts +107 -0
  20. package/dist/evTaler/contractTerms.d.ts.map +1 -0
  21. package/dist/evTaler/meterValue.d.ts +65 -0
  22. package/dist/evTaler/meterValue.d.ts.map +1 -0
  23. package/dist/evTaler/payURI.d.ts +28 -0
  24. package/dist/evTaler/payURI.d.ts.map +1 -0
  25. package/dist/evTaler/settlement.d.ts +85 -0
  26. package/dist/evTaler/settlement.d.ts.map +1 -0
  27. package/dist/evTaler/step.d.ts +72 -0
  28. package/dist/evTaler/step.d.ts.map +1 -0
  29. package/dist/history/apply.d.ts +6 -1
  30. package/dist/history/apply.d.ts.map +1 -1
  31. package/dist/history/changeSet.d.ts +18 -2
  32. package/dist/history/changeSet.d.ts.map +1 -1
  33. package/dist/history/checkpoint.d.ts +7 -0
  34. package/dist/history/checkpoint.d.ts.map +1 -1
  35. package/dist/history/commit.d.ts +13 -1
  36. package/dist/history/commit.d.ts.map +1 -1
  37. package/dist/history/elements.d.ts +19 -0
  38. package/dist/history/elements.d.ts.map +1 -0
  39. package/dist/history/history.d.ts +46 -6
  40. package/dist/history/history.d.ts.map +1 -1
  41. package/dist/history/preconditions.d.ts +22 -0
  42. package/dist/history/preconditions.d.ts.map +1 -0
  43. package/dist/index.d.ts +11 -4
  44. package/dist/index.d.ts.map +1 -1
  45. package/dist/index.js +9061 -1449
  46. package/dist/index.js.map +1 -1
  47. package/dist/json/canonical.d.ts.map +1 -1
  48. package/dist/keys.d.ts.map +1 -1
  49. package/dist/network/certificates.d.ts +16 -4
  50. package/dist/network/certificates.d.ts.map +1 -1
  51. package/dist/network/countries.d.ts +16 -0
  52. package/dist/network/countries.d.ts.map +1 -0
  53. package/dist/network/evTaler.d.ts +1 -14
  54. package/dist/network/evTaler.d.ts.map +1 -1
  55. package/dist/network/identifications.d.ts +6 -6
  56. package/dist/network/identifications.d.ts.map +1 -1
  57. package/dist/network/measurementPublicKey.d.ts +7 -0
  58. package/dist/network/measurementPublicKey.d.ts.map +1 -0
  59. package/dist/network/offers.d.ts +53 -0
  60. package/dist/network/offers.d.ts.map +1 -0
  61. package/dist/network/partyKeys.d.ts +8 -5
  62. package/dist/network/partyKeys.d.ts.map +1 -1
  63. package/dist/network/poiJSON.d.ts +172 -0
  64. package/dist/network/poiJSON.d.ts.map +1 -0
  65. package/dist/network/poiValues.d.ts +48 -0
  66. package/dist/network/poiValues.d.ts.map +1 -0
  67. package/dist/network/reading.d.ts +46 -0
  68. package/dist/network/reading.d.ts.map +1 -0
  69. package/dist/network/references.d.ts +36 -0
  70. package/dist/network/references.d.ts.map +1 -0
  71. package/dist/network/roamingNetwork.d.ts +10 -11
  72. package/dist/network/roamingNetwork.d.ts.map +1 -1
  73. package/dist/network/timeZones.d.ts +8 -0
  74. package/dist/network/timeZones.d.ts.map +1 -0
  75. package/dist/network/tree.d.ts +14 -0
  76. package/dist/network/tree.d.ts.map +1 -1
  77. package/dist/network/versionTexts.d.ts +1 -7
  78. package/dist/network/versionTexts.d.ts.map +1 -1
  79. package/dist/network/writtenForm.d.ts.map +1 -1
  80. package/dist/proofs/priceStatement.d.ts.map +1 -1
  81. package/dist/verifier/checkpoints.d.ts +6 -0
  82. package/dist/verifier/checkpoints.d.ts.map +1 -1
  83. package/package.json +14 -13
package/CHANGELOG.md CHANGED
@@ -1,498 +1,836 @@
1
- # Changelog
2
-
3
- ## Unreleased
4
-
5
-
6
- ## 0.2.0 (prepared; not yet published)
7
-
8
- Shared trust and session verification APIs, previously delivered as the unpublished 0.1.2-dev.0 development candidate.
9
- The experimental evidence and delegation profiles described below remain experimental in this release.
10
-
11
- - Shared association of an EVSE, its energy meter and its key, with an explicit normalization of SubjectPublicKeyInfo
12
- and COSE P-256 keys and a conservative freshness of the observation; no claim of a historical association.
13
- - Historical meter evidence per reading, and checkpoints verified under the current local authorization.
14
- - Prices bound to a session, their publication and their rates checked apart.
15
- - A shared comparison of authenticated versions: rollback and fork constraints the caller keeps durably, historical and
16
- current versions told apart, gaps filled, a change of the epoch refused unless verified.
17
- - The charging document keys of a CPO, an authority of their own; experimental delegation of a policy signed by two
18
- quorums, historical timelines of authorities, and verified epoch continuation and profiles.
19
- - Experimental receipts of a public retrieval of prices, a policy of witness organizations, networks and clocks of
20
- its own, restrictions of key usages and a conservative result before the signed start; no witness authorized
21
- automatically, no claim of the actual start or of the consent of the customer.
22
- - COSE and Metrological CBOR on ^0.12.0, so that direct and transitive consumers share one codec; existing proof and
23
- signature fixtures remain valid.
24
- - `trustPolicyId` is the SHA-256 of the canonical JSON of `{network, holders, minConsensus, urls}`, the URLs as a WHATWG
25
- URL serializes them without trailing slashes, in their ordinal order, as WWCP_POI3 calculates it
26
- (`TrustTransition.PolicyIdOf`); in place of their `JSON.stringify`, whose order of properties and escapes are those of
27
- JavaScript, so that every implementation calculates the same. Every policy identification changes: decisions an app
28
- keeps under one are made again, and transitions are signed again.
29
- - A commit is refused without its `json`, `cbor` and `effectiveTree` ETags (SPECIFICATION.md 8.3), as WWCP_POI3 refuses
30
- it; the epoch change of `tests/vectors/trust-transitions.json` names the ETags of its versions.
31
- - `trustTransitions.ts` and `documentKeys.ts` with the license header and in the layout of the other sources.
32
-
33
-
34
- ### Migration
35
-
36
- - Commits must name all three version ETags: `json`, `cbor` and `effectiveTree`. A commit accepted by 0.1.1 with
37
- only an effective-tree ETag is now refused. Producers must generate the complete ETags and sign the resulting commits
38
- and checkpoints again; do not edit previously signed documents or silently repair an archived original.
39
- - When moving from the unpublished 0.1.2-dev.0 candidate that used `JSON.stringify` for policy identity, recompute
40
- `trustPolicyId` from canonical JSON. Reconfirm local decisions under the new identity and regenerate and sign affected
41
- trust transitions. Retain old observations and original evidence; a changed policy identity must not erase known forks
42
- or rollbacks. Candidates already using canonical JSON keep their policy identities.
43
- - COSE and Metrological CBOR both require ^0.12.0. Keep both dependency ranges aligned in consumers that use them directly.
44
- - The minimum runtime remains Node 22.18, and the package remains ESM-only. Local trust decisions, durable observation
45
- storage and independently authorized witness policies remain the caller's responsibility. No production trust roots
46
- or witness service are bundled.
47
-
48
-
49
- ## 0.1.1 (2026-10-31)
50
-
51
- `TrustContext`, for apps that import a trust anchor before they trust its keys. `TrustContext.evaluate` checks a key
52
- statement against the identity keys of a trust anchor the app trusts locally and reports its signatures, signers, quorum
53
- and validity apart (`TrustEvaluation`); a context only when all of them hold, `TrustContext.create` throws otherwise.
54
- The context keeps the holders of the trust anchor and its quorum, and binds the roaming network, its operator, the
55
- signed key statement and the time of the evaluation. `OperatorTrust.of` and `fromOperatorJSON`, `verifyVersion`,
56
- `verifyChargingStation`, `ChargingStationProof.verify` and `verifyCheckpoint` take it in place of a trust anchor; given
57
- a trust anchor, they verify as before. The app keeps storing and showing its decisions and creates a context from its
58
- current decisions for every verification. Tested with genuine signatures, the proofs of the conformance tests and in
59
- Chromium.
60
-
61
- S31 and S32 of WWCP_POI `d6b0127`. A release keeps its version: a new version is a new release, so that a
62
- certificate naming a release names the version that was assessed. A change set updating or removing the `version` of a
63
- transparency software release is refused, and so is one removing a release and adding it again with another version,
64
- after its last change (`ChangedTransparencySoftwareVersion`; versions compared trimmed and without case, as
65
- `TransparencySoftwareVersion` compares them). The `notifiedBodyNumber` and `notifiedFor` of a conformity assessment
66
- body are the roaming network operator's, which vets the body, also once the body has keys: a body issuing a
67
- certificate under a legislation the same change set adds to its `notifiedFor` signs it together with the operator. A
68
- number names one body, in every version and after every change set (`DuplicateNotifiedBodyNumber`).
69
- `tests/releasesAndBodies.test.ts`, after `A_release_keeps_its_version` and
70
- `The_roaming_network_operator_says_what_a_body_is_notified_for`.
71
-
72
- A conformity assessment body is refused as its constructor in WWCP_POI refuses it, in its words and order: a
73
- `notifiedBodyNumber` not of four digits (nothing after them, also no line feed, since WWCP_POI `f53d220`), a legislation
74
- of `notifiedFor` empty or given twice (with case), a certificate issued under a legislation it is not notified for
75
- (exactly as written, its certificates in the ordinal order of their identifications), each wrapped as WWCP_POI wraps it,
76
- e.g. "The given JSON representation of a conformity assessment body is invalid: The certificate 'PTB-2026-0042' is issued
77
- under the legislation 'CRA', which the conformity assessment body 'PTB' is not notified for! (Parameter 'Certificates')";
78
- before them a `notifiedBodyNumber` that is no text and a `notifiedFor` that is no array of texts. A version is refused
79
- for what WWCP_POI refuses of an entity as it reads it before what it refuses of the network made of them, the
80
- identifications unique within the network last. Checked against WWCP_POI3 itself, on 33 versions of QA: the same, but
81
- for two refusals of one body at once, a key and its number. In a change set WWCP_POI names the change ("Change 0: …"),
82
- this library refuses the version it leads to.
83
-
84
- The four vectors of WWCPPOIConformanceTests `d4a4928` vendored, `poi-refusals.json` of 93 vectors: a key of a party
85
- whose `notAfter` is written with an offset, as a date only or as null, and one whose key is another CBOR of the same
86
- COSE key. WWCP_POI refuses them too since `a425530` (D13 there, SPECIFICATION.md 2, Written forms), as this library did;
87
- the key not in deterministic CBOR now in its words: "Invalid COSE key: Invalid deterministic CBOR: the key of the public
88
- key '…' is not written as the deterministic CBOR of its COSE key!"
89
-
90
-
91
- The four vectors of WWCPPOIConformanceTests `ad7c73e` vendored, `poi-refusals.json` of 97 vectors: a conformity
92
- assessment body as its constructor in WWCP_POI checks it, a certificate issued under a legislation it is not notified
93
- for, a notified body number of three digits, a legislation notified for empty, one given twice (D14 there, found against
94
- `1f914ac`, fixed by `4ff1fc2` here).
95
-
96
- The legislations a conformity assessment body is notified for are refused unless written in their ordinal order, as
97
- WWCP_POI writes them (Achim's decision of 2026-10-29, as D13 decided it for keys): WWCP_POI takes another order and
98
- writes it sorted, which written again would be another text than the one hashed. Refused as the body is read, before
99
- what its constructor checks, in the words of this library: "The legislations the conformity assessment body 'PTB' is
100
- notified for are written in their ordinal order!"
101
-
102
- The four vectors of WWCPPOIConformanceTests `012ce9d` vendored, `poi-refusals.json` of 101 vectors: a conformity
103
- assessment body as the content holds it, notified for legislations out of their ordinal order, with a notified body
104
- number that is no text, with a notifiedFor that is no array of texts, and with the number of another body. WWCP_POI
105
- refuses the order since `8108522`, in the words of this library.
106
-
107
- WWCP_POI `f53d220`: its regular expressions end with `\z`, no longer with `$`, which in .NET matched before a last line
108
- feed as well. A notified body number "0102" with a line feed is refused, which this library had taken as WWCP_POI took
109
- it; a certificate timestamp with a line feed after its offset was refused here already, as every check of this library
110
- ends at the end of its text.
111
-
112
- The content as WWCP_POI writes it (SPECIFICATION.md 2, Written forms): what WWCP_POI takes of a version and writes otherwise
113
- is refused, as written again it would be another text than the one hashed (Achim's decision of 2026-10-29, as D13
114
- decided it for keys and 9decdb5 for the legislations a body is notified for). Of every entity, `notWrittenAsHeld`, as a
115
- version is read, after everything WWCP_POI refuses of it, so that its words come first: what the content orders
116
- (its ordered lists, `POIJSON.OrderedIds`, entities, keys, exchanges) out of its ordinal order, the texts of an ordered list
117
- untrimmed, a list WWCP_POI writes only with an element given empty (about ninety; not the versions, releases and energy
118
- meters of a certificate, the elements of a price, the exchanges of a merchant, the identity keys of a key statement), a
119
- property given as null, an embedded object naming a JSON-LD context, a text in languages not naming each language as
120
- Styx writes it, in lower case, with a text, a timestamp not UTC to the millisecond; custom data held as given. Of a key of
121
- a party, a property WWCP_POI does not read; of an EV Taler merchant and its exchanges, such a property, a base URL not as
122
- Hermod writes it, trimmed and with its scheme, and a currency not by its code. In the words of this library, e.g.
123
- "'chargingStationOperators[0].chargingPools[1].paymentOptions' is not written as the content holds it: its elements are in the
124
- order the content holds them in!". The new values of a change set are checked by the same rules (`asGiven`), as
125
- WWCP_POI refuses a new value the content holds otherwise, "e.g. an empty array written as none". Found by probing
126
- WWCP_POI3 at 8108522 with 201 versions of QA: of the 20 it takes and writes otherwise this library took all, and
127
- refuses all now; every one it takes as given is taken, every one it refuses refused, and every version of the frozen run
128
- is written as the content holds it. `tests/writtenForm.test.ts`.
129
-
130
- What the constructor of the roaming network refuses, of a version, in the words of WWCP_POI: as an argument of its
131
- parameter, which its TryParse names, e.g. "The given JSON representation of a roaming network is invalid: The notified
132
- body number '0102' of the conformity assessment body 'PTB' is the one of the conformity assessment body 'BSI' already!
133
- (Parameter 'ConformityAssessmentBodies')", in its order (the groups of providers and the offers before the releases): the
134
- identifications unique within the network, and the key statement and the certificates of the roaming network operator
135
- (`KeyStatementError`, 'Operator'), its key statement of another network now before its certificates. After the last change
136
- of a change set they are named bare, in the order WWCP_POI checks them there (`RoamingNetwork.afterChangeSet`). The
137
- golden vectors held the inner words only. Checked against WWCP_POI3 at 8108522 on 10 versions of QA.
138
-
139
- The roaming network operator, its key statement and the certificates of its signing keys in the words and order of
140
- WWCP_POI3 (the TryParse of `RoamingNetworkOperator`, `RoamingNetworkKeyStatement` and
141
- `RoamingNetworkSigningKeyCertificate`), e.g. "A key statement requires its minConsensus, a whole number from 1 to 255!",
142
- "Invalid key in the identityKeys of a key statement!", "A signing key certificate requires the signingKey it certifies!";
143
- what this library refuses besides (properties it does not know, identity keys out of their order) after them. What the
144
- constructor of the operator refuses as an argument of it, "The given JSON representation of a roaming network operator is
145
- invalid: …": a certificate by the same identity key given twice, which this library took, a signing key certified in two
146
- forms, a key both a signing and an identity key, a quorum its keys do not have; the holder of a key as it names it ("the
147
- holder 'BetaOrg'"). The tree hash algorithms of a roaming network as `POITreeHashAlgorithms` names them, four refusals for
148
- the one of this library. An entity without its identification as Styx refuses it, "Missing JSON property '@id'!", which
149
- this library took but of the roaming network and its operator (`invalidIdentification`, first of all), and one of another
150
- JSON type in the words of the kinds WWCP_POI3 refuses it of ("Invalid 'charging pool identification'!"). Certificates and
151
- the versions of stations, meters, their templates and models without the prefix this library gave them ("The certificate
152
- '…': "), as WWCP_POI3 names them, with the parameter its constructor names ("(Parameter 'Versions')", 'HardwareRevisions',
153
- 'FirmwareVersions', 'Legislation', 'NotBefore', 'EnergyMeters'), a version twice in a model as an argument of the model; a
154
- certificate without its identification, of a certified meter a model of another JSON type, in its words.
155
-
156
- Of the written form also, as WWCP_POI3 takes and writes it otherwise: an entity without its lastChange, which it writes as
157
- its created; a party without its name, which it makes up of its kind and identification ("Charging Station Manufacturer
158
- 'GraphDefined'"); a text in languages without a language, but the name of a charging station operator, which it writes
159
- so; the releases of a certificate and the URLs of an open source license left out, which it writes also empty; the energy
160
- meters of a certificate given empty; an identification and the type of a charging connector given as a number.
161
-
162
- Probed against WWCP_POI3 at 8108522 with 617 versions of QA, of every kind of object a property it does not read, every
163
- property of it removed and given in another JSON type, the tree hash algorithms and the quorum of the operator, and 10
164
- of certificates and models: none it takes as given is refused here; of what it refuses, this library refuses all in its
165
- words but 20, of what it takes and writes otherwise all but the properties it does not read (25 kinds, which it leaves
166
- out). Not ported yet: properties of another JSON type or missing that WWCP_POI3 refuses (168, in the words of every kind)
167
- and the references it checks (23, of templates, tariffs, members, manufacturers, models, releases and certificates).
168
- `tests/operator.test.ts`, and in `writtenForm`, `identifications` and `certificates`.
169
-
170
- The 27 vectors of WWCPPOIConformanceTests `1c36c6d` vendored, `poi-refusals.json` of 128 vectors: versions not written as
171
- the content holds them (`version-held-*`), the 20 versions WWCP_POI3 at 8108522 took and wrote otherwise and more of their
172
- kinds (bodies, keys, payment options and exchanges out of their order, an untrimmed payment option, lists given empty, a
173
- property given as null, embedded JSON-LD contexts, texts in languages not as Styx writes them, a timestamp with an offset,
174
- properties of keys, merchants and exchanges not read, URLs and currencies not as written), ten with their eTags as
175
- published, their reasons in the words of this library, which refuses them since `5c534d4`. WWCP_POI refuses them as well
176
- since D15 of WWCPPOIConformanceTests, fixed there in `1c36c6d` (SPECIFICATION.md 2: a reader MUST refuse a version not
177
- written so).
178
-
179
- The written form as WWCP_POI3 refuses it since WWCP_POI `3de830a`, which writes a version again and walks both
180
- (RoamingNetwork.WrittenForm.cs, FirstNotWritten): `notWritten` walks a version in that order and in those words, the
181
- reasons of this library, which WWCP_POI took over, and two of its own. "the content leaves it out", of a property given
182
- that WWCP_POI does not write: of every entity a property its type in WWCP_POI3 neither writes (ToJSON) nor reads
183
- (PropertyKeys), drawn from it at `3de830a` for 33 kinds and checked against the 605 versions it wrote in the frozen run
184
- and the probes, of a key statement, its signatures, a certificate of a signing key, a coordinate, a price component and
185
- a public key of a meter as well; `dataLicenseIds`, which a version names completely (`dataLicenses`), a license it does not know
186
- in its words; a text in languages without a language WWCP_POI reads. "the content holds it as '…'", of a value it writes
187
- otherwise, by the path of that value: the lastChange of an entity naming none (its created), the name of a party naming
188
- none (not of grid and parking operators), the lists it writes also empty, an identification given as a number, texts
189
- its types write trimmed (identifications, references, currencies, versions, e-mail addresses, URLs), URLs with the
190
- scheme https, the identification of a charging station operator in upper case, the role of a meter, the legal status of
191
- a release and signature methods as they are named, coordinates as doubles (50.92710 as 50.9271; quantities keep their
192
- decimals). Of a release and its licenses, a certificate and the meters it was issued with, a property they do not read
193
- as WWCP_POI2 refuses it ("Unknown property 'x'."). The roaming network and its operator compared without case and
194
- trimmed, as their types read them, also of the key statement and the certificates, signed as read. Seven cases keep the
195
- words of this library, refused where it reads them, before the written form, as WWCP_POI takes them over (Achim's
196
- decision of 2026-10-30): a property of a key of a party, of an EV Taler merchant or of an exchange, the merchant base URL,
197
- the base URL and the currency of an exchange not as written. Probed against WWCP_POI3 at `3de830a` with 1257 versions of
198
- QA: none it takes is refused here; of what it refuses as written otherwise, all in its words but those seven.
199
-
200
-
201
- ## 0.1.0 (2026-10-29)
202
-
203
- The first milestone: the examples A1 to A14 of WWCP_POI (commit `33447ac`) checked in TypeScript.
204
-
205
- The findings of the review this port made of the C# implementation are cited as csharp-review N, N the number of the
206
- finding in
207
- [docs/csharp-review.md of WWCPPOIConformanceTests](https://github.com/OpenChargingCloud/WWCPPOIConformanceTests/blob/master/docs/csharp-review.md);
208
- `docs/` of this repository held it up to `b9c786e`.
209
-
210
- - Canonical JSON and deterministic CBOR of Styx; a lossless JSON parser keeping decimals as `System.Decimal` holds them.
211
- - COSE keys, RFC 9679 thumbprints, signatures ES256/384/512, ES256K, ESP*, ESB*, Ed25519, Ed448, ML-DSA-44/65/87.
212
- - Trust anchors (QR code, URL, JSON), key statements, certificates of signing keys; trust following the key statements
213
- of a history (`OperatorTrust.followedBy`).
214
- - Roaming networks with their ETags, effective members and the effective tree; proofs of charging stations, attestations,
215
- the manufacturers and models of the station and its meters (`manufacturer`, `energyMeterModels`), the transparency
216
- software and certificates of their energy meters.
217
- - Change sets with their owners' signatures, commits, linear histories, checkpoints, their proofs and signatures by the
218
- roaming network operator and by witnesses, archive segments; epochs, their final checkpoints and the genesis of the
219
- next one.
220
- - Charging station and energy meter manufacturers, parties stating their models; transparency software manufacturers and
221
- conformity assessment bodies, parties holding their releases and certificates; the key usages `models`, `software` and
222
- `certificates`; energy meter templates and groups.
223
- - Price statements, their chains, checkpoint trees and proofs; evidence of a charging session as the app of example A10
224
- keeps it (`parseEvidence`).
225
- - The runtime status: status updates, frames of the WebSocket of a history, the runtime status of a snapshot.
226
- - `POIClient`: the proof of a charging station and its prices, from the servers of a trust anchor.
227
-
228
- Moving from the examples at `2d9511d` to `bbd4cbd` also made the ownership of changes the one of the C# implementation
229
- where the port differed: identity keys of the roaming network operator counted for every change of a party, not only for
230
- its keys; where it signs in place of a party without keys, its signing keys counted when they may sign `party`, not
231
- when they may sign the usage of the change (csharp-review 13); its identity and signing keys counted alike for
232
- everything it owns; and the signing keys of a party could not rotate its signing keys. The values of change sets are
233
- kept in the order the C# implementation keeps them in (csharp-review 10).
234
-
235
- Moving on to `801bbce`, the manufacturers became parties: the roaming network operator adds and removes them, they change
236
- their own properties and state their models with a key that may sign `models`, every change of a model naming its
237
- manufacturer. A change set changes only the properties of a party the C# implementation lets it change, so that the
238
- models, releases and certificates of a party are not replaced as one of its properties by a key that may not sign them.
239
- `forThisModel` of the transparency software of a meter asks for the version of the certificate among the versions of the
240
- model as well.
241
-
242
- Node.js 22.18 is the minimum, as of ChargyCore.TS: Node 20 has reached its end of life, and tsup 9, Vitest 5 and
243
- ESLint 10 do not run on it. The code follows the ESLint rules of ChargyCore.TS; where a missing value used to be asserted
244
- away, it is refused with a `POIError` saying what is missing. Tests of the bundle as published (its imports, its
245
- declarations for TypeScript apps, the files `npm pack` takes) and of the library in Chromium join the tests in Node; GitHub
246
- Actions run all of them on every push, and every night against floating dependencies, the newest codecs of Vanaheimr, and
247
- the C# examples of WWCP_POI as they are.
248
-
249
- The test vectors moved to WWCPPOIConformanceTests, which generates golden vectors - canonical JSON and CBOR, encodings,
250
- the examples of section 6 of the specification, signed station proofs against a trust anchor, the documents of the run of
251
- the C# examples, and documents to refuse - and runs them against this library and the C# implementation alike. This
252
- repository vendors them in `tests/vectors` and runs them in `tests/conformance.test.ts`. The nightly check against the C#
253
- examples of WWCP_POI master moved there as well.
254
-
255
- The codecs of Vanaheimr are `@vanaheimr/cose` 0.10.0 and `@vanaheimr/metrological-cbor` 0.11.1: `@vanaheimr/cose` 0.9.0
256
- brought a CBOR codec 0.10 of its own next to the 0.11 this library uses, so that an app installed two copies of it; now
257
- there is one.
258
-
259
- The digest of a price statement leaves its signature value out, as WWCP_POI does since `dbf39b0` (SPECIFICATION.md 12.1):
260
- the SHA-256 of its signature input. The ECDSA twin `(r, n − s)` of a statement, which anybody can make of it, is the same
261
- statement, of the same digest (csharp-review 2); `PriceStatement.sameSignedContent` is gone. The test vectors
262
- are those WWCPPOIConformanceTests generates for it, with a new run of the C# examples at `dbf39b0`
263
- (`tests/vectors/csharp-dbf39b0`).
264
-
265
- The price statements of an entity are one chain in whichever spelling they name it, as WWCP_POI keys them since
266
- `4680d99` (SPECIFICATION.md 12.1 to 12.3, `RoamingNetworkHistory.ChainOf`): by its type and its identification without
267
- `*`, whitespace around it, or case (`priceStatementChainOf`, `PriceStatement.chain`), so that `DE*GEF*E1*1` and
268
- `DE*GEF*E11` are one EVSE and a split view between them is seen. `follows` compares chains; `verifyPriceStatements`
269
- refuses a statement naming an entity of the station otherwise than the roaming network does, before its signature is
270
- looked at; `verifyCheckpointPriceStatements` refuses a checkpoint naming two statements of one entity and sequence with
271
- different digests, in the order of its tree, both in the words of WWCP_POI. A sequence is at most 2^53 − 1
272
- (`MAX_PRICE_STATEMENT_SEQUENCE`), as it was read here already. Not ported, as they bound what a server takes: a statement
273
- more than 1,000,000 beyond the current one of its entity, and the statements a server keeps per operator for its next
274
- checkpoint. The golden vectors hold both refusals (`tests/vectors/poi-refusals.json`, 75 vectors): the
275
- statement of example A10 naming its EVSE as `DE*GEF*E11`, checked with the proof of its station
276
- (`entityPriceStatement`), and checkpoint 4 naming a fourth statement of one sequence, in the other spelling and of
277
- another price (`checkpointPriceStatements`, its control the checkpoint and its statements as published).
278
-
279
- The holders of a quorum are counted as the trust anchor names them, as WWCP_POI does since `3e32f48` (SPECIFICATION.md
280
- 4.1, 8.6; csharp-review 1): a trust anchor names the keys per holder, the `@id` of its key or the array of the
281
- `@id`s of its keys (`TrustAnchor.holders`; in the URL the holders separated by `,`, the keys of one holder by `;`).
282
- `KeyStatement.verifyHolders` counts the holders as the verifier knows them and refuses a statement naming the trusted
283
- keys otherwise; a station proof, `OperatorTrust` and the signatures of checkpoints count an attestation or a signature
284
- for the holder of the trusted identity key that certified its key. A change set naming a key of a party with another
285
- holder than before is refused.
286
-
287
- A change set is identified by its content, as WWCP_POI does since `bc3b1bd` (SPECIFICATION.md 4, 5.2;
288
- csharp-review 4): its `@id` is the SHA-256 of its canonical JSON with its `@context`, without `@id` and
289
- signatures (`changeSetIdentification`), so that nobody commits another change set in the place of one. `ChangeSet.parse`
290
- refuses a change set identified otherwise, and one naming change sets in `metadata.rebasedFrom` it was not rebased from;
291
- `Commit.parse` reads the change set of a commit as well and refuses a commit with one parent whose change set has no
292
- changes or the identification of a merge. The test vectors are those of a new run of the C# examples at `bc3b1bd`
293
- (`tests/vectors/csharp-bc3b1bd`).
294
-
295
- A change set gives its new values as the content holds them, as WWCP_POI requires since `80e4ccc` (SPECIFICATION.md 2,
296
- 4; csharp-review 10): a new value is applied as it is given, no longer written anew as the C# model would, and
297
- one that names a JSON-LD context in what it embeds (custom data aside, which keeps it), gives identified elements, keys,
298
- certificates or the lists of section 2 out of their order or twice, or a timestamp not UTC to the millisecond is
299
- refused. An old value is compared as it is given. The test vectors are those of a new run of the C# examples at
300
- `80e4ccc` (`tests/vectors/csharp-80e4ccc`).
301
-
302
- An attestation gives its `validUntil`, at most 24 hours after its `signedAt`, as WWCP_POI requires since `be07037`
303
- (SPECIFICATION.md 8.5, 8.6, 12.1; csharp-review 7): `Attestation.parse` refuses one without or valid longer
304
- (`MAX_ATTESTATION_VALIDITY`), so that none is valid forever. The `signedAt` of an attestation or a price statement is the
305
- choice of its signer: the signing key of an attestation counts when it is valid when it attested and at the time the proof
306
- is checked, and a price statement is current no longer than its key.
307
-
308
- A version naming twice an identification WWCP_POI keeps unique within the roaming network is refused, as WWCP_POI refuses
309
- it (`DuplicateGridConnectionPoint` to `DuplicateEnergyMeterTemplate` of RoamingNetwork.cs): grid connection points, energy
310
- meters, parking garages, spaces, sensors, space groups, space templates and products, transparency software releases and
311
- certificates, energy meter templates and groups, the EVSE, charging station and charging pool groups of operators and
312
- providers, and charging tariff offers, compared as their C# types compare them, without case but parking products, the
313
- groups by the prefix of their party, `DE-GDF` as `DE*GDF` (`duplicateIdentification`). `RoamingNetwork.parse` checks every
314
- version it reads, also the one a change set leads to: before, an operator could add a group of the identification a group
315
- of the provider of its prefix has, and its change set was taken with the after ETags this library calculates. The golden
316
- vectors `version-twice-*` of WWCPPOIConformanceTests hold both implementations to it, refused in the same words (`reason`).
317
-
318
- The roaming network operator signs in place of a party without signing keys, e.g. the certificates of a conformity
319
- assessment body or the grid connection points of a grid operator not taking part, by a signing key that may sign
320
- `party`, as the examples certify its keys, as WWCP_POI does since `36bb176` (SPECIFICATION.md 4.1; csharp-review 13):
321
- `checkOwnership` counts its signing keys that may sign `party` besides those that may sign the usage of the change.
322
- A change set taken before is taken still.
323
-
324
- A change set naming `rebasedFrom` with a change, but an `Add` or `AddElement`, without `oldValue` is refused, as WWCP_POI
325
- refuses it since `1717ee2` (SPECIFICATION.md 4; csharp-review 12): only old values tell that a change set
326
- committed meanwhile changed what it changes, which such a rebase may have overwritten. One not rebased is read as before.
327
- The golden vector `changeSet-rebased-without-old-value` holds both implementations to it.
328
-
329
- A model of charging stations or energy meters names its `hardwareRevisions` and `firmwareVersions`, and a charging
330
- station and an energy meter one `hardwareRevision` and one `firmwareVersion` of it, as WWCP_POI does since `7e0b0ac`
331
- (csharp-review 16); a certificate (`ConformityCertificate`, the `certificates` of a conformity assessment body)
332
- is for a model of charging stations or of energy meters, in the hardware revisions and firmware versions it covers, and
333
- names its components, the transparency software and, of a station model, the energy meters it was issued with; a
334
- station and a meter name the certificates of their models in `certificateIds`, and the `transparencySoftwareStatus` of
335
- a meter names a release and its legal status, no certificate, as WWCP_POI does since `987fa26` (csharp-review 17).
336
- Change sets change them, effective members take them of their templates, and a certificate is unique within the
337
- network. `verifyChargingStation` gives the `certificates` the station and its meters name, each with `forThisModel`:
338
- whether it is for the model, the hardware revision and the firmware version of what names it; the `transparencySoftware`
339
- of a meter gives the certificates naming its release, no longer a certificate of its own. The test vectors are those of
340
- a new run of the C# examples at `987fa26` (`tests/vectors/csharp-987fa26`).
341
-
342
- A charging station signing measurements itself names its `serialNumber`, `transparencySoftwareStatus`,
343
- `signatureMethods` and `publicKeys` as an energy meter does, and the `modelURL` of its model; an EVSE names its
344
- `iso15118Certificate`, as WWCP_POI does since `52f1172`. Change sets change them; an effective station takes the model
345
- URL, the releases and the signature methods of its templates besides its own, never the serial number, the public keys
346
- or the ISO 15118 certificate of the single device; and a change set giving the releases of a station or a meter out of
347
- the order of their identifications, or one twice, is refused. `verifyChargingStation` gives the releases the station
348
- names among its `transparencySoftware`, proven by the certificates of the station; each entry names what names it,
349
- `namedBy` as of a certificate, in place of `energyMeterId` (`NamedTransparencySoftware` in place of
350
- `MeterTransparencySoftware`). The test vectors stay those of the run at `987fa26`: no station of its examples signs
351
- measurements itself.
352
-
353
- The first checkpoint of an epoch takes signatures of the algorithms of its epoch and of the epoch before, no other, as
354
- WWCP_POI does since `65e658d` (SPECIFICATION.md 11.3; csharp-review 14): a history started by
355
- `startNextEpoch` knows the profiles of the epoch it closed, one started from a snapshot those its `epoch` names as
356
- `previousProfiles` (`History.previousEpochProfiles`), and those of the first epoch are the default ones; without them
357
- it takes the algorithms of its own epoch alone. A snapshot of the epoch 2 naming profiles of the epoch before is refused.
358
-
359
- A certificate the roaming network operator adds or changes in place of a conformity assessment body without signing keys
360
- says so, `"statedBy": "roamingNetworkOperator"`, as WWCP_POI requires since `65e658d` (SPECIFICATION.md 4.1;
361
- csharp-review 15): a change set adding or changing a certificate whose `statedBy` does not say who signs it, as
362
- the version before has the keys of the body, is refused. `verifyChargingStation` gives each certificate with `statedBy`,
363
- `ConformityAssessmentBody` or `RoamingNetworkOperator`, in place of `bodyHasKeys`, which could not tell them apart once
364
- the body had keys. The test vectors stay those of the run at `987fa26`: none of its examples has a third epoch or a
365
- certificate stated in place of a body.
366
-
367
- A version naming a hardware revision, firmware version or serial number WWCP_POI refuses is refused, read or led to by a
368
- change set, as WWCP_POI reads them since `c31e5e3` and `3672b06` (`HardwareRevision`, `FirmwareVersion`,
369
- `SerialNumber`): a text as it is given, not empty and neither beginning nor ending with whitespace as `Char.IsWhiteSpace`
370
- tells it, of charging stations, energy meters and their templates, of the models of their manufacturers, and of
371
- certificates and the energy meters they were issued with, each once in a model, a certificate and such an energy meter
372
- (`ModelVersions.Of`), in the words of WWCP_POI (`invalidVersionText`, which `RoamingNetwork.parse` checks with
373
- `duplicateIdentification`, and for certificates `invalidCertificates`, below). Whether one is of the model of what names
374
- it stays with the references, which this library
375
- leaves to WWCP_POI. The test vectors stay those of the run at `987fa26`, whose versions name none it refuses; the vectors
376
- `version-text-*` of WWCPPOIConformanceTests, its head so changed, hold both implementations to it, refused in the same
377
- words (`reason`).
378
-
379
- The golden vectors of WWCPPOIConformanceTests hold, besides the run of the C# examples, small histories it signs itself
380
- (`tests/vectors/poi-histories.json`), replayed step by step in `tests/conformance.test.ts`: who signs in place of a
381
- party without keys, who states a certificate, old values and rebases, keys expired and removed, new values as the
382
- content holds them, `lastChange` of what embeds a change, and three epochs (csharp-review 3, 8, 10, 12 to 15). Ten of
383
- them - the references a version holds, the groups of e-mobility providers, grid connection points - this library
384
- leaves to WWCP_POI, and does not run. They found a deviation of this library (D8 of WWCPPOIConformanceTests): a change
385
- set signed, besides by its owner, by a key of a party not valid at its `createdAt` was taken here, and refused by
386
- WWCP_POI. Every signature by a key of a party of the version is now by one valid at the `createdAt` of the change set,
387
- also one besides the signatures of the owners, refused otherwise in the words of WWCP_POI (`TryGetSigners`); only a new
388
- identity key, which proves its possession, may be one valid later (SPECIFICATION.md 4.1).
389
-
390
- A version naming a certificate WWCP_POI refuses to read is refused, read or led to by a change set, as
391
- `ConformityCertificate` and `CertifiedEnergyMeter` of WWCP_POI read them (`src/network/certificates.ts`,
392
- `invalidCertificates`, which `RoamingNetwork.parse` checks after `invalidVersionText`): for exactly one model, with its
393
- manufacturer; at least one hardware revision and one firmware version, also of each energy meter it was issued with, as
394
- an object of its manufacturer and its model; an absolute `documentURL`, a legislation not empty, timestamps with an
395
- explicit offset, `notBefore` not after `notAfter` to the tick; at least one release, each once (compared ordinally once
396
- trimmed, as WWCP_POI does), none both verified and compatible (compared without case); energy meters of a charging
397
- station model only, each model once, compared without case. Refused in the words and in the order of WWCP_POI: first
398
- what it reads as the arguments of a certificate, by their path, then what its constructor checks. Its versions as
399
- texts moved there from `invalidVersionText`, in the same words. The vectors `version-certificate-*` of
400
- WWCPPOIConformanceTests found that this library took all of them (D9) and hold both implementations to it. Whether a
401
- certificate's model, versions, releases and legislation are those of the network stays with the references, which this
402
- library leaves to WWCP_POI; an unknown property, also of a certificate, this library does not refuse.
403
-
404
- A history starts from a snapshot of another server only anchored in the trust anchor of the roaming network, fail
405
- closed, as a peer of WWCP_POI starts since `ff2c56f` (SPECIFICATION.md 10.5, *Anchored*; `History.fromSnapshot` with
406
- `SnapshotOptions`): a snapshot of a checkpoint by the checkpoint, signed in the role of the roaming network operator by
407
- signing keys of as many holders as the trust anchor and the key statement of its version require, each certified by a
408
- trusted identity key of its holder, valid when it signed and at `at` (`ChargingStationProof.verifyCheckpoint`, as
409
- `Verify(Checkpoint, TrustAnchor)` of WWCP_POI); a snapshot of the head by the `attestations` it carries since then (8.5),
410
- which must attest the root of its head as for a proof of the root (`ChargingStationProof.ofRoot`, as `VerifyHead` of
411
- WWCP_POI). Without a trust anchor no snapshot is taken, unless the caller takes it `unanchored` explicitly, e.g. a genesis
412
- whose key statement it verifies against the trust anchor itself; an archive segment replays its base so, anchored by the
413
- checkpoint of its end. Before, a snapshot of the head carrying attestations was refused, and every snapshot taken
414
- unanchored. An attestation of a snapshot that cannot be read is refused, not left out.
415
-
416
- A signed commit or checkpoint, also the commit of a snapshot, is refused without a verifier of its signatures, as
417
- WWCP_POI does (`CheckSignatures`): before, its signatures were taken unchecked when `HistoryOptions.verifyCommit` or
418
- `verifyCheckpoint` was left out (O3 of WWCPPOIConformanceTests). `verifyCommit` checks the commit of a snapshot as well,
419
- its version before unknown there (`before` undefined).
420
-
421
- QI-Digital documents, the proof of concept of WWCP_POI (`WWCP_POI3/RoamingNetwork/QIDigital`, as of `6a0f96e`, which
422
- example A14 uses), are read and checked, not signed (`src/qidigital/`): the digital calibration certificate of a charging
423
- station or an energy meter (`DigitalCalibrationCertificate`), the digital certificate of conformity of a model or, of a
424
- module of quality assurance, of the quality system of a manufacturer (`DigitalCertificateOfConformity`), and the digital
425
- declaration of conformity of a model (`DigitalDeclarationOfConformity`). Each is refused in the words and the order of
426
- WWCP_POI: only its own properties, its context, timestamps exactly as signed, numbers as numbers, what its constructor
427
- checks after its properties were read. Its signature input and its digest are what WWCP_POI writes again of what it read
428
- (`Content()`), not the text as given: numbers without trailing zeros, a whole one as an integer, identifications trimmed,
429
- a charging station as `DE*GEF*S1`, `mainSigner` false, an empty list or text and a revision 0 as WWCP_POI writes them.
430
- Checked against a roaming network as WWCP_POI checks them: the issuer a party of it, its key one that may sign the
431
- document and valid when it signed and at `at`; the notified body with its number, notified for the legislation; the
432
- model, its manufacturer, revisions and versions; the charging station or energy meter of a calibration certificate as it
433
- is at runtime, with what its templates give it, and with the serial number the roaming network gives it, not the one the
434
- certificate names (csharp-review 23). And against each other: a declaration and each certificate it names, a certificate
435
- and the item of a calibration certificate it covers. A text in languages of no language, one that is no text and a
436
- language given twice are refused, not left out, as WWCP_POI refuses them since `bbe8fb8`: left out, they would travel
437
- unsigned with a signed document.
438
- A URL is read as Hermod reads it as far as a document URL needs it: trimmed, https unless it names a scheme, of http or
439
- https with a host.
440
-
441
- The test vectors are those of a new run of the C# examples at `33447ac` (`tests/vectors/csharp-33447ac`), the first with
442
- example A14: the QI-Digital documents of the meter of DE*GEF*E2*1 as WWCP_POI signed them, with ML-DSA-65 by the PTB and
443
- EM-LAB and with ES256 by SAALE, are checked against QA as example A14 published it, refused changed in the words of
444
- WWCP_POI, and written again as WWCP_POI wrote them. EM-LAB is a member of QA since, so the head is revision 8 of epoch 2.
445
- `examples/validate-examples.ts` checks example A14 as its `Validate()` does, and starts from the snapshots of examples A4,
446
- A5 and A11 anchored in the trust anchor, from the genesis and the live snapshot of example A12 unanchored, as the
447
- examples do: since the anchored start it refused them.
448
-
449
- The golden vectors hold the QI-Digital documents of example A14 too (`tests/vectors/poi-qidigital.json`), run in
450
- `tests/conformance.test.ts` as WWCPPOIConformanceTests runs them against WWCP_POI: the four documents verified against
451
- QA, the declaration of conformity against the certificates it names, both certificates covering the meter of
452
- DE*GEF*E2*1, a calibration certificate of the charging station DE*GEF*S2, signed by the generator with a key QA patched
453
- gives EM-LAB, and 38 refusals, each with its control, of documents or of QA patched. Both implementations refuse a text
454
- of no language, or one that is no text (D10 there, fixed in WWCP_POI `bbe8fb8`), and the calibration certificate of a
455
- station against one of another serial number, or of none (csharp-review 23).
456
-
457
- EV Taler, phase 1 of the concept of WWCP_POI for paying for charging with GNU Taler (`concepts/EVTaler.md`), as of
458
- `ec3dace`: a charging station operator names its merchant at a GNU Taler merchant backend and the exchanges whose coins it
459
- accepts (`evTaler`, `evTalerMerchantOf`), refused where WWCP_POI refuses it and in its words: base URLs of HTTPS without
460
- user, query and fragment, ending in '/', read as Hermod reads them; keys as GNU Taler writes them (`isTalerPublicKey`);
461
- at least one exchange, each once, of an ISO 4217 currency of Styx and with a name. A change of it needs a signing key
462
- that may sign the new usage `payments`. Payment options are an open set of names: any nonempty text, none twice whatever
463
- its case, united with those of the templates of a charging pool without case; a charging pool or template naming EVTaler
464
- needs the merchant of its operator, after the last change of a change set. An app reads the EV Taler tariff of an EVSE
465
- and the exchanges in its currency from the proof of its station (`evTalerTariffOf`, `evTalerExchangesAt`), and what
466
- drivers see, "EV Taler (Example Exchange, EUR)" (`paymentOptionName`). The JSON, the CBOR and the tree of a version with
467
- a merchant are those WWCP_POI writes: `tests/evTaler.test.ts` holds the ETags WWCP_POI3 calculates of QA with the merchant
468
- of its EVTalerTests. Not yet: golden vectors of WWCPPOIConformanceTests, and a station proof with a merchant as WWCP_POI
469
- signs it (example A15 came after the frozen run). Nothing here takes or makes a payment.
470
-
471
- The keys of the parties of a roaming network are read where it is read, as WWCP_POI reads them wherever it reads a
472
- party (`POIPartyKeys.TryParse` and `Check`), in its words (D12 of WWCPPOIConformanceTests): before, a party's keys were
473
- only read where they were used, so a version naming an unknown usage of a party's key was taken. Every key as
474
- `POIPublicKey.parse` reads it, none twice, none both a signing and an identity key, no identity key naming usages; the
475
- parties in the order WWCP_POI reads them, the charging station operators last; the identity keys of the roaming network
476
- operator in the same words (`src/network/partyKeys.ts`). Checked against WWCP_POI3 at `ec3dace` itself, on 47 versions
477
- of QA with keys valid and not, of every kind of party: 40 are read as WWCP_POI3 reads them, in the same words; 5 both
478
- refuse, in other words of `POIPublicKey.parse` within the same wrapper (a key without identification or key, not
479
- Base64, expiring before it becomes valid, of another JSON-LD context); 2 name a `notAfter` WWCP_POI takes and writes
480
- otherwise (a date only, an offset), refused here as every timestamp not written as POI writes it. `poi-refusals.json` of
481
- WWCPPOIConformanceTests vendored, 89 vectors: the 13 of EV Taler and `version-key-usage-unknown`, D12 closed.
482
-
483
- A key is read in the words and order of `POIPublicKey.TryParse` of WWCP_POI (`POIPublicKey.parse`): its identification
484
- and key as texts, then its JSON-LD context, then both given ("A public key needs its identification and its key!"); a
485
- key .NET can not read as Base64 in the words of .NET, one it reads but writes otherwise as not canonical; "Invalid COSE
486
- key: …", "A public key must not contain private parts!", "The holder of a public key must be a text!"; a key expiring
487
- before it becomes valid where the constructor of WWCP_POI refuses it, after its holder and usages, before its
488
- thumbprint. Checked against WWCP_POI3 at `ec3dace` itself, on 45 more versions of QA with keys valid and not: 34 in its
489
- words. Still other words: a key of CBOR WWCP_POI3 can not read (the words of `@vanaheimr/cose` and
490
- `@vanaheimr/metrological-cbor`, not of their C# originals), a timestamp both refuse ("Invalid value for 'not before'!"
491
- there). Refused here, taken and written otherwise by WWCP_POI3: a key not in deterministic CBOR, a timestamp not written
492
- as POI writes it, a `notBefore` or `notAfter` of null.
493
-
494
- `poi-histories.json` of WWCPPOIConformanceTests `0734641` vendored: 8 replays of EV Taler in a history the generator
495
- signs, who may sign the merchant of DE*GEF (a signing key for `payments`; the roaming network operator only in place
496
- of a party without signing keys) and a charging pool naming EVTaler with and without it. A change needing signatures is
497
- named as WWCP_POI names it, with the property it changes, e.g. "Change 0: UpdateProperty of the
498
- ChargingStationOperator 'DE*GEF' ('evTaler') needs a signature by …".
1
+ # Changelog
2
+
3
+ ## Unreleased
4
+
5
+
6
+ ## 0.3.0 (prepared; not yet published)
7
+
8
+ WWCP_POI3 as the measure: a roaming network is read as WWCP_POI3 reads it and refused in its words, change sets apply
9
+ what WWCP_POI3 applies (the entities a party embeds, element changes, preconditions, no lastChange going back),
10
+ histories require the signature roles WWCP_POI requires and take a checkpoint with the signatures that verify, and EV
11
+ Taler phase 2 checks the steps and the settlement of a session. Each of them is probed against WWCP_POI3, what differs
12
+ named below, and the vectors of WWCPPOIConformanceTests `215023a` hold, none deviating. See [Migration](#migration)
13
+ before upgrading: versions, change sets and signatures 0.2.0 took are refused, and the types of three properties change.
14
+
15
+ - A roaming network is read as WWCP_POI3 reads it (`RoamingNetwork.TryParse` and the TryParse of every entity) and
16
+ refused in its words and its order: JSON types, mandatory properties, values, identifications, names of enumerations,
17
+ currencies, URLs, timestamps, texts in languages, data licenses, and what the constructor of each entity refuses of
18
+ what it read (`src/network/reading.ts`, `poiJSON.ts`, `poiValues.ts`). Every kind of entity it reads: the roaming
19
+ network and its operator; charging station operators with their pools, stations, EVSEs, connectors, energy meters,
20
+ templates, groups, tariffs, tariff templates, groups and offers, brands and parking spaces; manufacturers of charging
21
+ stations and energy meters with their models, transparency software manufacturers with their releases, conformity
22
+ assessment bodies, e-mobility providers, grid operators with their grid connection points, parking operators.
23
+ - The references the constructor of the roaming network checks, and the identifications it keeps unique among them,
24
+ interleaved in its order (`references.ts`): manufacturers, models, hardware revisions and firmware versions, releases,
25
+ certificates, grid connection points, charging stations, parking spaces and maintainers the network does not have, a
26
+ station or an energy meter contradicting its model, a key of two parties. After the last change of a change set, bare,
27
+ in the order of `RoamingNetwork.ChangeSets.cs`, a reference the version before resolves named as one the change set
28
+ withdrew. They replace the separate checks of identifications, versions, certificates, EV Taler and keys of parties.
29
+ - 1268 versions probed against WWCP_POI3 at 89d2e02 are taken and refused alike, in the same words, but for nine agreed:
30
+ five identifications of the roaming network and its operator given as numbers, which keep the words of this library
31
+ for WWCP_POI3 to take, and four messages of the CBOR and COSE libraries.
32
+ - Values WWCP_POI3 writes otherwise than given are refused in the words of its written form (`writtenForm.ts`): a
33
+ number, a boolean or a text given as another JSON type it reads it of (`"0.390"` as 0.390, `"TRUE"` as true, 5 as
34
+ `"5"`), coordinates of texts and booleans, durations in seconds in whole ticks of 100 ns without trailing zeros (1.50
35
+ as 1.5), the width and height of an image; opening times as Styx writes them, `24/7` always, hours `HH:mm`, periods
36
+ UTC, empty lists and free texts left out; NUTS codes in upper case, a list written otherwise compared element by
37
+ element with the one WWCP_POI3 writes; addresses with their countries by their alpha-3 codes, their street, postal
38
+ code and time zone trimmed, their other texts as given and left out where empty, their languages in lower case,
39
+ nothing else. A country is read as `Country.TryParse` of Styx reads it, of its 251 countries (`countries.ts`): by its
40
+ alpha-2 or alpha-3 code in any case, its numeric code, its calling code or one of its names, and refused where it
41
+ names none. Of 164 more versions probed against WWCP_POI3 at 89d2e02, 163 are taken and refused alike, in the same
42
+ words; the one left gives a number with an exponent, which the probe writes otherwise before WWCP_POI3 reads it.
43
+ - Two charging tariff offers of an operator must not overlap (`offers.ts`, `OverlappingOffers` of WWCP_POI3, SPECIFICATION.md
44
+ 9.4): covering one EVSE, for some of the same sessions (ad hoc, or contracts of a provider both name, or one names
45
+ none), at some of the same times within their `notBefore` and `notAfter`, both inclusive, and their opening times in the
46
+ time zone of the EVSE's charging pool, with what its templates give it, else UTC; local times as `TimeZoneInfo`
47
+ converts them, one a change to daylight saving time skips the first after it, one it gives twice the one of standard
48
+ time; exceptional closings
49
+ close, exceptional openings open. Refused in its words, at the first EVSE in the ordinal order, as the constructor of
50
+ the operator refuses it, also after a change set. After a change set also two offers of an e-mobility provider the
51
+ change set changed that overlap and did not in the version before (`NewProviderOfferOverlap`); by the changes of
52
+ others they may. Of 64 versions probed against WWCP_POI3 at d1c41ca, all are taken and refused alike, in the same
53
+ words, also those of time zones a charging pool may not name.
54
+ - The time zone of a charging pool or a charging pool template is one of a region of the IANA time zone database, as
55
+ the database writes it, which this platform knows (`timeZones.ts`, `POITimeZones` of WWCP_POI3 `d1c41ca`,
56
+ SPECIFICATION.md 9.4, D17 of the conformance tests): `Europe/Berlin`, also an older name the database keeps for one,
57
+ `Asia/Kolkata` as `Asia/Calcutta`, or of a part of a region, `America/Argentina/Buenos_Aires`. No name of another
58
+ system (`W. Europe Standard Time`), none without a region (`CET`, `UTC`, `Etc/GMT-1`, `US/Eastern`), none in another
59
+ case (`europe/berlin`), none the platform does not know: refused in the words of WWCP_POI3 as the constructor of the
60
+ pool or template refuses it, trimmed, after its images, no longer taken as UTC, nor a Windows name as its IANA name.
61
+ The case is the one Temporal gives (Node 26); without Temporal (Node 22 and 24) Intl gives it of a name, but of an
62
+ older name only the name it stands for, so an older name is then taken in any case (`Asia/KOLKATA`). Of 92 versions
63
+ probed against WWCP_POI3 at `d1c41ca`, 90 are taken and refused alike, in the same words; the two left name
64
+ `America/Ciudad_Juarez` and `Antarctica/Troll`, which .NET on Windows does not find, and this library takes, as Node
65
+ knows them: databases of different age know different names (SPECIFICATION.md 9.4). `poi-refusals.json` of
66
+ WWCPPOIConformanceTests vendored again without the marker of D17: its 10 time zones are refused by their reasons.
67
+ - A measurement public key is a key as BouncyCastle 2.7.0 makes one, as WWCP_POI3 checks it (`measurementPublicKey.ts`,
68
+ `MeasurementPublicKey.TryCheck`), refused in its words and those of BouncyCastle: a SubjectPublicKeyInfo of DER
69
+ (`ber.ts`), of RSA, also of PSS and OAEP, its modulus odd, of no prime factor up to 743, of 16384 bits at most and no
70
+ prime, its exponent odd (`rsa.ts`); of EC on the 84 named curves BouncyCastle knows (`curves.ts`, taken from it), a point
71
+ it decodes, compressed, uncompressed or hybrid, on its curve and of its order (`ecc.ts`); of Ed25519 and Ed448 a point
72
+ of no small order; of X25519, X448, ML-DSA, ML-KEM and SLH-DSA of their lengths; of DSA in its group. Its certificates
73
+ DER, as X509CertificateParser reads them, the first of the key, each one issued by the next one, its signature of
74
+ ECDSA, DSA, RSA of PKCS #1 v1.5 or PSS, Ed25519, Ed448 or ML-DSA verified with the key of the next one
75
+ (`certificates.ts`). Of 242 keys and chains of BouncyCastle and variants of them probed against WWCP_POI3 at 89d2e02,
76
+ 237 are taken and refused alike, in the same words; taken as given, where WWCP_POI3 checks them: points on curves over
77
+ binary fields, explicit curve parameters, keys of Diffie-Hellman, ElGamal, GOST and DSTU. Not verified, so refused: a
78
+ certificate signed with GOST, SM2 or SLH-DSA.
79
+ - Other words: decimals in messages invariant and line breaks `\n`, where WWCP_POI3 writes them in the culture of its
80
+ machine and `\r\n`; timestamps `DateTimeOffset` reads and the written form refuses, refused as invalid; an error of an
81
+ entity changed by a change set without the `Change N:` of WWCP_POI3.
82
+ - A price statement reads its price status as WWCP_POI3 reads it (`ChargingPrices.TryParse`), in its words and order,
83
+ under its "Invalid price status of the price statement:": the prices of each charging tariff once, the tariff named
84
+ by its identification `{operatorId}*T{suffix}` (SPECIFICATION.md 2, 12.1, D16 of the conformance tests), their
85
+ elements, at least one, as a tariff has them, no property or JSON-LD context besides. A statement naming another text
86
+ is no price statement: the price evidence of a session holding one has invalid signatures, as WWCP_POI3 gives it
87
+ (`sessionPrice-foreign-tariff`), not valid ones of a tariff outside the references of its EVSE.
88
+ - The nine vectors of WWCPPOIConformanceTests `fde40c9` vendored, `poi-refusals.json` of 129 vectors (a version naming a
89
+ charging tariff not as `{operatorId}*T{suffix}`), and `poi-verifier.json`, new here: 106 checks of the verifier
90
+ extensions, meter keys, historical meter evidence, session prices, trust transitions, keys of charging documents,
91
+ trust policy identifications, digests of key statements, offer hashes and publication receipts, against the POI
92
+ fixtures of ChargyWebApp at `fc513cd`, vendored as `tests/vectors/chargy-fc513cd`. Run in `tests/conformance.test.ts`
93
+ as WWCPPOIConformanceTests runs them against this library: a refusal after its control, by its reason; none deviates.
94
+ - `poi-refusals.json` of WWCPPOIConformanceTests `7d43d4b` vendored (`586a339` before a rebase there), of 142 vectors:
95
+ 13 price statements whose price status is none WWCP_POI3 reads (without one; its prices not an array; the prices of a
96
+ tariff not an object; a property or a JSON-LD context besides, of the status or of the prices of a tariff; a tariff
97
+ not named `{operatorId}*T{suffix}` or named twice, also in another spelling; its elements empty, one not an object or
98
+ without price components), refused as both read them, in the words both give. None deviates.
99
+ - `poi-refusals.json` of WWCPPOIConformanceTests `ed91741` vendored, of 273 vectors: 131 versions built from the tests
100
+ of this library and read as WWCP_POI3 reads them, 59 of reading, 18 of references, 33 of written forms, 11 of offers,
101
+ 10 of measurement public keys, refused in the words both give. None deviates. Two of them, offers of `Europe/Berlin`,
102
+ WWCP_POI3 takes where .NET runs without ICU, as it then finds no IANA time zone and compares them in UTC (O5 there).
103
+ - `@vanaheimr/cose` 0.14.0, the codec still `@vanaheimr/metrological-cbor` 0.12: a key of a party of key type RSA (3) is
104
+ read as Styx reads it, identified by its RFC 9679 thumbprint over n and e, and taken as WWCP_POI3 takes it; 0.12.0
105
+ refused it, "Invalid COSE key: The curve of a COSE key must be an integer!". POI names no signature algorithm of RSA
106
+ (SPECIFICATION.md 4), so such a key signs nothing this library verifies, as before.
107
+ - `@vanaheimr/cose` 0.15.0, the codec still `@vanaheimr/metrological-cbor` 0.12. It reads and verifies the
108
+ countersignature of RFC 8152 and holds a key an X.509 certificate writes as `id-RSASSA-PSS` to RSASSA-PSS, as Styx
109
+ `7642de3d` does. This library uses neither, and reads and verifies its keys and signatures as with 0.14.0. For
110
+ development, Playwright 1.65.0 and Vite 8.3.6. TypeScript stays at 6.0: typescript-eslint 8.72.1 requires a version
111
+ below 6.1, and its typed linting needs the compiler API that TypeScript 7 does not ship.
112
+ - `poi-refusals.json` of WWCPPOIConformanceTests `d388929` vendored, of 283 vectors: 10 versions naming a time zone of a
113
+ charging pool or a charging pool template that is none of a region of the IANA time zone database, refused by WWCP_POI3
114
+ since `d1c41ca` and taken by this library, marked as its deviation (D17 there).
115
+ - A change set changes the entities a party embeds, as WWCP_POI3 applies them (`apply.ts`; RoamingNetwork.OfferChanges.cs,
116
+ ProviderChanges.cs, GridChanges.cs and ParkingChanges.cs): the charging tariff offers of charging station operators
117
+ and e-mobility providers, the EVSE, charging station and charging pool groups of e-mobility providers, the grid
118
+ connection points of grid operators, the parking garages, spaces, sensors, space templates, space groups and products
119
+ of parking operators and the parking spaces of charging station operators. Added to the party an `Add` names as its
120
+ parent, found by its identification as its type compares it, e.g. a parking product with case, the properties a change
121
+ set may change, in the words of WWCP_POI3; with their timestamps, but a grid connection point and a parking product,
122
+ which have none. Owned by the party embedding them (4.1), the offers by keys that may sign `tariffs`, the others
123
+ `infrastructure`; a grid connection point by its maintainer, its maintainer changed by it, its grid operator or the
124
+ identity keys of the roaming network operator; also after the earlier changes of the change set, which may add or
125
+ remove them or their party. 0.2.0 refused them as not supported. Of 107 change sets probed against WWCP_POI3 at
126
+ `d1c41ca` (`CreateChangeSet`), the 50 it takes lead to the same content here, and the 57 it refuses are refused here
127
+ too, 34 in the same words; the others in the words of the entity read again without `Change N:`, of the change as
128
+ WWCP_POI3 parses it, or of the written form, where WWCP_POI3 names a property of infrastructure a change set may not
129
+ change.
130
+ - The `effectiveLastChanges` of a snapshot are read as WWCP_POI3 reads them (`TryTakeEffectiveFloors`,
131
+ POIEffectiveLastChange): absent or `null`, or an array of `{entityType, entityId, lastChange}`, a JSON-LD context only
132
+ its own, the timestamp in a form `DateTimeOffset` reads; refused otherwise in its words, "The effective last changes of
133
+ a snapshot must be a JSON array!", "Invalid effective last change '{…}' of a snapshot!". 0.2.0 took any. They are the
134
+ floors of the `lastChange` of effective members POI_API keeps at runtime (SPECIFICATION.md 8.8, point 3), found again
135
+ for what a change set changes; the effective tree takes the `lastChange` of an effective member without them (8.1),
136
+ as WWCP_POI3 does (`EffectiveChargingPoolsOfTheContent`), so this library reads them and keeps none.
137
+ - The preconditions of a change set hold, as WWCP_POI3 checks them (`preconditions.ts`; RoamingNetwork.Preconditions.cs,
138
+ SPECIFICATION.md 4): each names the ETag an entity still has in the version the change set is applied to, after its
139
+ `beforeETags` and before its changes, over the entity as the roaming network embeds it, with everything it embeds, its
140
+ canonical JSON or its deterministic CBOR, in the hash algorithm it names. The entity is found by its type and
141
+ identification as its type compares it, e.g. `DEGEFP1` as `DE*GEF*P1`, among the entities a change set addresses on
142
+ their own (`Flatten`), not a model, which is unique within its manufacturer only, as in WWCP_POI3. Refused otherwise in
143
+ its words, "The change set does not fit this version of the roaming network: Precondition 0: the ChargingPool
144
+ 'DE*GEF*P1' changed, it no longer has the ETag json:sha256:hex:…!", and a precondition not read as it reads one in a
145
+ change set, "Invalid precondition 1!". 0.2.0 refused change sets with preconditions as not supported. Of 79 change sets
146
+ with preconditions probed against WWCP_POI3 at `d1c41ca`, ETags of 40 entities of every kind among them, all are taken
147
+ and refused alike, 70 in the same words, the others refused when read, where the probe reads a precondition on its own.
148
+ - A change set changes elements, as WWCP_POI3 applies them (`elements.ts`, `apply.ts`; POIElements.cs and
149
+ RoamingNetwork.ElementChanges.cs): `AddElement`, `RemoveElement`, `ReplaceElement`, `UpdateElementProperty` and
150
+ `RemoveElementProperty` address an element of a property of an entity by their element path, e.g.
151
+ `chargingConnectors['1'].format`, an element of an array by its identification, as the type of the identifications of
152
+ the property compares them, e.g. `EVSEIds` without case, any other ordinally; an added element where the ordinal order
153
+ puts it, in `templateIds` at the end; an array left without elements removed. Each amounts to the `UpdateProperty` or
154
+ `RemoveProperty` of the property its path starts with, checked and owned as that change (4.1), its old value compared
155
+ with the element, or the property of the element, it addresses; keys and tree hash algorithms are changed as a whole
156
+ only. Element changes WWCP_POI3 does not make are refused when the change set is read: an element change without an
157
+ element path, another change with one, a new value of JSON `null`, of each kind of change what it does not take, e.g.
158
+ an `AddElement` with an old value, a segment of a path without a property name or with an empty identification.
159
+ 0.2.0 refused element changes as not supported. The properties of charging pools, stations, EVSEs, tariffs, groups and
160
+ templates a change set may change are those of WWCP_POI3 (RoamingNetwork.InfrastructureChanges.cs), refused otherwise
161
+ in its words, e.g. "the property 'chargingStations' of a charging pool can not be changed!", and an infrastructure
162
+ entity is named as WWCP_POI3 names it, e.g. "the charging tariff 'DE*GEF*T_AC'". Of 108 element changes probed against
163
+ WWCP_POI3 at `d1c41ca` (`CreateChangeSet`), the 47 it takes lead to the same content here, and the 61 it refuses are
164
+ refused here too, 31 in the same words; the others in the words of the entity read again without `Change N:`, of an
165
+ old value without the value found, or of a change as this library reads it. Of the 107 change sets of embedded
166
+ entities probed before, 93 are now in the same words.
167
+ - The elements of the prices of a charging tariff in a price statement are written as a charging tariff holds them
168
+ (SPECIFICATION.md 12.1, WWCP_POI3 `5a72313`, D18 of the conformance tests), as a version holds the elements of a tariff:
169
+ an element, a price component or restrictions naming a property their type does not define, a number given as a text,
170
+ the days of the week out of their order, the JSON-LD context of an embedded object are refused before the signature,
171
+ "'elements[0].restrictions.maxStateOfCharge' of the prices of the charging tariff 'DE*GEF*T_DC' is not written as a
172
+ charging tariff holds it: the content leaves it out!" under "Invalid price status of the price statement: ". A reader
173
+ not knowing a restriction would else price a session where its signer did not. The written form knows the
174
+ restrictions of an element now (`startTime` to `reservation`, as ChargingTariffRestrictions writes them): a version
175
+ naming another one, e.g. `maxStateOfCharge`, is refused, which 0.2.0 took. The price evidence of a session whose
176
+ statement names a restriction of OCPI, e.g. `max_kwh`, has invalid signatures now (`sessionPrice-conditional-price`).
177
+ `poi-refusals.json` and `poi-verifier.json` of WWCPPOIConformanceTests `c540c7f` vendored, 290 vectors, 7 of them new;
178
+ none deviates.
179
+ - `poi-histories.json` of WWCPPOIConformanceTests `bc4e5a0` vendored: the 13 replays this library left to WWCP_POI3
180
+ (`notApplicable`) hold here as well and are replayed: the references a version holds, e.g. `station-*`, `meter-*`,
181
+ `withdrawn-while-named-*`, checked since `813e1d7`, and the changes of the groups of a provider and of grid connection
182
+ points, applied since `1946013`, each refused in the words of its reason. `tests/conformance.test.ts` 760.
183
+ - `poi-histories.json` of WWCPPOIConformanceTests `70deea0` vendored: 14 replays of the entities a party embeds, as
184
+ `1946013` applies them, in `history-parties`: offers of an operator, signed for `tariffs`, not overlapping; an offer
185
+ and groups of a provider, signed by the provider, not by the operator of the same prefix; a grid connection point
186
+ handed on and named in one change set, by its new maintainer (csharp-review 9); parking data of a parking operator
187
+ and the parking space of a charging station operator, each signed by its own party. `tests/conformance.test.ts` 774.
188
+ - `poi-verifier.json` of WWCPPOIConformanceTests `aef4b38` vendored, with the price evidence of sessions it makes itself
189
+ (`tests/vectors/chargy/POIPrices`): the cases of `POIPrices` of ChargyWebApp `fc513cd`, every signature
190
+ deterministic. 23 `sessionPrice-*` vectors check the same as before on them; `-foreign-tariff` and
191
+ `-conditional-price` stay on the fixtures. Two new ones are taken: `-tariff-of-another-evse`, a genuine price of a
192
+ tariff of the pattern `{operatorId}*T{suffix}` the EVSE does not name, of which none applies, and
193
+ `-conditional-element`, an element restricted by `maxEnergy`, whose price is selected without a rate.
194
+ `tests/conformance.test.ts` 776.
195
+ - Transparency software releases and certificates are identified under their owners, as WWCP_POI3 `045e180` checks it
196
+ (SPECIFICATION.md 4.1, POI3-ISSUES.md S36, `ForeignTransparencySoftware`, `ForeignConformityCertificate`,
197
+ `IsIdentifiedUnder`): the `@id` of a release is the `@id` of its manufacturer, a colon and a name without one
198
+ (`GraphDefined:chargy-1.5.0`), of a certificate the `@id` of the body issuing it alike (`PTB:2026-0042`), the prefix
199
+ compared without case, both trimmed as read. A version holding one identified otherwise is refused before releases or
200
+ certificates given twice, in its words: "The transparency software release 'chargy-1.5.0' of the manufacturer
201
+ 'GraphDefined' is not identified as one of it: by 'GraphDefined:' and a name without a colon!"; so is a change set
202
+ leading to one, after the unknown parking spaces and before the releases given twice. References name them as before.
203
+ Of 38 versions and change sets probed against WWCP_POI3 at `045e180`, all are taken and refused alike, in the same
204
+ words. `tests/releaseIdentifications.test.ts`.
205
+ - The test vectors of a new run of the C# examples, `tests/vectors/csharp-045e180` in place of `csharp-33447ac`: WWCP_POI
206
+ `045e180`, examples A1 to A15, MakeProofs at `2026-11-05T19:46:00.000Z` (`tests/at.ts`). Releases and certificates
207
+ under their owners (`GraphDefined:chargy-1.5.0`, `PTB:2026-0017`, `PTB:2026-0042`); example A15 names the EV Taler
208
+ merchant of DE*GEF, so the head of epoch 2 is revision 11, while `QA.json` stays revision 8, as example A14 left it.
209
+ With them `poi-history.json` (100 vectors), `poi-refusals.json` (296, 6 of them of S36), `poi-histories.json` (75
210
+ replays, 8 of them of S36, the histories naming releases and certificates under their owners) and `poi-qidigital.json`
211
+ of WWCPPOIConformanceTests `2d0780f`. The tests on QA hold the values of the new run; those WWCP_POI3 calculated of
212
+ changed versions (element and embedded changes, preconditions, EV Taler) are calculated again by WWCP_POI3 at
213
+ `045e180`, and this library takes the very same versions. `tests/conformance.test.ts` 794.
214
+ - Required signature roles, as WWCP_POI `12e993a` checks them (POI3-ISSUES.md S24): `requiredSignatureRoles` of a history,
215
+ the roles a commit must be signed in, refused before it is applied where it has no signature in one ("The commit '…'
216
+ is not signed in the role '…'!"), and once its signatures are verified where none of them is by a key the version it
217
+ leads to lets sign in that role ("… by a key that may sign in it!", `keyMaySignIn`): in the role of the roaming
218
+ network operator a signing key certified for it, in the role of a charging station operator a signing key of the
219
+ operator its signer names; leaders and witnesses are the verifier's. So also the commit of a snapshot.
220
+ `requiredCheckpointSignatureRoles`, the roles a checkpoint must be signed in ("The checkpoint '…' is not signed in the
221
+ role '…'!"). A signed commit without a verifier is refused before it is applied, as WWCP_POI does. Signatures of one
222
+ key in one role, e.g. the twin of an ECDSA signature (S11), are kept as given, each verified, and counted once by the
223
+ holder or witness they are of, as WWCP_POI `f7b8643` reads them too (SPECIFICATION.md 5.4): it kept the first alone
224
+ since `12e993a`, so a forged signature behind a genuine one of its key went unchecked. `tests/signatureRoles.test.ts`.
225
+ - A checkpoint is taken with the signatures that verify here, as WWCP_POI `399b7c8` takes it (POI3-ISSUES.md S39,
226
+ SPECIFICATION.md 10.2): `verifyCheckpoint` of a history returns those of its signatures that verify, and the history
227
+ keeps the first of each key and role of them; one that does not verify, invalid or by a key not trusted here, is left
228
+ out, not refused, so that nobody blocks a checkpoint by adding a signature, and a witness trusted elsewhere and not here
229
+ keeps none from it. The roles a checkpoint must be signed in are counted among them: before, a role of a signature
230
+ `verifyCheckpointSignatures` passed over counted ("The checkpoint '…' is not signed in the role '…' by a signature that
231
+ verifies here!", and why the first one was left out). `takeCheckpoint` and a snapshot of a checkpoint hold it with
232
+ those only (`Checkpoint.withSignaturesOnly`). `verifyCheckpointSignatures` returns them as `verified`. The type of
233
+ `verifyCheckpoint` is now `(checkpoint) => readonly RoleSignature[] | undefined`: `undefined`, every signature verifies,
234
+ as before; a callback of a block without `return` is typed `void` and is no longer one.
235
+ - A signature of a commit or checkpoint is read as WWCP_POI3 reads it (`RoamingNetworkCommitSignature.TryParse`): its role,
236
+ time, algorithm, key and value trimmed, its signer as given, and what it signs is what was read; refused when its role,
237
+ signer, algorithm, key or value is empty or whitespace alone (`String.IsNullOrWhiteSpace`), and so is a signature of a
238
+ change set whose algorithm, key or value is ("The … of a signature of … must not be empty!"). Before, this library took
239
+ them, and a role padded with whitespace was not the role.
240
+ - Required signature roles probed against WWCP_POI3 at `12e993a`, `f7b8643` and `399b7c8` (`CheckSignatures` of a
241
+ snapshot, `TryAppend`, `TryAddCheckpoint`), on QA of epoch 2: 1879 cases of roles required of a snapshot, a commit and
242
+ a checkpoint, signed in every role, by keys of the roaming network operator, of DE*GEF and of nobody, by signers named
243
+ in every form, with and without a verifier; a second signature of one key in one role, the same, forged or signed
244
+ later; checkpoints verified by a rule leaving signatures out, forged ones before genuine ones among them; signatures
245
+ read with texts empty, padded and of other types. At `399b7c8` all are taken and refused alike, the checkpoints held with
246
+ the same signatures, the roles in the same words, signatures read refused in the words of this library. Stricter than
247
+ WWCP_POI3 there, which took them: a signer given as a number, an `@context` or another property in a signature of a
248
+ commit or checkpoint, and in the commit of a snapshot an algorithm its epoch does not name. WWCP_POI `b43ff1a` refuses
249
+ them too (POI3-ISSUES.md S40), and `7c6f91c` refuses a signature read in the words of this library, a snapshot naming
250
+ why its commit is refused: probed again at `7c6f91c`, all 1879 alike, word for word.
251
+ - `poi-refusals.json` and `poi-histories.json` of WWCPPOIConformanceTests `215023a` vendored, 806 vectors there, 13 of
252
+ them new: 8 refusals of a signature of the genesis commit or of checkpoint 1 not in its one form (another property,
253
+ `@context`, a signer as a number, a role of whitespace, a signedAt without milliseconds); a replay starting from the
254
+ snapshot of the genesis of epoch 3, its commit signed with Ed448, which the epoch does not name; 4 snapshots of
255
+ checkpoint 0 anchored with a signature that does not verify or a witness the trust anchor does not know (taken, S39), a
256
+ key of one holder signing twice (refused) and with the other holder too (taken). None deviates.
257
+ - What a proof gives of a child array, as WWCP_POI `d35c780` tells it (S29): `givesCompletely`, whether an entity as a proof
258
+ gives it has a child array completely, as an array or none, or pruned or partially; `sizeOf`, how many children it has,
259
+ also where the proof gives only some or none of them. A size or index beyond what this platform holds, and an object as
260
+ the identification of the roaming network, were refused already.
261
+ - No lastChange goes back, as WWCP_POI `12e993a` stamps a change set (SPECIFICATION.md 4, "Timestamps", POI3-ISSUES.md
262
+ S5): with its createdAt, or the lastChange of the roaming network of the version it is applied to, where that is later,
263
+ as the lastChange of the network, of what it changes, adds and embeds, and as the created of what it adds without one.
264
+ Its keys are still checked at its createdAt; nobody is refused for it, only the ETags after it differ (`stampOf`). The
265
+ after ETags of the element and embedded change sets and of the preconditions of the tests, created before QA, are
266
+ those WWCP_POI3 at `12e993a` calculated for the very same changes (67 change sets, all alike). `poi-histories.json` of
267
+ WWCPPOIConformanceTests `249d667` vendored: the three rebased change sets of `history-parties`, created at 08:06:30 on a
268
+ head of 08:07:00, are stamped 08:07:00. `tests/lastChange.test.ts`: every change set of both epochs of QA, created
269
+ before its version, stamped with its lastChange.
270
+ - EV Taler, phase 2, as WWCP_POI `c2d39e5` checks it (concepts/EVTaler.md 5 and 7, `src/evTaler`): the contract terms of
271
+ a step of a session (`EVTalerContractTerms`: version 0, an order, an amount and a maximum fee as GNU Taler writes them,
272
+ the merchant, its exchanges, the times, an auto refund) and their step in `extra.wwcp` (`EVTalerStep`: the roaming
273
+ network, the EVSE, the session, the step after the order before, the EV Taler tariff, the price statement, what it
274
+ covers, from step 2 on the signed meter value at the start, an object as OCPP 2.1 sends it), checked against the proof
275
+ of the station: the operator's merchant and exchanges in the currency of the EV Taler tariff of the EVSE, the price
276
+ statement current when the session began, each step following the one before, the signed start value verified with
277
+ the measurement key of the meter or the station the proof gives, by a transparency software passed in; the amount of a
278
+ step recalculated where the session is priced by one element of the simple profile (`EVTalerRates`), as System.Decimal
279
+ calculates it (`NetDecimal`: 96 bits, 28 places, rounded half to even), rounded up to the minor unit. A `taler://pay`
280
+ URI (`EVTalerPayURI`) names the merchant of the operator. The settlement statement (`EVTalerSettlement`), signed by the
281
+ operator with a key that may sign `payments`, refused without both signed meter values, of the steps of the session,
282
+ its energy and times those of the values, its price recalculated, half away from zero. Read and verified, not signed.
283
+ Of 178 sessions, steps, pay URIs and settlement statements probed against WWCP_POI3 at `c2d39e5`, on station proofs it
284
+ made, all are taken and refused alike, in the same words. `tests/evTalerSessions.test.ts`, on the proof of example A15.
285
+ - EV Taler: a step in minutes costs what it covers, rounded up to the cent, not a cent more, as WWCP_POI `a374855`
286
+ calculates it: the quantity multiplied by the price of an hour before it is divided by 60. A decimal holds no rate of a
287
+ minute such as 0.40 / 60 exactly, and rounding up took its last digit for a cent: 60 minutes at 0.40 EUR an hour were
288
+ 0.41 EUR, 30 minutes 0.21 EUR. Found by the probe of this port. The 178 cases probed again against WWCP_POI3 with
289
+ `a374855`: all alike.
290
+ - `hermodURL` as Hermod reads a URL: no `_` in host names, an empty port, an IPv6 address checked.
291
+ - Reading a version takes about two to three times as long as with 0.2.0, e.g. 1.0 to 1.3 s for 3204 charging pools of
292
+ 12816 EVSEs, each energy meter with a P-256 key of its own, where 0.2.0 took 0.4 s. A check of a version finds the
293
+ members of the operators in their order, their effective charging stations and energy meters and the charging stations
294
+ parking spaces name once (`whileChecking`); the identifications read of texts and the measurement public keys checked,
295
+ the last 65536 of each, are remembered for the next version too, as a history names most of them again. A key of P-256
296
+ takes about 20 µs, a key of RSA about as long as one exponentiation with its modulus, a certificate of ECDSA a few
297
+ milliseconds.
298
+
299
+
300
+ ### Migration
301
+
302
+ - Versions WWCP_POI3 refuses and 0.2.0 took are refused now, in the words of WWCP_POI3; of the probed versions and the
303
+ test vectors, none WWCP_POI3 takes. Messages of refusals checked by their text change where 0.2.0 worded them on its
304
+ own, e.g. a roaming network with keys of its own.
305
+ - A price statement whose price status 0.2.0 took and WWCP_POI3 refuses, e.g. naming the charging tariff
306
+ `DE*POI*FOREIGN`, is refused before its signature is looked at.
307
+ - A charging pool or a charging pool template naming its time zone by a Windows name, an abbreviation or in another case
308
+ than the IANA time zone database, which 0.2.0 took, is refused: it names it as the database writes it, e.g.
309
+ `Europe/Berlin`.
310
+ - `HistoryOptions.verifyCheckpoint` returns the signatures of the checkpoint that verified, `readonly RoleSignature[]`,
311
+ or `undefined` for all of them, e.g. `checkpoint => verifyCheckpointSignatures(checkpoint, trust, options).verified`.
312
+ A callback of a block without `return` no longer compiles; one that throws still refuses the checkpoint. A history,
313
+ `takeCheckpoint` and a snapshot of a checkpoint hold it with those signatures only, its identification the same: what
314
+ an app keeps of a checkpoint it took may hold fewer signatures than it was given (S39).
315
+ - `Change.elementPath` is an array of `ElementPathSegment`, `{propertyName, elementId}`, in place of the JSON objects
316
+ given, and `ChangeSet.preconditions` an array of `Precondition`, `{entityType, entityId, eTag}`, both read as WWCP_POI3
317
+ reads them; the JSON of a change and of a change set stays in its `json`. Both types are exported, and so are
318
+ `MerkleTreeHead`, `PrunedTree` and `TreeNodeKind`, which the API used already.
319
+ - A signature of a commit or checkpoint is read in its one form: its role, signedAt, algorithm, key and value trimmed,
320
+ and refused where one of them or its signer is empty or whitespace alone, where its signer is not a text, or where it
321
+ names an `@context` or another property; so is a signature of a change set whose algorithm, key or value is empty.
322
+ Producers write each signature in this form, as WWCP_POI `7c6f91c` reads it too.
323
+ - A change set created before the `lastChange` of the version it is applied to is stamped with that `lastChange`, not
324
+ with its `createdAt` (S5): the version it leads to, and so its after ETags, differ from those 0.2.0 calculated, and a
325
+ producer calculates them as WWCP_POI `12e993a` does. A change set created after its version, the usual case, is stamped
326
+ with its `createdAt` as before.
327
+ - A transparency software release is identified under its manufacturer, `{manufacturer}:{name}`, and a certificate
328
+ under the body issuing it, `{body}:{name}`, e.g. `GraphDefined:chargy-1.5.0` (S36): a version or change set
329
+ identifying one otherwise, which 0.2.0 took, is refused.
330
+ - The prices of a charging tariff in a price statement are written as a tariff holds them (D18): a statement naming a
331
+ property their type does not define, e.g. the OCPI restriction `max_kwh`, is refused before its signature, and the
332
+ price evidence of a session holding one has invalid signatures. A version naming a restriction outside `startTime` to
333
+ `reservation`, e.g. `maxStateOfCharge`, is refused.
334
+ - A snapshot whose `effectiveLastChanges` WWCP_POI3 does not read, which 0.2.0 took, is refused. Change sets 0.2.0
335
+ refused as not supported, of the entities a party embeds, with element changes or preconditions, are applied now.
336
+ - Reading a version takes two to three times as long as with 0.2.0, about a second for 12816 EVSEs. The package is
337
+ larger, 3.7 MB unpacked where 0.2.0 was 2.2 MB, of it `dist/index.js` 0.9 MB and its source map 2.3 MB.
338
+ - `@vanaheimr/cose` requires ^0.15.0 and `@vanaheimr/metrological-cbor` still ^0.12.0: keep both ranges aligned in
339
+ consumers that use them directly. The minimum runtime remains Node 22.18, and the package remains ESM-only. Without
340
+ Temporal, on Node 22 and 24, a time zone Intl names by another name is taken in any case, e.g. `Asia/KOLKATA`, which
341
+ it names `Asia/Calcutta`; Node 26 takes it only as the database writes it.
342
+
343
+
344
+ ## 0.2.0 (2026-11-02)
345
+
346
+ Shared trust and session verification APIs, previously delivered as the unpublished 0.1.2-dev.0 development candidate.
347
+ The experimental evidence and delegation profiles described below remain experimental in this release.
348
+
349
+ - Shared association of an EVSE, its energy meter and its key, with an explicit normalization of SubjectPublicKeyInfo
350
+ and COSE P-256 keys and a conservative freshness of the observation; no claim of a historical association.
351
+ - Historical meter evidence per reading, and checkpoints verified under the current local authorization.
352
+ - Prices bound to a session, their publication and their rates checked apart.
353
+ - A shared comparison of authenticated versions: rollback and fork constraints the caller keeps durably, historical and
354
+ current versions told apart, gaps filled, a change of the epoch refused unless verified.
355
+ - The charging document keys of a CPO, an authority of their own; experimental delegation of a policy signed by two
356
+ quorums, historical timelines of authorities, and verified epoch continuation and profiles.
357
+ - Experimental receipts of a public retrieval of prices, a policy of witness organizations, networks and clocks of
358
+ its own, restrictions of key usages and a conservative result before the signed start; no witness authorized
359
+ automatically, no claim of the actual start or of the consent of the customer.
360
+ - COSE and Metrological CBOR on ^0.12.0, so that direct and transitive consumers share one codec; existing proof and
361
+ signature fixtures remain valid.
362
+ - `trustPolicyId` is the SHA-256 of the canonical JSON of `{network, holders, minConsensus, urls}`, the URLs as a WHATWG
363
+ URL serializes them without trailing slashes, in their ordinal order, as WWCP_POI3 calculates it
364
+ (`TrustTransition.PolicyIdOf`); in place of their `JSON.stringify`, whose order of properties and escapes are those of
365
+ JavaScript, so that every implementation calculates the same. Every policy identification changes: decisions an app
366
+ keeps under one are made again, and transitions are signed again.
367
+ - A commit is refused without its `json`, `cbor` and `effectiveTree` ETags (SPECIFICATION.md 8.3), as WWCP_POI3 refuses
368
+ it; the epoch change of `tests/vectors/trust-transitions.json` names the ETags of its versions.
369
+ - `trustTransitions.ts` and `documentKeys.ts` with the license header and in the layout of the other sources.
370
+
371
+
372
+ ### Migration
373
+
374
+ - Commits must name all three version ETags: `json`, `cbor` and `effectiveTree`. A commit accepted by 0.1.1 with
375
+ only an effective-tree ETag is now refused. Producers must generate the complete ETags and sign the resulting commits
376
+ and checkpoints again; do not edit previously signed documents or silently repair an archived original.
377
+ - When moving from the unpublished 0.1.2-dev.0 candidate that used `JSON.stringify` for policy identity, recompute
378
+ `trustPolicyId` from canonical JSON. Reconfirm local decisions under the new identity and regenerate and sign affected
379
+ trust transitions. Retain old observations and original evidence; a changed policy identity must not erase known forks
380
+ or rollbacks. Candidates already using canonical JSON keep their policy identities.
381
+ - COSE and Metrological CBOR both require ^0.12.0. Keep both dependency ranges aligned in consumers that use them directly.
382
+ - The minimum runtime remains Node 22.18, and the package remains ESM-only. Local trust decisions, durable observation
383
+ storage and independently authorized witness policies remain the caller's responsibility. No production trust roots
384
+ or witness service are bundled.
385
+
386
+
387
+ ## 0.1.1 (2026-10-31)
388
+
389
+ `TrustContext`, for apps that import a trust anchor before they trust its keys. `TrustContext.evaluate` checks a key
390
+ statement against the identity keys of a trust anchor the app trusts locally and reports its signatures, signers, quorum
391
+ and validity apart (`TrustEvaluation`); a context only when all of them hold, `TrustContext.create` throws otherwise.
392
+ The context keeps the holders of the trust anchor and its quorum, and binds the roaming network, its operator, the
393
+ signed key statement and the time of the evaluation. `OperatorTrust.of` and `fromOperatorJSON`, `verifyVersion`,
394
+ `verifyChargingStation`, `ChargingStationProof.verify` and `verifyCheckpoint` take it in place of a trust anchor; given
395
+ a trust anchor, they verify as before. The app keeps storing and showing its decisions and creates a context from its
396
+ current decisions for every verification. Tested with genuine signatures, the proofs of the conformance tests and in
397
+ Chromium.
398
+
399
+ S31 and S32 of WWCP_POI `d6b0127`. A release keeps its version: a new version is a new release, so that a
400
+ certificate naming a release names the version that was assessed. A change set updating or removing the `version` of a
401
+ transparency software release is refused, and so is one removing a release and adding it again with another version,
402
+ after its last change (`ChangedTransparencySoftwareVersion`; versions compared trimmed and without case, as
403
+ `TransparencySoftwareVersion` compares them). The `notifiedBodyNumber` and `notifiedFor` of a conformity assessment
404
+ body are the roaming network operator's, which vets the body, also once the body has keys: a body issuing a
405
+ certificate under a legislation the same change set adds to its `notifiedFor` signs it together with the operator. A
406
+ number names one body, in every version and after every change set (`DuplicateNotifiedBodyNumber`).
407
+ `tests/releasesAndBodies.test.ts`, after `A_release_keeps_its_version` and
408
+ `The_roaming_network_operator_says_what_a_body_is_notified_for`.
409
+
410
+ A conformity assessment body is refused as its constructor in WWCP_POI refuses it, in its words and order: a
411
+ `notifiedBodyNumber` not of four digits (nothing after them, also no line feed, since WWCP_POI `f53d220`), a legislation
412
+ of `notifiedFor` empty or given twice (with case), a certificate issued under a legislation it is not notified for
413
+ (exactly as written, its certificates in the ordinal order of their identifications), each wrapped as WWCP_POI wraps it,
414
+ e.g. "The given JSON representation of a conformity assessment body is invalid: The certificate 'PTB-2026-0042' is issued
415
+ under the legislation 'CRA', which the conformity assessment body 'PTB' is not notified for! (Parameter 'Certificates')";
416
+ before them a `notifiedBodyNumber` that is no text and a `notifiedFor` that is no array of texts. A version is refused
417
+ for what WWCP_POI refuses of an entity as it reads it before what it refuses of the network made of them, the
418
+ identifications unique within the network last. Checked against WWCP_POI3 itself, on 33 versions of QA: the same, but
419
+ for two refusals of one body at once, a key and its number. In a change set WWCP_POI names the change ("Change 0: …"),
420
+ this library refuses the version it leads to.
421
+
422
+ The four vectors of WWCPPOIConformanceTests `d4a4928` vendored, `poi-refusals.json` of 93 vectors: a key of a party
423
+ whose `notAfter` is written with an offset, as a date only or as null, and one whose key is another CBOR of the same
424
+ COSE key. WWCP_POI refuses them too since `a425530` (D13 there, SPECIFICATION.md 2, Written forms), as this library did;
425
+ the key not in deterministic CBOR now in its words: "Invalid COSE key: Invalid deterministic CBOR: the key of the public
426
+ key '…' is not written as the deterministic CBOR of its COSE key!"
427
+
428
+
429
+ The four vectors of WWCPPOIConformanceTests `ad7c73e` vendored, `poi-refusals.json` of 97 vectors: a conformity
430
+ assessment body as its constructor in WWCP_POI checks it, a certificate issued under a legislation it is not notified
431
+ for, a notified body number of three digits, a legislation notified for empty, one given twice (D14 there, found against
432
+ `1f914ac`, fixed by `4ff1fc2` here).
433
+
434
+ The legislations a conformity assessment body is notified for are refused unless written in their ordinal order, as
435
+ WWCP_POI writes them (Achim's decision of 2026-10-29, as D13 decided it for keys): WWCP_POI takes another order and
436
+ writes it sorted, which written again would be another text than the one hashed. Refused as the body is read, before
437
+ what its constructor checks, in the words of this library: "The legislations the conformity assessment body 'PTB' is
438
+ notified for are written in their ordinal order!"
439
+
440
+ The four vectors of WWCPPOIConformanceTests `012ce9d` vendored, `poi-refusals.json` of 101 vectors: a conformity
441
+ assessment body as the content holds it, notified for legislations out of their ordinal order, with a notified body
442
+ number that is no text, with a notifiedFor that is no array of texts, and with the number of another body. WWCP_POI
443
+ refuses the order since `8108522`, in the words of this library.
444
+
445
+ WWCP_POI `f53d220`: its regular expressions end with `\z`, no longer with `$`, which in .NET matched before a last line
446
+ feed as well. A notified body number "0102" with a line feed is refused, which this library had taken as WWCP_POI took
447
+ it; a certificate timestamp with a line feed after its offset was refused here already, as every check of this library
448
+ ends at the end of its text.
449
+
450
+ The content as WWCP_POI writes it (SPECIFICATION.md 2, Written forms): what WWCP_POI takes of a version and writes otherwise
451
+ is refused, as written again it would be another text than the one hashed (Achim's decision of 2026-10-29, as D13
452
+ decided it for keys and 9decdb5 for the legislations a body is notified for). Of every entity, `notWrittenAsHeld`, as a
453
+ version is read, after everything WWCP_POI refuses of it, so that its words come first: what the content orders
454
+ (its ordered lists, `POIJSON.OrderedIds`, entities, keys, exchanges) out of its ordinal order, the texts of an ordered list
455
+ untrimmed, a list WWCP_POI writes only with an element given empty (about ninety; not the versions, releases and energy
456
+ meters of a certificate, the elements of a price, the exchanges of a merchant, the identity keys of a key statement), a
457
+ property given as null, an embedded object naming a JSON-LD context, a text in languages not naming each language as
458
+ Styx writes it, in lower case, with a text, a timestamp not UTC to the millisecond; custom data held as given. Of a key of
459
+ a party, a property WWCP_POI does not read; of an EV Taler merchant and its exchanges, such a property, a base URL not as
460
+ Hermod writes it, trimmed and with its scheme, and a currency not by its code. In the words of this library, e.g.
461
+ "'chargingStationOperators[0].chargingPools[1].paymentOptions' is not written as the content holds it: its elements are in the
462
+ order the content holds them in!". The new values of a change set are checked by the same rules (`asGiven`), as
463
+ WWCP_POI refuses a new value the content holds otherwise, "e.g. an empty array written as none". Found by probing
464
+ WWCP_POI3 at 8108522 with 201 versions of QA: of the 20 it takes and writes otherwise this library took all, and
465
+ refuses all now; every one it takes as given is taken, every one it refuses refused, and every version of the frozen run
466
+ is written as the content holds it. `tests/writtenForm.test.ts`.
467
+
468
+ What the constructor of the roaming network refuses, of a version, in the words of WWCP_POI: as an argument of its
469
+ parameter, which its TryParse names, e.g. "The given JSON representation of a roaming network is invalid: The notified
470
+ body number '0102' of the conformity assessment body 'PTB' is the one of the conformity assessment body 'BSI' already!
471
+ (Parameter 'ConformityAssessmentBodies')", in its order (the groups of providers and the offers before the releases): the
472
+ identifications unique within the network, and the key statement and the certificates of the roaming network operator
473
+ (`KeyStatementError`, 'Operator'), its key statement of another network now before its certificates. After the last change
474
+ of a change set they are named bare, in the order WWCP_POI checks them there (`RoamingNetwork.afterChangeSet`). The
475
+ golden vectors held the inner words only. Checked against WWCP_POI3 at 8108522 on 10 versions of QA.
476
+
477
+ The roaming network operator, its key statement and the certificates of its signing keys in the words and order of
478
+ WWCP_POI3 (the TryParse of `RoamingNetworkOperator`, `RoamingNetworkKeyStatement` and
479
+ `RoamingNetworkSigningKeyCertificate`), e.g. "A key statement requires its minConsensus, a whole number from 1 to 255!",
480
+ "Invalid key in the identityKeys of a key statement!", "A signing key certificate requires the signingKey it certifies!";
481
+ what this library refuses besides (properties it does not know, identity keys out of their order) after them. What the
482
+ constructor of the operator refuses as an argument of it, "The given JSON representation of a roaming network operator is
483
+ invalid: …": a certificate by the same identity key given twice, which this library took, a signing key certified in two
484
+ forms, a key both a signing and an identity key, a quorum its keys do not have; the holder of a key as it names it ("the
485
+ holder 'BetaOrg'"). The tree hash algorithms of a roaming network as `POITreeHashAlgorithms` names them, four refusals for
486
+ the one of this library. An entity without its identification as Styx refuses it, "Missing JSON property '@id'!", which
487
+ this library took but of the roaming network and its operator (`invalidIdentification`, first of all), and one of another
488
+ JSON type in the words of the kinds WWCP_POI3 refuses it of ("Invalid 'charging pool identification'!"). Certificates and
489
+ the versions of stations, meters, their templates and models without the prefix this library gave them ("The certificate
490
+ '…': "), as WWCP_POI3 names them, with the parameter its constructor names ("(Parameter 'Versions')", 'HardwareRevisions',
491
+ 'FirmwareVersions', 'Legislation', 'NotBefore', 'EnergyMeters'), a version twice in a model as an argument of the model; a
492
+ certificate without its identification, of a certified meter a model of another JSON type, in its words.
493
+
494
+ Of the written form also, as WWCP_POI3 takes and writes it otherwise: an entity without its lastChange, which it writes as
495
+ its created; a party without its name, which it makes up of its kind and identification ("Charging Station Manufacturer
496
+ 'GraphDefined'"); a text in languages without a language, but the name of a charging station operator, which it writes
497
+ so; the releases of a certificate and the URLs of an open source license left out, which it writes also empty; the energy
498
+ meters of a certificate given empty; an identification and the type of a charging connector given as a number.
499
+
500
+ Probed against WWCP_POI3 at 8108522 with 617 versions of QA, of every kind of object a property it does not read, every
501
+ property of it removed and given in another JSON type, the tree hash algorithms and the quorum of the operator, and 10
502
+ of certificates and models: none it takes as given is refused here; of what it refuses, this library refuses all in its
503
+ words but 20, of what it takes and writes otherwise all but the properties it does not read (25 kinds, which it leaves
504
+ out). Not ported yet: properties of another JSON type or missing that WWCP_POI3 refuses (168, in the words of every kind)
505
+ and the references it checks (23, of templates, tariffs, members, manufacturers, models, releases and certificates).
506
+ `tests/operator.test.ts`, and in `writtenForm`, `identifications` and `certificates`.
507
+
508
+ The 27 vectors of WWCPPOIConformanceTests `1c36c6d` vendored, `poi-refusals.json` of 128 vectors: versions not written as
509
+ the content holds them (`version-held-*`), the 20 versions WWCP_POI3 at 8108522 took and wrote otherwise and more of their
510
+ kinds (bodies, keys, payment options and exchanges out of their order, an untrimmed payment option, lists given empty, a
511
+ property given as null, embedded JSON-LD contexts, texts in languages not as Styx writes them, a timestamp with an offset,
512
+ properties of keys, merchants and exchanges not read, URLs and currencies not as written), ten with their eTags as
513
+ published, their reasons in the words of this library, which refuses them since `5c534d4`. WWCP_POI refuses them as well
514
+ since D15 of WWCPPOIConformanceTests, fixed there in `1c36c6d` (SPECIFICATION.md 2: a reader MUST refuse a version not
515
+ written so).
516
+
517
+ The written form as WWCP_POI3 refuses it since WWCP_POI `3de830a`, which writes a version again and walks both
518
+ (RoamingNetwork.WrittenForm.cs, FirstNotWritten): `notWritten` walks a version in that order and in those words, the
519
+ reasons of this library, which WWCP_POI took over, and two of its own. "the content leaves it out", of a property given
520
+ that WWCP_POI does not write: of every entity a property its type in WWCP_POI3 neither writes (ToJSON) nor reads
521
+ (PropertyKeys), drawn from it at `3de830a` for 33 kinds and checked against the 605 versions it wrote in the frozen run
522
+ and the probes, of a key statement, its signatures, a certificate of a signing key, a coordinate, a price component and
523
+ a public key of a meter as well; `dataLicenseIds`, which a version names completely (`dataLicenses`), a license it does not know
524
+ in its words; a text in languages without a language WWCP_POI reads. "the content holds it as '…'", of a value it writes
525
+ otherwise, by the path of that value: the lastChange of an entity naming none (its created), the name of a party naming
526
+ none (not of grid and parking operators), the lists it writes also empty, an identification given as a number, texts
527
+ its types write trimmed (identifications, references, currencies, versions, e-mail addresses, URLs), URLs with the
528
+ scheme https, the identification of a charging station operator in upper case, the role of a meter, the legal status of
529
+ a release and signature methods as they are named, coordinates as doubles (50.92710 as 50.9271; quantities keep their
530
+ decimals). Of a release and its licenses, a certificate and the meters it was issued with, a property they do not read
531
+ as WWCP_POI2 refuses it ("Unknown property 'x'."). The roaming network and its operator compared without case and
532
+ trimmed, as their types read them, also of the key statement and the certificates, signed as read. Seven cases keep the
533
+ words of this library, refused where it reads them, before the written form, as WWCP_POI takes them over (Achim's
534
+ decision of 2026-10-30): a property of a key of a party, of an EV Taler merchant or of an exchange, the merchant base URL,
535
+ the base URL and the currency of an exchange not as written. Probed against WWCP_POI3 at `3de830a` with 1257 versions of
536
+ QA: none it takes is refused here; of what it refuses as written otherwise, all in its words but those seven.
537
+
538
+
539
+ ## 0.1.0 (2026-10-29)
540
+
541
+ The first milestone: the examples A1 to A14 of WWCP_POI (commit `33447ac`) checked in TypeScript.
542
+
543
+ The findings of the review this port made of the C# implementation are cited as csharp-review N, N the number of the
544
+ finding in
545
+ [docs/csharp-review.md of WWCPPOIConformanceTests](https://github.com/OpenChargingCloud/WWCPPOIConformanceTests/blob/master/docs/csharp-review.md);
546
+ `docs/` of this repository held it up to `b9c786e`.
547
+
548
+ - Canonical JSON and deterministic CBOR of Styx; a lossless JSON parser keeping decimals as `System.Decimal` holds them.
549
+ - COSE keys, RFC 9679 thumbprints, signatures ES256/384/512, ES256K, ESP*, ESB*, Ed25519, Ed448, ML-DSA-44/65/87.
550
+ - Trust anchors (QR code, URL, JSON), key statements, certificates of signing keys; trust following the key statements
551
+ of a history (`OperatorTrust.followedBy`).
552
+ - Roaming networks with their ETags, effective members and the effective tree; proofs of charging stations, attestations,
553
+ the manufacturers and models of the station and its meters (`manufacturer`, `energyMeterModels`), the transparency
554
+ software and certificates of their energy meters.
555
+ - Change sets with their owners' signatures, commits, linear histories, checkpoints, their proofs and signatures by the
556
+ roaming network operator and by witnesses, archive segments; epochs, their final checkpoints and the genesis of the
557
+ next one.
558
+ - Charging station and energy meter manufacturers, parties stating their models; transparency software manufacturers and
559
+ conformity assessment bodies, parties holding their releases and certificates; the key usages `models`, `software` and
560
+ `certificates`; energy meter templates and groups.
561
+ - Price statements, their chains, checkpoint trees and proofs; evidence of a charging session as the app of example A10
562
+ keeps it (`parseEvidence`).
563
+ - The runtime status: status updates, frames of the WebSocket of a history, the runtime status of a snapshot.
564
+ - `POIClient`: the proof of a charging station and its prices, from the servers of a trust anchor.
565
+
566
+ Moving from the examples at `2d9511d` to `bbd4cbd` also made the ownership of changes the one of the C# implementation
567
+ where the port differed: identity keys of the roaming network operator counted for every change of a party, not only for
568
+ its keys; where it signs in place of a party without keys, its signing keys counted when they may sign `party`, not
569
+ when they may sign the usage of the change (csharp-review 13); its identity and signing keys counted alike for
570
+ everything it owns; and the signing keys of a party could not rotate its signing keys. The values of change sets are
571
+ kept in the order the C# implementation keeps them in (csharp-review 10).
572
+
573
+ Moving on to `801bbce`, the manufacturers became parties: the roaming network operator adds and removes them, they change
574
+ their own properties and state their models with a key that may sign `models`, every change of a model naming its
575
+ manufacturer. A change set changes only the properties of a party the C# implementation lets it change, so that the
576
+ models, releases and certificates of a party are not replaced as one of its properties by a key that may not sign them.
577
+ `forThisModel` of the transparency software of a meter asks for the version of the certificate among the versions of the
578
+ model as well.
579
+
580
+ Node.js 22.18 is the minimum, as of ChargyCore.TS: Node 20 has reached its end of life, and tsup 9, Vitest 5 and
581
+ ESLint 10 do not run on it. The code follows the ESLint rules of ChargyCore.TS; where a missing value used to be asserted
582
+ away, it is refused with a `POIError` saying what is missing. Tests of the bundle as published (its imports, its
583
+ declarations for TypeScript apps, the files `npm pack` takes) and of the library in Chromium join the tests in Node; GitHub
584
+ Actions run all of them on every push, and every night against floating dependencies, the newest codecs of Vanaheimr, and
585
+ the C# examples of WWCP_POI as they are.
586
+
587
+ The test vectors moved to WWCPPOIConformanceTests, which generates golden vectors - canonical JSON and CBOR, encodings,
588
+ the examples of section 6 of the specification, signed station proofs against a trust anchor, the documents of the run of
589
+ the C# examples, and documents to refuse - and runs them against this library and the C# implementation alike. This
590
+ repository vendors them in `tests/vectors` and runs them in `tests/conformance.test.ts`. The nightly check against the C#
591
+ examples of WWCP_POI master moved there as well.
592
+
593
+ The codecs of Vanaheimr are `@vanaheimr/cose` 0.10.0 and `@vanaheimr/metrological-cbor` 0.11.1: `@vanaheimr/cose` 0.9.0
594
+ brought a CBOR codec 0.10 of its own next to the 0.11 this library uses, so that an app installed two copies of it; now
595
+ there is one.
596
+
597
+ The digest of a price statement leaves its signature value out, as WWCP_POI does since `dbf39b0` (SPECIFICATION.md 12.1):
598
+ the SHA-256 of its signature input. The ECDSA twin `(r, n − s)` of a statement, which anybody can make of it, is the same
599
+ statement, of the same digest (csharp-review 2); `PriceStatement.sameSignedContent` is gone. The test vectors
600
+ are those WWCPPOIConformanceTests generates for it, with a new run of the C# examples at `dbf39b0`
601
+ (`tests/vectors/csharp-dbf39b0`).
602
+
603
+ The price statements of an entity are one chain in whichever spelling they name it, as WWCP_POI keys them since
604
+ `4680d99` (SPECIFICATION.md 12.1 to 12.3, `RoamingNetworkHistory.ChainOf`): by its type and its identification without
605
+ `*`, whitespace around it, or case (`priceStatementChainOf`, `PriceStatement.chain`), so that `DE*GEF*E1*1` and
606
+ `DE*GEF*E11` are one EVSE and a split view between them is seen. `follows` compares chains; `verifyPriceStatements`
607
+ refuses a statement naming an entity of the station otherwise than the roaming network does, before its signature is
608
+ looked at; `verifyCheckpointPriceStatements` refuses a checkpoint naming two statements of one entity and sequence with
609
+ different digests, in the order of its tree, both in the words of WWCP_POI. A sequence is at most 2^53 − 1
610
+ (`MAX_PRICE_STATEMENT_SEQUENCE`), as it was read here already. Not ported, as they bound what a server takes: a statement
611
+ more than 1,000,000 beyond the current one of its entity, and the statements a server keeps per operator for its next
612
+ checkpoint. The golden vectors hold both refusals (`tests/vectors/poi-refusals.json`, 75 vectors): the
613
+ statement of example A10 naming its EVSE as `DE*GEF*E11`, checked with the proof of its station
614
+ (`entityPriceStatement`), and checkpoint 4 naming a fourth statement of one sequence, in the other spelling and of
615
+ another price (`checkpointPriceStatements`, its control the checkpoint and its statements as published).
616
+
617
+ The holders of a quorum are counted as the trust anchor names them, as WWCP_POI does since `3e32f48` (SPECIFICATION.md
618
+ 4.1, 8.6; csharp-review 1): a trust anchor names the keys per holder, the `@id` of its key or the array of the
619
+ `@id`s of its keys (`TrustAnchor.holders`; in the URL the holders separated by `,`, the keys of one holder by `;`).
620
+ `KeyStatement.verifyHolders` counts the holders as the verifier knows them and refuses a statement naming the trusted
621
+ keys otherwise; a station proof, `OperatorTrust` and the signatures of checkpoints count an attestation or a signature
622
+ for the holder of the trusted identity key that certified its key. A change set naming a key of a party with another
623
+ holder than before is refused.
624
+
625
+ A change set is identified by its content, as WWCP_POI does since `bc3b1bd` (SPECIFICATION.md 4, 5.2;
626
+ csharp-review 4): its `@id` is the SHA-256 of its canonical JSON with its `@context`, without `@id` and
627
+ signatures (`changeSetIdentification`), so that nobody commits another change set in the place of one. `ChangeSet.parse`
628
+ refuses a change set identified otherwise, and one naming change sets in `metadata.rebasedFrom` it was not rebased from;
629
+ `Commit.parse` reads the change set of a commit as well and refuses a commit with one parent whose change set has no
630
+ changes or the identification of a merge. The test vectors are those of a new run of the C# examples at `bc3b1bd`
631
+ (`tests/vectors/csharp-bc3b1bd`).
632
+
633
+ A change set gives its new values as the content holds them, as WWCP_POI requires since `80e4ccc` (SPECIFICATION.md 2,
634
+ 4; csharp-review 10): a new value is applied as it is given, no longer written anew as the C# model would, and
635
+ one that names a JSON-LD context in what it embeds (custom data aside, which keeps it), gives identified elements, keys,
636
+ certificates or the lists of section 2 out of their order or twice, or a timestamp not UTC to the millisecond is
637
+ refused. An old value is compared as it is given. The test vectors are those of a new run of the C# examples at
638
+ `80e4ccc` (`tests/vectors/csharp-80e4ccc`).
639
+
640
+ An attestation gives its `validUntil`, at most 24 hours after its `signedAt`, as WWCP_POI requires since `be07037`
641
+ (SPECIFICATION.md 8.5, 8.6, 12.1; csharp-review 7): `Attestation.parse` refuses one without or valid longer
642
+ (`MAX_ATTESTATION_VALIDITY`), so that none is valid forever. The `signedAt` of an attestation or a price statement is the
643
+ choice of its signer: the signing key of an attestation counts when it is valid when it attested and at the time the proof
644
+ is checked, and a price statement is current no longer than its key.
645
+
646
+ A version naming twice an identification WWCP_POI keeps unique within the roaming network is refused, as WWCP_POI refuses
647
+ it (`DuplicateGridConnectionPoint` to `DuplicateEnergyMeterTemplate` of RoamingNetwork.cs): grid connection points, energy
648
+ meters, parking garages, spaces, sensors, space groups, space templates and products, transparency software releases and
649
+ certificates, energy meter templates and groups, the EVSE, charging station and charging pool groups of operators and
650
+ providers, and charging tariff offers, compared as their C# types compare them, without case but parking products, the
651
+ groups by the prefix of their party, `DE-GDF` as `DE*GDF` (`duplicateIdentification`). `RoamingNetwork.parse` checks every
652
+ version it reads, also the one a change set leads to: before, an operator could add a group of the identification a group
653
+ of the provider of its prefix has, and its change set was taken with the after ETags this library calculates. The golden
654
+ vectors `version-twice-*` of WWCPPOIConformanceTests hold both implementations to it, refused in the same words (`reason`).
655
+
656
+ The roaming network operator signs in place of a party without signing keys, e.g. the certificates of a conformity
657
+ assessment body or the grid connection points of a grid operator not taking part, by a signing key that may sign
658
+ `party`, as the examples certify its keys, as WWCP_POI does since `36bb176` (SPECIFICATION.md 4.1; csharp-review 13):
659
+ `checkOwnership` counts its signing keys that may sign `party` besides those that may sign the usage of the change.
660
+ A change set taken before is taken still.
661
+
662
+ A change set naming `rebasedFrom` with a change, but an `Add` or `AddElement`, without `oldValue` is refused, as WWCP_POI
663
+ refuses it since `1717ee2` (SPECIFICATION.md 4; csharp-review 12): only old values tell that a change set
664
+ committed meanwhile changed what it changes, which such a rebase may have overwritten. One not rebased is read as before.
665
+ The golden vector `changeSet-rebased-without-old-value` holds both implementations to it.
666
+
667
+ A model of charging stations or energy meters names its `hardwareRevisions` and `firmwareVersions`, and a charging
668
+ station and an energy meter one `hardwareRevision` and one `firmwareVersion` of it, as WWCP_POI does since `7e0b0ac`
669
+ (csharp-review 16); a certificate (`ConformityCertificate`, the `certificates` of a conformity assessment body)
670
+ is for a model of charging stations or of energy meters, in the hardware revisions and firmware versions it covers, and
671
+ names its components, the transparency software and, of a station model, the energy meters it was issued with; a
672
+ station and a meter name the certificates of their models in `certificateIds`, and the `transparencySoftwareStatus` of
673
+ a meter names a release and its legal status, no certificate, as WWCP_POI does since `987fa26` (csharp-review 17).
674
+ Change sets change them, effective members take them of their templates, and a certificate is unique within the
675
+ network. `verifyChargingStation` gives the `certificates` the station and its meters name, each with `forThisModel`:
676
+ whether it is for the model, the hardware revision and the firmware version of what names it; the `transparencySoftware`
677
+ of a meter gives the certificates naming its release, no longer a certificate of its own. The test vectors are those of
678
+ a new run of the C# examples at `987fa26` (`tests/vectors/csharp-987fa26`).
679
+
680
+ A charging station signing measurements itself names its `serialNumber`, `transparencySoftwareStatus`,
681
+ `signatureMethods` and `publicKeys` as an energy meter does, and the `modelURL` of its model; an EVSE names its
682
+ `iso15118Certificate`, as WWCP_POI does since `52f1172`. Change sets change them; an effective station takes the model
683
+ URL, the releases and the signature methods of its templates besides its own, never the serial number, the public keys
684
+ or the ISO 15118 certificate of the single device; and a change set giving the releases of a station or a meter out of
685
+ the order of their identifications, or one twice, is refused. `verifyChargingStation` gives the releases the station
686
+ names among its `transparencySoftware`, proven by the certificates of the station; each entry names what names it,
687
+ `namedBy` as of a certificate, in place of `energyMeterId` (`NamedTransparencySoftware` in place of
688
+ `MeterTransparencySoftware`). The test vectors stay those of the run at `987fa26`: no station of its examples signs
689
+ measurements itself.
690
+
691
+ The first checkpoint of an epoch takes signatures of the algorithms of its epoch and of the epoch before, no other, as
692
+ WWCP_POI does since `65e658d` (SPECIFICATION.md 11.3; csharp-review 14): a history started by
693
+ `startNextEpoch` knows the profiles of the epoch it closed, one started from a snapshot those its `epoch` names as
694
+ `previousProfiles` (`History.previousEpochProfiles`), and those of the first epoch are the default ones; without them
695
+ it takes the algorithms of its own epoch alone. A snapshot of the epoch 2 naming profiles of the epoch before is refused.
696
+
697
+ A certificate the roaming network operator adds or changes in place of a conformity assessment body without signing keys
698
+ says so, `"statedBy": "roamingNetworkOperator"`, as WWCP_POI requires since `65e658d` (SPECIFICATION.md 4.1;
699
+ csharp-review 15): a change set adding or changing a certificate whose `statedBy` does not say who signs it, as
700
+ the version before has the keys of the body, is refused. `verifyChargingStation` gives each certificate with `statedBy`,
701
+ `ConformityAssessmentBody` or `RoamingNetworkOperator`, in place of `bodyHasKeys`, which could not tell them apart once
702
+ the body had keys. The test vectors stay those of the run at `987fa26`: none of its examples has a third epoch or a
703
+ certificate stated in place of a body.
704
+
705
+ A version naming a hardware revision, firmware version or serial number WWCP_POI refuses is refused, read or led to by a
706
+ change set, as WWCP_POI reads them since `c31e5e3` and `3672b06` (`HardwareRevision`, `FirmwareVersion`,
707
+ `SerialNumber`): a text as it is given, not empty and neither beginning nor ending with whitespace as `Char.IsWhiteSpace`
708
+ tells it, of charging stations, energy meters and their templates, of the models of their manufacturers, and of
709
+ certificates and the energy meters they were issued with, each once in a model, a certificate and such an energy meter
710
+ (`ModelVersions.Of`), in the words of WWCP_POI (`invalidVersionText`, which `RoamingNetwork.parse` checks with
711
+ `duplicateIdentification`, and for certificates `invalidCertificates`, below). Whether one is of the model of what names
712
+ it stays with the references, which this library
713
+ leaves to WWCP_POI. The test vectors stay those of the run at `987fa26`, whose versions name none it refuses; the vectors
714
+ `version-text-*` of WWCPPOIConformanceTests, its head so changed, hold both implementations to it, refused in the same
715
+ words (`reason`).
716
+
717
+ The golden vectors of WWCPPOIConformanceTests hold, besides the run of the C# examples, small histories it signs itself
718
+ (`tests/vectors/poi-histories.json`), replayed step by step in `tests/conformance.test.ts`: who signs in place of a
719
+ party without keys, who states a certificate, old values and rebases, keys expired and removed, new values as the
720
+ content holds them, `lastChange` of what embeds a change, and three epochs (csharp-review 3, 8, 10, 12 to 15). Ten of
721
+ them - the references a version holds, the groups of e-mobility providers, grid connection points - this library
722
+ leaves to WWCP_POI, and does not run. They found a deviation of this library (D8 of WWCPPOIConformanceTests): a change
723
+ set signed, besides by its owner, by a key of a party not valid at its `createdAt` was taken here, and refused by
724
+ WWCP_POI. Every signature by a key of a party of the version is now by one valid at the `createdAt` of the change set,
725
+ also one besides the signatures of the owners, refused otherwise in the words of WWCP_POI (`TryGetSigners`); only a new
726
+ identity key, which proves its possession, may be one valid later (SPECIFICATION.md 4.1).
727
+
728
+ A version naming a certificate WWCP_POI refuses to read is refused, read or led to by a change set, as
729
+ `ConformityCertificate` and `CertifiedEnergyMeter` of WWCP_POI read them (`src/network/certificates.ts`,
730
+ `invalidCertificates`, which `RoamingNetwork.parse` checks after `invalidVersionText`): for exactly one model, with its
731
+ manufacturer; at least one hardware revision and one firmware version, also of each energy meter it was issued with, as
732
+ an object of its manufacturer and its model; an absolute `documentURL`, a legislation not empty, timestamps with an
733
+ explicit offset, `notBefore` not after `notAfter` to the tick; at least one release, each once (compared ordinally once
734
+ trimmed, as WWCP_POI does), none both verified and compatible (compared without case); energy meters of a charging
735
+ station model only, each model once, compared without case. Refused in the words and in the order of WWCP_POI: first
736
+ what it reads as the arguments of a certificate, by their path, then what its constructor checks. Its versions as
737
+ texts moved there from `invalidVersionText`, in the same words. The vectors `version-certificate-*` of
738
+ WWCPPOIConformanceTests found that this library took all of them (D9) and hold both implementations to it. Whether a
739
+ certificate's model, versions, releases and legislation are those of the network stays with the references, which this
740
+ library leaves to WWCP_POI; an unknown property, also of a certificate, this library does not refuse.
741
+
742
+ A history starts from a snapshot of another server only anchored in the trust anchor of the roaming network, fail
743
+ closed, as a peer of WWCP_POI starts since `ff2c56f` (SPECIFICATION.md 10.5, *Anchored*; `History.fromSnapshot` with
744
+ `SnapshotOptions`): a snapshot of a checkpoint by the checkpoint, signed in the role of the roaming network operator by
745
+ signing keys of as many holders as the trust anchor and the key statement of its version require, each certified by a
746
+ trusted identity key of its holder, valid when it signed and at `at` (`ChargingStationProof.verifyCheckpoint`, as
747
+ `Verify(Checkpoint, TrustAnchor)` of WWCP_POI); a snapshot of the head by the `attestations` it carries since then (8.5),
748
+ which must attest the root of its head as for a proof of the root (`ChargingStationProof.ofRoot`, as `VerifyHead` of
749
+ WWCP_POI). Without a trust anchor no snapshot is taken, unless the caller takes it `unanchored` explicitly, e.g. a genesis
750
+ whose key statement it verifies against the trust anchor itself; an archive segment replays its base so, anchored by the
751
+ checkpoint of its end. Before, a snapshot of the head carrying attestations was refused, and every snapshot taken
752
+ unanchored. An attestation of a snapshot that cannot be read is refused, not left out.
753
+
754
+ A signed commit or checkpoint, also the commit of a snapshot, is refused without a verifier of its signatures, as
755
+ WWCP_POI does (`CheckSignatures`): before, its signatures were taken unchecked when `HistoryOptions.verifyCommit` or
756
+ `verifyCheckpoint` was left out (O3 of WWCPPOIConformanceTests). `verifyCommit` checks the commit of a snapshot as well,
757
+ its version before unknown there (`before` undefined).
758
+
759
+ QI-Digital documents, the proof of concept of WWCP_POI (`WWCP_POI3/RoamingNetwork/QIDigital`, as of `6a0f96e`, which
760
+ example A14 uses), are read and checked, not signed (`src/qidigital/`): the digital calibration certificate of a charging
761
+ station or an energy meter (`DigitalCalibrationCertificate`), the digital certificate of conformity of a model or, of a
762
+ module of quality assurance, of the quality system of a manufacturer (`DigitalCertificateOfConformity`), and the digital
763
+ declaration of conformity of a model (`DigitalDeclarationOfConformity`). Each is refused in the words and the order of
764
+ WWCP_POI: only its own properties, its context, timestamps exactly as signed, numbers as numbers, what its constructor
765
+ checks after its properties were read. Its signature input and its digest are what WWCP_POI writes again of what it read
766
+ (`Content()`), not the text as given: numbers without trailing zeros, a whole one as an integer, identifications trimmed,
767
+ a charging station as `DE*GEF*S1`, `mainSigner` false, an empty list or text and a revision 0 as WWCP_POI writes them.
768
+ Checked against a roaming network as WWCP_POI checks them: the issuer a party of it, its key one that may sign the
769
+ document and valid when it signed and at `at`; the notified body with its number, notified for the legislation; the
770
+ model, its manufacturer, revisions and versions; the charging station or energy meter of a calibration certificate as it
771
+ is at runtime, with what its templates give it, and with the serial number the roaming network gives it, not the one the
772
+ certificate names (csharp-review 23). And against each other: a declaration and each certificate it names, a certificate
773
+ and the item of a calibration certificate it covers. A text in languages of no language, one that is no text and a
774
+ language given twice are refused, not left out, as WWCP_POI refuses them since `bbe8fb8`: left out, they would travel
775
+ unsigned with a signed document.
776
+ A URL is read as Hermod reads it as far as a document URL needs it: trimmed, https unless it names a scheme, of http or
777
+ https with a host.
778
+
779
+ The test vectors are those of a new run of the C# examples at `33447ac` (`tests/vectors/csharp-33447ac`), the first with
780
+ example A14: the QI-Digital documents of the meter of DE*GEF*E2*1 as WWCP_POI signed them, with ML-DSA-65 by the PTB and
781
+ EM-LAB and with ES256 by SAALE, are checked against QA as example A14 published it, refused changed in the words of
782
+ WWCP_POI, and written again as WWCP_POI wrote them. EM-LAB is a member of QA since, so the head is revision 8 of epoch 2.
783
+ `examples/validate-examples.ts` checks example A14 as its `Validate()` does, and starts from the snapshots of examples A4,
784
+ A5 and A11 anchored in the trust anchor, from the genesis and the live snapshot of example A12 unanchored, as the
785
+ examples do: since the anchored start it refused them.
786
+
787
+ The golden vectors hold the QI-Digital documents of example A14 too (`tests/vectors/poi-qidigital.json`), run in
788
+ `tests/conformance.test.ts` as WWCPPOIConformanceTests runs them against WWCP_POI: the four documents verified against
789
+ QA, the declaration of conformity against the certificates it names, both certificates covering the meter of
790
+ DE*GEF*E2*1, a calibration certificate of the charging station DE*GEF*S2, signed by the generator with a key QA patched
791
+ gives EM-LAB, and 38 refusals, each with its control, of documents or of QA patched. Both implementations refuse a text
792
+ of no language, or one that is no text (D10 there, fixed in WWCP_POI `bbe8fb8`), and the calibration certificate of a
793
+ station against one of another serial number, or of none (csharp-review 23).
794
+
795
+ EV Taler, phase 1 of the concept of WWCP_POI for paying for charging with GNU Taler (`concepts/EVTaler.md`), as of
796
+ `ec3dace`: a charging station operator names its merchant at a GNU Taler merchant backend and the exchanges whose coins it
797
+ accepts (`evTaler`, `evTalerMerchantOf`), refused where WWCP_POI refuses it and in its words: base URLs of HTTPS without
798
+ user, query and fragment, ending in '/', read as Hermod reads them; keys as GNU Taler writes them (`isTalerPublicKey`);
799
+ at least one exchange, each once, of an ISO 4217 currency of Styx and with a name. A change of it needs a signing key
800
+ that may sign the new usage `payments`. Payment options are an open set of names: any nonempty text, none twice whatever
801
+ its case, united with those of the templates of a charging pool without case; a charging pool or template naming EVTaler
802
+ needs the merchant of its operator, after the last change of a change set. An app reads the EV Taler tariff of an EVSE
803
+ and the exchanges in its currency from the proof of its station (`evTalerTariffOf`, `evTalerExchangesAt`), and what
804
+ drivers see, "EV Taler (Example Exchange, EUR)" (`paymentOptionName`). The JSON, the CBOR and the tree of a version with
805
+ a merchant are those WWCP_POI writes: `tests/evTaler.test.ts` holds the ETags WWCP_POI3 calculates of QA with the merchant
806
+ of its EVTalerTests. Not yet: golden vectors of WWCPPOIConformanceTests, and a station proof with a merchant as WWCP_POI
807
+ signs it (example A15 came after the frozen run). Nothing here takes or makes a payment.
808
+
809
+ The keys of the parties of a roaming network are read where it is read, as WWCP_POI reads them wherever it reads a
810
+ party (`POIPartyKeys.TryParse` and `Check`), in its words (D12 of WWCPPOIConformanceTests): before, a party's keys were
811
+ only read where they were used, so a version naming an unknown usage of a party's key was taken. Every key as
812
+ `POIPublicKey.parse` reads it, none twice, none both a signing and an identity key, no identity key naming usages; the
813
+ parties in the order WWCP_POI reads them, the charging station operators last; the identity keys of the roaming network
814
+ operator in the same words (`src/network/partyKeys.ts`). Checked against WWCP_POI3 at `ec3dace` itself, on 47 versions
815
+ of QA with keys valid and not, of every kind of party: 40 are read as WWCP_POI3 reads them, in the same words; 5 both
816
+ refuse, in other words of `POIPublicKey.parse` within the same wrapper (a key without identification or key, not
817
+ Base64, expiring before it becomes valid, of another JSON-LD context); 2 name a `notAfter` WWCP_POI takes and writes
818
+ otherwise (a date only, an offset), refused here as every timestamp not written as POI writes it. `poi-refusals.json` of
819
+ WWCPPOIConformanceTests vendored, 89 vectors: the 13 of EV Taler and `version-key-usage-unknown`, D12 closed.
820
+
821
+ A key is read in the words and order of `POIPublicKey.TryParse` of WWCP_POI (`POIPublicKey.parse`): its identification
822
+ and key as texts, then its JSON-LD context, then both given ("A public key needs its identification and its key!"); a
823
+ key .NET can not read as Base64 in the words of .NET, one it reads but writes otherwise as not canonical; "Invalid COSE
824
+ key: …", "A public key must not contain private parts!", "The holder of a public key must be a text!"; a key expiring
825
+ before it becomes valid where the constructor of WWCP_POI refuses it, after its holder and usages, before its
826
+ thumbprint. Checked against WWCP_POI3 at `ec3dace` itself, on 45 more versions of QA with keys valid and not: 34 in its
827
+ words. Still other words: a key of CBOR WWCP_POI3 can not read (the words of `@vanaheimr/cose` and
828
+ `@vanaheimr/metrological-cbor`, not of their C# originals), a timestamp both refuse ("Invalid value for 'not before'!"
829
+ there). Refused here, taken and written otherwise by WWCP_POI3: a key not in deterministic CBOR, a timestamp not written
830
+ as POI writes it, a `notBefore` or `notAfter` of null.
831
+
832
+ `poi-histories.json` of WWCPPOIConformanceTests `0734641` vendored: 8 replays of EV Taler in a history the generator
833
+ signs, who may sign the merchant of DE*GEF (a signing key for `payments`; the roaming network operator only in place
834
+ of a party without signing keys) and a charging pool naming EVTaler with and without it. A change needing signatures is
835
+ named as WWCP_POI names it, with the property it changes, e.g. "Change 0: UpdateProperty of the
836
+ ChargingStationOperator 'DE*GEF' ('evTaler') needs a signature by …".