@peerbit/trusted-network 6.0.104 → 6.0.106
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/src/v2-policy-anchor.d.ts +75 -0
- package/dist/src/v2-policy-anchor.d.ts.map +1 -0
- package/dist/src/v2-policy-anchor.js +990 -0
- package/dist/src/v2-policy-anchor.js.map +1 -0
- package/dist/src/v2-policy-engine.d.ts +54 -11
- package/dist/src/v2-policy-engine.d.ts.map +1 -1
- package/dist/src/v2-policy-engine.js +431 -68
- package/dist/src/v2-policy-engine.js.map +1 -1
- package/dist/src/v2.d.ts +6 -0
- package/dist/src/v2.d.ts.map +1 -1
- package/dist/src/v2.js +6 -0
- package/dist/src/v2.js.map +1 -1
- package/package.json +4 -4
- package/src/v2-policy-anchor.ts +1152 -0
- package/src/v2-policy-engine.ts +621 -77
- package/src/v2.ts +7 -0
package/src/v2.ts
CHANGED
|
@@ -33,6 +33,13 @@ export const TRUSTED_NETWORK_V2_POLICY_HASH_SHA256 = 1;
|
|
|
33
33
|
*/
|
|
34
34
|
export const TRUSTED_NETWORK_V2_ENTRY_V0_AUTHORITY_ONLY_SIGNATURE_PROFILE = 1;
|
|
35
35
|
|
|
36
|
+
/**
|
|
37
|
+
* Consensus ceiling for the canonical serialized EntryV0 carrying a v2 policy
|
|
38
|
+
* snapshot. Every replica applies this exact bound before decoding the entry;
|
|
39
|
+
* it is part of signature profile 1 rather than a replica-local resource knob.
|
|
40
|
+
*/
|
|
41
|
+
export const TRUSTED_NETWORK_V2_MAX_POLICY_ENTRY_BYTES = 128 * 1024;
|
|
42
|
+
|
|
36
43
|
export const TRUSTED_NETWORK_V2_NETWORK_ID_DOMAIN =
|
|
37
44
|
"peerbit/trusted-network/v2/network-id/v1";
|
|
38
45
|
export const TRUSTED_NETWORK_V2_POLICY_DIGEST_DOMAIN =
|