@hazbase/simplicity 0.4.9 → 0.4.10

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/README.md CHANGED
@@ -195,6 +195,13 @@ treasury then independently unblinds and checks the payment before service
195
195
  finalization. Existing `strict_v2` and `strict_v2_compact` positions are not
196
196
  changed or reinterpreted by this profile.
197
197
 
198
+ `strict_v2_compact_confidential` applies the same fixed payment-output
199
+ confidentiality to the bounded pilot envelope: at most 3 inputs, 4 outputs,
200
+ and 2 approved holders. It is intended for one-position issuance and purchase
201
+ flows where the general profile would exceed the network execution budget. It
202
+ does not weaken the holder signature, whitelist, asset-conservation, or
203
+ fixed-index payment checks.
204
+
198
205
  ```ts
199
206
  const verifier = normalizeStrictPolicyVerifierCovenantParams({
200
207
  assetId,
@@ -243,7 +243,8 @@ async function compileStrictPolicyHolderCovenant(config, value) {
243
243
  });
244
244
  }
245
245
  function strictPolicyVerifierCovenantTemplatePath(resourceProfile = "strict_v2") {
246
- if (resourceProfile === "strict_v2_confidential") {
246
+ if (resourceProfile === "strict_v2_confidential"
247
+ || resourceProfile === "strict_v2_compact_confidential") {
247
248
  return `${__dirname}/../docs/definitions/strict-verifier-confidential-v1.simf`;
248
249
  }
249
250
  return `${__dirname}/../docs/definitions/strict-verifier-ordinary-v1.simf`;
@@ -29,6 +29,13 @@ export declare const STRICT_POLICY_VERIFIER_RESOURCE_PROFILES: {
29
29
  readonly whitelistDepth: 8;
30
30
  readonly maxWhitelistOwners: number;
31
31
  };
32
+ readonly strict_v2_compact_confidential: {
33
+ readonly id: "strict_v2_compact_confidential";
34
+ readonly maxInputs: 3;
35
+ readonly maxOutputs: 4;
36
+ readonly whitelistDepth: 1;
37
+ readonly maxWhitelistOwners: number;
38
+ };
32
39
  };
33
40
  export type StrictPolicyVerifierResourceProfileId = keyof typeof STRICT_POLICY_VERIFIER_RESOURCE_PROFILES;
34
41
  export type StrictPolicyVerifierResourceProfile = (typeof STRICT_POLICY_VERIFIER_RESOURCE_PROFILES)[StrictPolicyVerifierResourceProfileId];
@@ -49,6 +49,15 @@ exports.STRICT_POLICY_VERIFIER_RESOURCE_PROFILES = {
49
49
  whitelistDepth: exports.STRICT_POLICY_WHITELIST_DEPTH,
50
50
  maxWhitelistOwners: exports.STRICT_POLICY_MAX_WHITELIST_OWNERS,
51
51
  },
52
+ // Keeps the confidential treasury-payment path within the same bounded
53
+ // execution envelope as the initial one-position pilot.
54
+ strict_v2_compact_confidential: {
55
+ id: "strict_v2_compact_confidential",
56
+ maxInputs: 3,
57
+ maxOutputs: 4,
58
+ whitelistDepth: exports.STRICT_POLICY_COMPACT_WHITELIST_DEPTH,
59
+ maxWhitelistOwners: exports.STRICT_POLICY_COMPACT_MAX_WHITELIST_OWNERS,
60
+ },
52
61
  };
53
62
  exports.STRICT_POLICY_WHITELIST_OWNER_DOMAIN = "HAZBASE-RWA-STRICT-WHITELIST-OWNER-V1";
54
63
  exports.STRICT_POLICY_WHITELIST_EMPTY_DOMAIN = "HAZBASE-RWA-STRICT-WHITELIST-EMPTY-V1";
@@ -61,7 +70,7 @@ function validationError(field, message) {
61
70
  }
62
71
  function resolveStrictPolicyVerifierResourceProfile(value = "strict_v2") {
63
72
  if (typeof value !== "string" || !(value in exports.STRICT_POLICY_VERIFIER_RESOURCE_PROFILES)) {
64
- validationError("resourceProfile", "must be strict_v2, strict_v2_compact, or strict_v2_confidential");
73
+ validationError("resourceProfile", "must be strict_v2, strict_v2_compact, strict_v2_confidential, or strict_v2_compact_confidential");
65
74
  }
66
75
  return exports.STRICT_POLICY_VERIFIER_RESOURCE_PROFILES[value];
67
76
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hazbase/simplicity",
3
- "version": "0.4.9",
3
+ "version": "0.4.10",
4
4
  "description": "An SDK for Simplicity on Liquid",
5
5
  "author": "IndieSquare Inc <info@hazbase.com>",
6
6
  "keywords": [