@cardanowall/poe-standard 0.1.0 → 0.2.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.
package/dist/validator.js CHANGED
@@ -1625,7 +1625,7 @@ function decodeCanonicalCbor(bytes) {
1625
1625
  ...r,
1626
1626
  rejectStreaming: true,
1627
1627
  rejectDuplicateKeys: true,
1628
- // A CIP-309 record carries integers, byte/text strings, arrays, maps and
1628
+ // A Label 309 record carries integers, byte/text strings, arrays, maps and
1629
1629
  // `null` — and nothing else. Without these rejections the major-type-7
1630
1630
  // surface leaks into the decoder: a float16/32/64 that happens to hold an
1631
1631
  // integral value (e.g. 1.0) silently decodes to the integer 1 and passes
@@ -2076,7 +2076,7 @@ function decodeCanonicalCbor2(bytes) {
2076
2076
  ...r,
2077
2077
  rejectStreaming: true,
2078
2078
  rejectDuplicateKeys: true,
2079
- // A CIP-309 record carries integers, byte/text strings, arrays, maps and
2079
+ // A Label 309 record carries integers, byte/text strings, arrays, maps and
2080
2080
  // `null` — and nothing else. Without these rejections the major-type-7
2081
2081
  // surface leaks into the decoder: a float16/32/64 that happens to hold an
2082
2082
  // integral value (e.g. 1.0) silently decodes to the integer 1 and passes
@@ -2620,7 +2620,7 @@ function validateOneUri(chunks, path, errors) {
2620
2620
  const cid = slashIdx === -1 ? rest : rest.slice(0, slashIdx);
2621
2621
  if (!validateCidProfile(cid)) {
2622
2622
  errors.push(
2623
- issue("INVALID_URI", path, "ipfs:// URI is not a valid CID under the CIP-309 profile")
2623
+ issue("INVALID_URI", path, "ipfs:// URI is not a valid CID under the Label 309 profile")
2624
2624
  );
2625
2625
  }
2626
2626
  return;
@@ -2668,7 +2668,7 @@ function checkItemEnc(item, idx, errors) {
2668
2668
  issue(
2669
2669
  "UNAUTHENTICATED_CIPHER_FORBIDDEN",
2670
2670
  [...basePath, "aead"],
2671
- `'${enc.aead}' is an unauthenticated cipher; CIP-309 mandates an authenticated (AEAD) cipher`
2671
+ `'${enc.aead}' is an unauthenticated cipher; Label 309 mandates an authenticated (AEAD) cipher`
2672
2672
  )
2673
2673
  );
2674
2674
  return;