nostr-veil 0.35.0 → 0.36.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/README.md CHANGED
@@ -268,13 +268,13 @@ The root entry point re-exports all of `nostr-veil/nip85`, `nostr-veil/proof` an
268
268
  kind?: number // aggregateContributions only; legacy, default 30382
269
269
  expiration?: number // NIP-40 expiration tag, unix seconds
270
270
  alt?: string // NIP-31 alt tag, non-empty
271
- contributionBounds?: Record<string, { min?: number; max?: number; integer?: boolean }> // refuse a contribution outside these bounds
271
+ contributionBounds?: Record<string, { min?: number; max?: number; integer?: boolean; required?: boolean }> // refuse a contribution outside these bounds
272
272
  }
273
273
  ```
274
274
 
275
275
  `median` and `mean` round to an integer; `sum`, `min` and `max` do not. A non-finite result throws, and an unknown `aggregate` name throws `Unknown aggregate function: <name>`. A built-in name is written to the `veil-agg` tag and `verifyProof` reads it from there, so verifying a summed tally needs no option: `aggregateContributions(circle, subject, contributions, { aggregate: 'sum' })` verifies with a bare `verifyProof(event)`. A custom function is written as `veil-agg: custom` and must be passed to the verifier too (`verifyProof(event, { aggregateFn })` or a bare function), otherwise it fails with `veil-agg is "custom": pass the aggregate function via options to verify the metric tags`.
276
276
 
277
- **The publisher chooses the aggregate, and each member chooses their value.** The circle does not sign `veil-agg`, and the signatures are public, so anyone can republish the same signatures under another function: three scores of 20, 20 and 95 read as 20 under `median` and 95 under `max`, and both pass a bare `verifyProof`. A verifier that expects a particular function says so with `requireAggregate` (the built-in profiles do). A key image stops a member contributing twice, not contributing one large value, and under `sum`, `mean`, `min` or `max` one contribution can move the result. Bound each contribution with `contributionBounds`, for example `{ rank: { min: 0, max: 1, integer: true } }` for a tally of ayes; a metric with no entry is not bounded. Aggregation then throws on a contribution outside the bounds (`Contribution index 2 metric "rank" value 3 is above the contribution maximum 1`), and `contributionBoundViolations(contribution.metrics, bounds)` lets an aggregator find and leave out such a contribution first.
277
+ **The publisher chooses the aggregate, and each member chooses their value.** The circle does not sign `veil-agg`, and the signatures are public, so anyone can republish the same signatures under another function: three scores of 20, 20 and 95 read as 20 under `median` and 95 under `max`, and both pass a bare `verifyProof`. A verifier that expects a particular function says so with `requireAggregate` (the built-in profiles do). A key image stops a member contributing twice, not contributing one large value, and under `sum`, `mean`, `min` or `max` one contribution can move the result. Bound each contribution with `contributionBounds`, for example `{ rank: { min: 0, max: 1, integer: true, required: true } }` for a tally of ayes; a metric with no entry is not bounded. Add `required: true` to reject a signer who left the metric out: without it that member still counts towards `distinctSigners`, so a value can rest on fewer contributions than the signer count. Aggregation then throws on a contribution outside the bounds (`Contribution index 2 metric "rank" value 3 is above the contribution maximum 1`), and `contributionBoundViolations(contribution.metrics, bounds)` lets an aggregator find and leave out such a contribution first.
278
278
 
279
279
  `expiration` and `alt` are publisher tags: the circle does not sign them, and `verifyProof` does not read them as metrics. `expiration` must be a non-negative safe integer and `alt` a non-empty string, or aggregation throws. `verifyProof` accepts at most one of each, rejects an `expiration` that is not a unix time in seconds or an empty `alt`, and does not compare expiry with the clock, so archived events can still be re-checked. The profile verifiers (`verifyUseCaseProfile`, `verifyDeploymentPolicy` and the bundle verifiers built on them) do: they reject an assertion whose `expiration` is at or before `now`, because many relays and caches still serve expired events. These tags are only as trustworthy as the outer Nostr signature, which `verifyProof` does not check: verify the event signature (`verifySignedEvent`, or `requireNostrSignature` in a deployment policy) before relying on them. Other general tags (`client`, `nonce`, `-`, `L`, `l`, `i`, `content-warning`) are not accepted on veil events, and `verifyProof` reads them as unsigned metrics. A metric tag must be exactly `[name, value]`: the circle signs only those two, so `verifyProof` rejects a metric tag with anything after the value, and the same for the `d` tag and the `k` tag. The proof tags have a fixed shape too: a second `veil-ring`, `veil-threshold`, `veil-agg`, `veil-version` or `veil-scope` tag, or extra elements on any of them or on a `veil-sig`, makes the event invalid. Unknown `veil-*` tags are ignored, so a verifier keeps working when a later release adds one. A `k` tag is accepted only on kind 30385, where it names the identifier type.
280
280
 
@@ -286,7 +286,7 @@ The root entry point re-exports all of `nostr-veil/nip85`, `nostr-veil/proof` an
286
286
  | `expectedKind` | `number` | Reject events of any other NIP-85 kind. Recommended for v1 proofs, which are not kind-bound |
287
287
  | `requireProofVersion` | `'v1' \| 'v2'` | Reject signatures of the other proof version |
288
288
  | `requireAggregate` | `'median' \| 'mean' \| 'sum' \| 'min' \| 'max' \| 'custom'` | Reject the event unless its `veil-agg` tag names this function, with `veil-agg is "max" but "median" is required`. An event with no `veil-agg` tag reads as `median`. When this names a built-in function the metric tags are recomputed with it, whatever `aggregateFn` is passed. Recommended: the publisher chooses the tag |
289
- | `contributionBounds` | `Record<string, { min?, max?, integer? }>` | Reject the event if any contribution's value for a named metric is outside its bounds. Needed under `sum`, `mean`, `min` and `max`. Malformed bounds fail the proof; they are never ignored |
289
+ | `contributionBounds` | `Record<string, { min?, max?, integer?, required? }>` | Reject the event if any contribution's value for a named metric is outside its bounds. Needed under `sum`, `mean`, `min` and `max`. Malformed bounds fail the proof; they are never ignored |
290
290
  | `rejectSubjectInRing` | `boolean` | Fail with `Subject is a veil-ring member` when the d-tag subject is a ring member. Default `false`; `subjectInRing` is reported either way |
291
291
  | `limits` | `Partial<VerifyLimits>` | Override `DEFAULT_VERIFY_LIMITS`: `maxRingSize` 1000, `maxSigPayloadBytes` 128000, `maxSignedMessageBytes` 16384, `maxMetricCount` 128, `maxMetricNameLength` 64 |
292
292
 
@@ -302,7 +302,7 @@ It returns `{ valid, circleSize, threshold, distinctSigners, subjectInRing, inde
302
302
  |----------|---------|
303
303
  | `createCircleManifest(options)` | Required: `issuedAt`, `members`, `name`, `profileIds`, `purpose`. Optional: `expiresAt`, `status` (`'active' \| 'revoked' \| 'superseded'`), `supersedes`, `revokedCircleIds`, `contact`, `evidenceProcess`, `policyUri` |
304
304
  | `verifyCircleManifest(manifest, options?)` | `allowSuperseded`, `now`, `profileId`, `revokedCircleIds` |
305
- | `createDeploymentPolicy(profile, options)` | Required: `expectedSubject`, plus at least one active circle from `acceptedCircleIds` or `circleManifests`. Optional: `expectedSubjectTagValue`, `id` (default: the profile id), `maxAgeSeconds` and `minDistinctSigners` (default: the profile's), `metricPolicies` (`{ [metric]: { required?, min?, max?, integer? } }`, bounds on the published aggregate), `aggregate` (default: the profile's), `contributionBounds` (`{ [metric]: { min?, max?, integer? } }`, bounds on each contribution, replacing the profile's for that metric), `rejectUnknownMetrics` (default `false`), `requireNostrSignature` (default `false`), `companionEvidence`, `allowSupersededCircleIds` (default `false`), `now` |
305
+ | `createDeploymentPolicy(profile, options)` | Required: `expectedSubject`, plus at least one active circle from `acceptedCircleIds` or `circleManifests`. Optional: `expectedSubjectTagValue`, `id` (default: the profile id), `maxAgeSeconds` and `minDistinctSigners` (default: the profile's), `metricPolicies` (`{ [metric]: { required?, min?, max?, integer? } }`, bounds on the published aggregate), `aggregate` (default: the profile's), `contributionBounds` (`{ [metric]: { min?, max?, integer?, required? } }`, bounds on each contribution, replacing the profile's for that metric), `rejectUnknownMetrics` (default `false`), `requireNostrSignature` (default `false`), `companionEvidence`, `allowSupersededCircleIds` (default `false`), `now` |
306
306
  | `createSignedDeploymentBundle(policy, options)` | Required: `id`, `issuedAt`, `privateKey` (hex). Optional: `expiresAt` (must be greater than `issuedAt`). Returns a frozen bundle carrying the `signer` pubkey and `signature` |
307
307
  | `verifyUseCaseProfile(events, profile, options?)` | `acceptedCircleIds`, `aggregate`, `aggregateFn`, `contributionBounds`, `expectedSubject`, `expectedSubjectTagValue`, `maxAgeSeconds`, `minDistinctSigners`, `now`, `requireKnownCircle` (fails when no accepted circle is supplied unless set to `false`) |
308
308
  | `verifyDeploymentPolicy(events, policy, options?)` | `aggregateFn`, `companionEvidence` (the supplied `CompanionEvidence[]`), `now` |
@@ -51,7 +51,7 @@ const VERIFICATION_ISSUE_EXPLANATION_INPUTS = {
51
51
  'profile.subject_hint_mismatch': explanation('The subject hint tag value does not match the profile policy.', 'Use the expected p, e, a, or k tag value and require proof v2 for workflows that rely on subject binding.'),
52
52
  'profile.subject_mismatch': explanation('The assertion is about a different subject than the deployment expected.', 'Reject it and verify only assertions whose subject equals the canonical expectedSubject.'),
53
53
  'proof.aggregate_mismatch': explanation('The assertion was published with a different aggregate function from the one the profile or policy requires.', 'Reject it. The publisher chooses the veil-agg tag, so the same signatures can be republished as a max or a min; fetch the assertion published with the expected aggregate, or change the policy aggregate only through explicit governance.'),
54
- 'proof.contribution_out_of_bounds': explanation('A contribution carries a value outside the bounds the profile or policy sets for one member.', 'Reject it. The aggregator should leave that contribution out and publish again; contributionBoundViolations() finds it before aggregating.'),
54
+ 'proof.contribution_out_of_bounds': explanation('A contribution carries a value outside the bounds the profile or policy sets for one member, or leaves out a metric those bounds require.', 'Reject it. The aggregator should leave that contribution out and publish again; contributionBoundViolations() finds it before aggregating.'),
55
55
  'proof.invalid': explanation('The nostr-veil ring proof is invalid.', 'Reject the assertion; collect a new aggregate from the circle rather than trying to repair proof tags.'),
56
56
  'proof.threshold_not_met': explanation('The proof has fewer distinct signers than the deployment requires.', 'Collect more valid contributions from the circle or change the threshold only through explicit governance.', 'manual-review'),
57
57
  'verification.failed': explanation('Verification failed with an unclassified error.', 'Reject by default, inspect result.errors, and add a more specific issue mapping if this becomes a supported failure mode.', 'manual-review'),
@@ -1 +1 @@
1
- {"version":3,"file":"issues.js","sourceRoot":"","sources":["../../src/profiles/issues.ts"],"names":[],"mappings":"AA4EA,SAAS,WAAW,CAClB,OAAe,EACf,WAAmB,EACnB,SAAkC,QAAQ;IAE1C,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,CAAA;AACzC,CAAC;AAED,MAAM,qCAAqC,GAAG;IAC5C,8BAA8B,EAAE,WAAW,CACzC,kDAAkD,EAClD,kGAAkG,CACnG;IACD,iBAAiB,EAAE,WAAW,CAC5B,2DAA2D,EAC3D,8IAA8I,EAC9I,mBAAmB,CACpB;IACD,gBAAgB,EAAE,WAAW,CAC3B,2CAA2C,EAC3C,8GAA8G,EAC9G,mBAAmB,CACpB;IACD,2BAA2B,EAA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AAC,WAAW,CAAA;AAC1D,CAAC"}
1
+ {"version":3,"file":"issues.js","sourceRoot":"","sources":["../../src/profiles/issues.ts"],"names":[],"mappings":"AA4EA,SAAS,WAAW,CAClB,OAAe,EACf,WAAmB,EACnB,SAAkC,QAAQ;IAE1C,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,CAAA;AACzC,CAAC;AAED,MAAM,qCAAqC,GAAG;IAC5C,8BAA8B,EAAE,WAAW,CACzC,kDAAkD,EAClD,kGAAkG,CACnG;IACD,iBAAiB,EAAE,WAAW,CAC5B,2DAA2D,EAC3D,8IAA8I,EAC9I,mBAAmB,CACpB;IACD,gBAAgB,EAAE,WAAW,CAC3B,2CAA2C,EAC3C,8GAA8G,EAC9G,mBAAmB,CACpB;IACD,2BAA2B,EAAE,WAAW,CACtC,0CAA0C,EAC1C,6EAA6E,EAC7E,iBAAiB,CAClB;IACD,wBAAwB,EAAE,WAAW,CACnC,4DAA4D,EAC5D,iGAAiG,EACjG,iBAAiB,CAClB;IACD,mBAAmB,EAAE,WAAW,CAC9B,wCAAwC,EACxC,uEAAuE,EACvE,iBAAiB,CAClB;IACD,yBAAyB,EAAE,WAAW,CACpC,mEAAmE,EACnE,6EAA6E,EAC7E,mBAAmB,CACpB;IACD,0BAA0B,EAAE,WAAW,CACrC,yCAAyC,EACzC,8DAA8D,EAC9D,iBAAiB,CAClB;IACD,0BAA0B,EAAE,WAAW,CACrC,sFAAsF,EACtF,8GAA8G,CAC/G;IACD,4BAA4B,EAAE,WAAW,CACvC,iEAAiE,EACjE,0FAA0F,EAC1F,iBAAiB,CAClB;IACD,uBAAuB,EAAE,WAAW,CAClC,wCAAwC,EACxC,6DAA6D,EAC7D,iBAAiB,CAClB;IACD,yBAAyB,EAAE,WAAW,CACpC,wDAAwD,EACxD,mGAAmG,CACpG;IACD,kCAAkC,EAAE,WAAW,CAC7C,kDAAkD,EAClD,uFAAuF,EACvF,iBAAiB,CAClB;IACD,mCAAmC,EAAE,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5C,CAAA;AAEF,eAAO,MAAM,iBAAiB,2RAkBgB,CAAA;AAE9C,eAAO,MAAM,sBAAsB,EAE9B,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,cAAc,GAAG,SAAS,CAAC,CAAC,CAAA;AAEzD,wBAAgB,iBAAiB,CAAC,EAAE,EAAE,MAAM,GAAG,cAAc,GAAG,SAAS,CAExE"}
@@ -648,8 +648,9 @@ export const ANONYMOUS_GROUP_DECISIONS_PROFILE = profile({
648
648
  name: 'rank',
649
649
  meaning: 'Approval tally for the motion: each ballot contributes 1 (aye) or 0, sum-aggregated into the count of aye ballots. Bounded to 0-100 by rank validation, so suited to small electorates; petitions count distinct signatories instead.',
650
650
  direction: 'count',
651
- // A key image stops a second ballot, not a ballot worth more than one
652
- contribution: { min: 0, max: 1, integer: true },
651
+ // A key image stops a second ballot, not a ballot worth more than one.
652
+ // Required, so the signer count is the number of ballots cast.
653
+ contribution: { min: 0, max: 1, integer: true, required: true },
653
654
  },
654
655
  ],
655
656
  failurePolicy: [
@@ -1 +1 @@
1
- {"version":3,"file":"profiles.js","sourceRoot":"","sources":["../../src/profiles/profiles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAG/C,MAAM,UAAU,GAAkB;IAChC,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,qDAAqD;IAC9D,SAAS,EAAE,kBAAkB;CAC9B,CAAA;AAED,MAAM,cAAc,GAAkB;IACpC,IAAI,EAAE,cAAc;IACpB,OAAO,EAAE,8CAA8C;IACvD,SAAS,EAAE,OAAO;CACnB,CAAA;AAED,MAAM,aAAa,GAAkB;IACnC,IAAI,EAAE,aAAa;IACnB,OAAO,EAAE,yCAAyC;IAClD,SAAS,EAAE,OAAO;CACnB,CAAA;AAED,MAAM,YAAY,GAAkB;IAClC,IAAI,EAAE,kBAAkB;IACxB,OAAO,EAAE,mEAAmE;IAC5E,SAAS,EAAE,OAAO;CACnB,CAAA;AAED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D,gBAAgB,EAAE;YAChB,uFAAuF;YACvF,iHAAiH;SAClH;QACD,kBAAkB,EAAE;YAClB,iKAAiK;SAClK;QACD,gBAAgB,EAAE;YAChB;gBACE,IAAI,EAAE,kFAAkF;gBACxF,OAAO,EAAE,2JAA2J;aACrK;YACD;gBACE,IAAI,EAAE,4DAA4D;gBAClE,OAAO,EAAE,uHAAuH;aACjI;YACD;gBACE,IAAI,EAAE,yGAAyG;gBAC/G,OAAO,EAAE,qMAAqM;aAC/M;YACD;gBACE,IAAI,EAAE,gFAAgF;gBACtF,OAAO,EAAE,gHAAgH;aAC1H;SACF;KACF,CAAC;CACH,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,uCAAuC;IACvC,qCAAqC;IACrC,sBAAsB;IACtB,4BAA4B;IAC5B,gCAAgC;IAChC,+BAA+B;IAC/B,gCAAgC;IAChC,2CAA2C;IAC3C,+CAA+C;IAC/C,6CAA6C;IAC7C,kCAAkC;IAClC,kCAAkC;IAClC,4BAA4B;IAC5B,qCAAqC;IACrC,kDAAkD;IAClD,iCAAiC;IACjC,iCAAiC;CACW,CAAA;AAE9C,MAAM,CAAC,MAAM,sBAAsB,GAAG,MAAM,CAAC,MAAM,CACjD,MAAM,CAAC,WAAW,CAAC,iBAAiB,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC,CAAC,CACpB,CAAA;AAEzD,MAAM,UAAU,iBAAiB,CAAC,EAAU;IAC1C,OAAO,sBAAsB,CAAC,EAAE,CAAC,CAAA;AACnC,CAAC"}
@@ -32,6 +32,10 @@ export declare function contributionBoundsProblem(bounds: unknown, label?: strin
32
32
  * @example
33
33
  * contributionBoundViolations({ rank: 3 }, { rank: { min: 0, max: 1, integer: true } })
34
34
  * // ['metric "rank" value 3 is above the contribution maximum 1']
35
+ *
36
+ * @example
37
+ * contributionBoundViolations({}, { rank: { required: true } })
38
+ * // ['metric "rank" is missing, as the contribution bounds require']
35
39
  */
36
40
  export declare function contributionBoundViolations(metrics: Readonly<Record<string, number>>, bounds: ContributionBounds): string[];
37
41
  //# sourceMappingURL=bounds.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"bounds.d.ts","sourceRoot":"","sources":["../../src/proof/bounds.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAMpD;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAkB1F;AAED;;;;;;;;;GASG;AACH,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,SAAuB,GAAG,MAAM,GAAG,SAAS,CAU3G;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,2BAA2B,CACzC,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,EACzC,MAAM,EAAE,kBAAkB,GACzB,MAAM,EAAE,CAmBV"}
1
+ {"version":3,"file":"bounds.d.ts","sourceRoot":"","sources":["../../src/proof/bounds.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAMpD;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAqB1F;AAED;;;;;;;;;GASG;AACH,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,SAAuB,GAAG,MAAM,GAAG,SAAS,CAU3G;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,2BAA2B,CACzC,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,EACzC,MAAM,EAAE,kBAAkB,GACzB,MAAM,EAAE,CA0BV"}
@@ -10,8 +10,8 @@ function isPlainObject(value) {
10
10
  */
11
11
  export function contributionBoundProblem(bound, label) {
12
12
  if (!isPlainObject(bound))
13
- return `${label} must be an object with min, max or integer`;
14
- const { min, max, integer } = bound;
13
+ return `${label} must be an object with min, max, integer or required`;
14
+ const { min, max, integer, required } = bound;
15
15
  if (min !== undefined && (typeof min !== 'number' || !Number.isFinite(min))) {
16
16
  return `${label}.min must be a finite number`;
17
17
  }
@@ -24,6 +24,9 @@ export function contributionBoundProblem(bound, label) {
24
24
  if (integer !== undefined && typeof integer !== 'boolean') {
25
25
  return `${label}.integer must be a boolean`;
26
26
  }
27
+ if (required !== undefined && typeof required !== 'boolean') {
28
+ return `${label}.required must be a boolean`;
29
+ }
27
30
  return undefined;
28
31
  }
29
32
  /**
@@ -62,6 +65,10 @@ export function contributionBoundsProblem(bounds, label = 'contributionBounds')
62
65
  * @example
63
66
  * contributionBoundViolations({ rank: 3 }, { rank: { min: 0, max: 1, integer: true } })
64
67
  * // ['metric "rank" value 3 is above the contribution maximum 1']
68
+ *
69
+ * @example
70
+ * contributionBoundViolations({}, { rank: { required: true } })
71
+ * // ['metric "rank" is missing, as the contribution bounds require']
65
72
  */
66
73
  export function contributionBoundViolations(metrics, bounds) {
67
74
  const violations = [];
@@ -79,6 +86,12 @@ export function contributionBoundViolations(metrics, bounds) {
79
86
  violations.push(`metric "${name}" value ${value} is not an integer, as the contribution bounds require`);
80
87
  }
81
88
  }
89
+ // A signer who leaves the metric out still counts towards the threshold
90
+ for (const [name, bound] of Object.entries(bounds)) {
91
+ if (bound.required === true && !Object.hasOwn(metrics, name)) {
92
+ violations.push(`metric "${name}" is missing, as the contribution bounds require`);
93
+ }
94
+ }
82
95
  return violations;
83
96
  }
84
97
  //# sourceMappingURL=bounds.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"bounds.js","sourceRoot":"","sources":["../../src/proof/bounds.ts"],"names":[],"mappings":"AAEA,SAAS,aAAa,CAAC,KAAc;IACnC,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,EAAE,CAAC,CAAA;QACnG,CAAC;QACD,IAAI,KAAK,CAAC,GAAG,KAAK,SAAS,IAAI,KAAK,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC;YACjD,UAAU,CAAC,IAAI,CAAC,WAAW,IAAI,WAAW,KAAK,sCAAsC,KAAK,CAAC,GAAG,EAAE,CAAC,CAAA;QACnG,CAAC;QACD,IAAI,KAAK,CAAC,OAAO,KAAK,IAAI,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC;YACvD,UAAU,CAAC,IAAI,CAAC,WAAW,IAAI,WAAW,KAAK,wDAAwD,CAAC,CAAA;QAC1G,CAAC;IACH,CAAC;IAED,wEAAwE;IACxE,KAAK,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;QACnD,IAAI,KAAK,CAAC,QAAQ,KAAK,IAAI,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE,IAAI,CAAC,EAAE,CAAC;YAC7D,UAAU,CAAC,IAAI,CAAC,WAAW,IAAI,kDAAkD,CAAC,CAAA;QACpF,CAAC;IACH,CAAC;IAED,OAAO,UAAU,CAAA;AACnB,CAAC"}
@@ -68,6 +68,12 @@ export interface ContributionBound {
68
68
  max?: number;
69
69
  /** Require an integer value. */
70
70
  integer?: boolean;
71
+ /**
72
+ * Require every contribution to carry this metric. Without it, a member who
73
+ * leaves the metric out still counts as a signer, so a value can be backed by
74
+ * fewer contributions than `distinctSigners` reports.
75
+ */
76
+ required?: boolean;
71
77
  }
72
78
  /**
73
79
  * Bounds on individual contributions, keyed by metric name.
@@ -75,7 +81,8 @@ export interface ContributionBound {
75
81
  * A key image stops a member contributing twice. It does not stop a member
76
82
  * contributing one large value, and under `sum`, `mean`, `min` or `max` one
77
83
  * contribution can move the published value. A tally whose ballots must be 0
78
- * or 1 needs `{ rank: { min: 0, max: 1, integer: true } }`. A metric with no
84
+ * or 1 needs `{ rank: { min: 0, max: 1, integer: true, required: true } }`,
85
+ * where `required` also rejects a signer who cast no ballot. A metric with no
79
86
  * entry is not bounded.
80
87
  */
81
88
  export type ContributionBounds = Readonly<Record<string, ContributionBound>>;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/proof/types.ts"],"names":[],"mappings":"AAAA,iDAAiD;AACjD,MAAM,WAAW,WAAW;IAC1B,yDAAyD;IACzD,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,qDAAqD;IACrD,QAAQ,EAAE,MAAM,CAAA;IAChB,wBAAwB;IACxB,IAAI,EAAE,MAAM,CAAA;IACZ;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,2DAA2D;AAC3D,MAAM,WAAW,YAAY;IAC3B,sDAAsD;IACtD,SAAS,EAAE;QACT,QAAQ,EAAE,MAAM,CAAA;QAChB,EAAE,EAAE,MAAM,CAAA;QACV,SAAS,EAAE,MAAM,EAAE,CAAA;QACnB,IAAI,EAAE,MAAM,EAAE,CAAA;QACd,OAAO,EAAE,MAAM,CAAA;QACf,UAAU,EAAE,MAAM,CAAA;QAClB,MAAM,CAAC,EAAE,MAAM,CAAA;KAChB,CAAA;IACD,gCAAgC;IAChC,QAAQ,EAAE,MAAM,CAAA;IAChB,0CAA0C;IAC1C,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAChC;AAED,gCAAgC;AAChC,MAAM,MAAM,WAAW,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,MAAM,CAAA;AAEtD,gIAAgI;AAChI,MAAM,MAAM,YAAY,GAAG,IAAI,GAAG,IAAI,CAAA;AAEtC,2DAA2D;AAC3D,MAAM,MAAM,UAAU,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAA;AAE9C,yEAAyE;AACzE,MAAM,WAAW,YAAY;IAC3B,qEAAqE;IACrE,YAAY,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G;IACnG,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,iEAAiE;IACjE,WAAW,EAAE,MAAM,CAAA;IACnB,oFAAoF;IACpF,eAAe,EAAE,MAAM,CAAA;IACvB,kFAAkF;IAClF,eAAe,EAAE,MAAM,CAAA;IACvB,gIAAgI;IAChI,aAAa,EAAE,OAAO,CAAA;IACtB,oHAAoH;IACpH,kBAAkB,EAAE,MAAM,CAAA;IAC1B,0FAA0F;IAC1F,MAAM,EAAE,MAAM,EAAE,CAAA;CACjB"}
@@ -48,7 +48,7 @@ export type VerifyOptions = AggregateFn | {
48
48
  * Reject the event if any contribution carries a value outside these bounds.
49
49
  * A key image stops a member contributing twice, not contributing one large
50
50
  * value, so a tally read from `sum` needs each ballot bounded, for example
51
- * `{ rank: { min: 0, max: 1, integer: true } }`.
51
+ * `{ rank: { min: 0, max: 1, integer: true, required: true } }`.
52
52
  */
53
53
  contributionBounds?: ContributionBounds;
54
54
  /**
package/llms-full.txt CHANGED
@@ -594,7 +594,7 @@ Validates all ring signatures and checks for duplicate contributors before aggre
594
594
  - **`circle`** `TrustCircle` — The trust circle the contributions belong to
595
595
  - **`subject`** `string` — The d-tag value (must match what contributors signed)
596
596
  - **`contributions`** `Contribution[]` — Array of contributions from circle members
597
- - **`options`** `AggregateFn | { aggregateFn?: AggregateFn; aggregate?: AggregateName; kind?: number; proofVersion?: ProofVersion; expiration?: number; alt?: string; contributionBounds?: ContributionBounds }` -- `contributionBounds` (`Record<string, { min?: number; max?: number; integer?: boolean }>`) makes aggregation throw on a contribution whose value for a named metric is outside the bounds (`Contribution index 2 metric "rank" value 3 is above the contribution maximum 1`); use the bounds your verifiers apply, and `contributionBoundViolations(metrics, bounds)` to find and leave out a bad contribution first. Pass a function for custom aggregation (default: median), or an options object with a built-in aggregate name (`'median' | 'mean' | 'sum' | 'min' | 'max'`; `aggregate` wins over `aggregateFn`). A built-in name is recorded in the `veil-agg` tag and `verifyProof` reads it from there; a custom function is recorded as `veil-agg: custom` and must also be passed to `verifyProof`. `median` and `mean` round to integers; `sum`, `min` and `max` do not. The legacy `kind` option is kept for compatibility and still emits a user-style `p` subject tag. `proofVersion: 'v2'` requires matching v2 contributions. `expiration` (a non-negative safe integer, unix seconds) and `alt` (a non-empty string) emit NIP-40 `expiration` and NIP-31 `alt` tags. The circle does not sign them; the publisher's Nostr signature covers them, as it covers `content`.
597
+ - **`options`** `AggregateFn | { aggregateFn?: AggregateFn; aggregate?: AggregateName; kind?: number; proofVersion?: ProofVersion; expiration?: number; alt?: string; contributionBounds?: ContributionBounds }` -- `contributionBounds` (`Record<string, { min?: number; max?: number; integer?: boolean; required?: boolean }>`) makes aggregation throw on a contribution whose value for a named metric is outside the bounds (`Contribution index 2 metric "rank" value 3 is above the contribution maximum 1`); use the bounds your verifiers apply, and `contributionBoundViolations(metrics, bounds)` to find and leave out a bad contribution first. Pass a function for custom aggregation (default: median), or an options object with a built-in aggregate name (`'median' | 'mean' | 'sum' | 'min' | 'max'`; `aggregate` wins over `aggregateFn`). A built-in name is recorded in the `veil-agg` tag and `verifyProof` reads it from there; a custom function is recorded as `veil-agg: custom` and must also be passed to `verifyProof`. `median` and `mean` round to integers; `sum`, `min` and `max` do not. The legacy `kind` option is kept for compatibility and still emits a user-style `p` subject tag. `proofVersion: 'v2'` requires matching v2 contributions. `expiration` (a non-negative safe integer, unix seconds) and `alt` (a non-empty string) emit NIP-40 `expiration` and NIP-31 `alt` tags. The circle does not sign them; the publisher's Nostr signature covers them, as it covers `content`.
598
598
  - **Returns** `EventTemplate` with `veil-ring`, `veil-threshold`, and `veil-sig` tags
599
599
  - **Throws** if any ring signature is invalid, duplicate contributors are detected, or a contribution uses a reserved metric name (the error names the contribution index)
600
600
 
@@ -701,7 +701,8 @@ Verify NIP-85 syntax, proof version, expected kind and subject tag, freshness,
701
701
  threshold, accepted circles, expected subject, the aggregate function,
702
702
  per-contribution bounds, and federation policy. Every built-in profile pins
703
703
  `aggregate`: `median`, and `sum` for `anonymous-group-decisions`, whose `rank`
704
- metric also carries `contribution: { min: 0, max: 1, integer: true }`. An event
704
+ metric also carries `contribution: { min: 0, max: 1, integer: true, required: true }`
705
+ (`required` rejects a signer who left the ballot out). An event
705
706
  published under another function fails with issue code
706
707
  `proof.aggregate_mismatch`; a contribution outside the bounds fails with
707
708
  `proof.contribution_out_of_bounds`. Options `aggregate` and
@@ -720,7 +721,7 @@ expected subject, optional subject-tag value, freshness, signer threshold,
720
721
  metric bounds, unknown-metric handling, optional companion evidence
721
722
  requirements, and optional Nostr event signature requirements. `metricPolicies`
722
723
  bound the published aggregate. `aggregate` replaces the aggregate function the
723
- profile pins, and `contributionBounds` (`{ [metric]: { min?, max?, integer? } }`)
724
+ profile pins, and `contributionBounds` (`{ [metric]: { min?, max?, integer?, required? } }`)
724
725
  bounds what one member may sign; both are left off the policy when not set, and
725
726
  a malformed value throws. A signed bundle embeds the profile it was issued
726
727
  with, so a bundle issued by a release that did not pin aggregates does not
package/llms.txt CHANGED
@@ -88,7 +88,7 @@ untrusted relays. Pass `expectedKind` because v1 proofs are not kind-bound.
88
88
  - **Federation scope**: Circles sharing a `scope` (set via `createTrustCircle(members, { scope })`) produce matching key images for members they have in common, so `verifyFederation()` can verify several scoped events about one subject and count distinct contributors across circles without double-counting anyone in more than one. The events must share kind, subject, scope and electionId (same proof version and, for v2, the same bound subject tag and value); it takes the same options as `verifyProof`.
89
89
  - **Election ID**: v1 format `veil:v1:<scope-or-circleId>:<subject>`. v2 adds assertion kind and subject hint tag/value to prevent cross-kind replay; the typed contribute helpers sign v2 by default, `contributeAssertion` v1, and aggregators follow the contributions' version.
90
90
  - **Signing**: `signEvent(template, privateKey)` is exported from the root package (not from a subpath). `privateKey` is a 64-char hex string. It computes the event ID, signs with Schnorr, and returns a complete `SignedEvent`. `verifySignedEvent(event)` and `computeEventId(event)` are root-only too.
91
- - **Aggregation options**: `{ aggregate: 'median' | 'mean' | 'sum' | 'min' | 'max' }` (default median) is recorded in the `veil-agg` tag and `verifyProof` reads it from there, so a summed tally verifies with a bare `verifyProof(event)`. A custom `{ aggregateFn }` (or bare function) is recorded as `veil-agg: custom` and must also be passed to `verifyProof` (`{ aggregateFn }`), otherwise it fails with `veil-agg is "custom": pass the aggregate function via options to verify the metric tags`. `median` and `mean` round to integers; `sum`, `min` and `max` do not. `{ contributionBounds: { rank: { min: 0, max: 1, integer: true } } }` makes aggregation throw on a contribution outside the bounds, and `contributionBoundViolations(metrics, bounds)` finds such a contribution first.
91
+ - **Aggregation options**: `{ aggregate: 'median' | 'mean' | 'sum' | 'min' | 'max' }` (default median) is recorded in the `veil-agg` tag and `verifyProof` reads it from there, so a summed tally verifies with a bare `verifyProof(event)`. A custom `{ aggregateFn }` (or bare function) is recorded as `veil-agg: custom` and must also be passed to `verifyProof` (`{ aggregateFn }`), otherwise it fails with `veil-agg is "custom": pass the aggregate function via options to verify the metric tags`. `median` and `mean` round to integers; `sum`, `min` and `max` do not. `{ contributionBounds: { rank: { min: 0, max: 1, integer: true, required: true } } }` makes aggregation throw on a contribution outside the bounds (`required` also refuses a contribution that leaves the metric out, which would otherwise still count as a signer), and `contributionBoundViolations(metrics, bounds)` finds such a contribution first.
92
92
 
93
93
  ## API Surface
94
94
 
@@ -135,11 +135,11 @@ every contributor scores the same verifier-compatible identifier.
135
135
  ## Options and Types
136
136
 
137
137
  - Metrics: `Record<string, number>`, finite (NaN and Infinity throw), integers not required, published as `String(value)`. Metric names must not be a single character, start with `veil-`, be a Nostr tag with its own meaning (`expiration`, `alt`, `client`, `nonce`, `content-warning`), or be `__proto__`: contributing throws `Metric name "<name>" is reserved: ...`, aggregation rejects such a contribution, and `verifyProof` rejects an event whose signed metrics use one. This stops a single circle member from injecting a tag such as `expiration` into the published event. The publisher can still set a NIP-40 expiration or a NIP-31 alt on the event it signs: pass `{ expiration, alt }` to the aggregator. The circle does not sign these two tags; the publisher's own Nostr signature covers them, as it covers `content`. `verifyProof` accepts at most 128 metrics of up to 64 characters by default. The `nostr-veil/nip85` builders use typed optional metrics: `UserMetrics` (30382: `followers`, `rank`, `first_created_at`, `post_cnt`, `reply_cnt`, `reactions_cnt`, `zap_amt_recd`, `zap_amt_sent`, `zap_cnt_recd`, `zap_cnt_sent`, `zap_avg_amt_day_recd`, `zap_avg_amt_day_sent`, `reports_cnt_recd`, `reports_cnt_sent`, `t`, `active_hours_start`, `active_hours_end`), `EventMetrics` (30383/30384: `rank`, `comment_cnt`, `quote_cnt`, `repost_cnt`, `reaction_cnt`, `zap_cnt`, `zap_amount`), `IdentifierMetrics` (30385: `rank`, `comment_cnt`, `reaction_cnt`).
138
- - Aggregation options for `aggregateContributions` and the typed `aggregate*Contributions` helpers: a bare `(values: number[]) => number`, or `{ aggregate?: 'median' | 'mean' | 'sum' | 'min' | 'max', aggregateFn?, proofVersion?: 'v1' | 'v2', kind?, expiration?: number, alt?: string, contributionBounds?: Record<string, { min?, max?, integer? }> }` (`contributionBounds` throws on a contribution outside the bounds; `kind` is legacy and only on `aggregateContributions`; `expiration` (unix seconds) and `alt` emit publisher tags that the circle does not sign and `verifyProof` does not read as metrics: at most one of each, `alt` non-empty; `verifyProof` does not check expiry against the clock, but the profile verifiers reject an assertion whose `expiration` is at or before `now`; trust these tags only after checking the outer Nostr signature; `aggregate` wins over `aggregateFn`; an unknown name throws `Unknown aggregate function: <name>`).
139
- - `verifyProof(event, options?)`: a bare aggregate function, or `{ aggregateFn?, expectedKind?: number, requireProofVersion?: 'v1' | 'v2', requireAggregate?: 'median' | 'mean' | 'sum' | 'min' | 'max' | 'custom', contributionBounds?: Record<string, { min?, max?, integer? }>, rejectSubjectInRing?: boolean, limits?: Partial<VerifyLimits> }`. `requireAggregate` rejects an event whose `veil-agg` tag names another function (`veil-agg is "max" but "median" is required`; no tag reads as `median`); `contributionBounds` rejects an event holding a contribution outside the bounds, and malformed bounds fail the proof. `DEFAULT_VERIFY_LIMITS` is `maxRingSize` 1000, `maxSigPayloadBytes` 128000, `maxSignedMessageBytes` 16384, `maxMetricCount` 128, `maxMetricNameLength` 64. Returns `{ valid, circleSize, threshold, distinctSigners, subjectInRing, independentSigners, errors }`; when the subject is a ring member one signature may be theirs, so compare `independentSigners` with your threshold or pass `rejectSubjectInRing: true`. A metric, `d` or `k` tag with anything after its value is invalid (the circle signs only name and value), and a `k` tag is accepted only on kind 30385. A second `veil-ring`, `veil-threshold`, `veil-agg`, `veil-version` or `veil-scope` tag, or extra elements on any of them or on `veil-sig`, is invalid; unknown `veil-*` tags are ignored.
138
+ - Aggregation options for `aggregateContributions` and the typed `aggregate*Contributions` helpers: a bare `(values: number[]) => number`, or `{ aggregate?: 'median' | 'mean' | 'sum' | 'min' | 'max', aggregateFn?, proofVersion?: 'v1' | 'v2', kind?, expiration?: number, alt?: string, contributionBounds?: Record<string, { min?, max?, integer?, required? }> }` (`contributionBounds` throws on a contribution outside the bounds; `kind` is legacy and only on `aggregateContributions`; `expiration` (unix seconds) and `alt` emit publisher tags that the circle does not sign and `verifyProof` does not read as metrics: at most one of each, `alt` non-empty; `verifyProof` does not check expiry against the clock, but the profile verifiers reject an assertion whose `expiration` is at or before `now`; trust these tags only after checking the outer Nostr signature; `aggregate` wins over `aggregateFn`; an unknown name throws `Unknown aggregate function: <name>`).
139
+ - `verifyProof(event, options?)`: a bare aggregate function, or `{ aggregateFn?, expectedKind?: number, requireProofVersion?: 'v1' | 'v2', requireAggregate?: 'median' | 'mean' | 'sum' | 'min' | 'max' | 'custom', contributionBounds?: Record<string, { min?, max?, integer?, required? }>, rejectSubjectInRing?: boolean, limits?: Partial<VerifyLimits> }`. `requireAggregate` rejects an event whose `veil-agg` tag names another function (`veil-agg is "max" but "median" is required`; no tag reads as `median`); `contributionBounds` rejects an event holding a contribution outside the bounds, and malformed bounds fail the proof. `DEFAULT_VERIFY_LIMITS` is `maxRingSize` 1000, `maxSigPayloadBytes` 128000, `maxSignedMessageBytes` 16384, `maxMetricCount` 128, `maxMetricNameLength` 64. Returns `{ valid, circleSize, threshold, distinctSigners, subjectInRing, independentSigners, errors }`; when the subject is a ring member one signature may be theirs, so compare `independentSigners` with your threshold or pass `rejectSubjectInRing: true`. A metric, `d` or `k` tag with anything after its value is invalid (the circle signs only name and value), and a `k` tag is accepted only on kind 30385. A second `veil-ring`, `veil-threshold`, `veil-agg`, `veil-version` or `veil-scope` tag, or extra elements on any of them or on `veil-sig`, is invalid; unknown `veil-*` tags are ignored.
140
140
  - `contributeAssertion(..., options?)`: `{ proofVersion?, kind?, subjectTag?: 'p' | 'e' | 'a' | 'k', subjectTagValue? }`; the typed helpers take only `{ proofVersion? }` and sign v2 unless given `'v1'`; `contributeAssertion` defaults to v1. `canonicalMessageV2(circleId, subject, metrics, context)` needs `context` as `{ kind, subjectTag, subjectTagValue }`, all required (non-negative safe integer kind, `p`/`e`/`a`/`k` tag, non-empty value).
141
141
  - `parseAssertion(event)` returns `{ kind: number, subject: string, metrics: Record<string, string | number> }` (subject is the `d` tag value, metric values are raw tag strings; `expiration` and `alt` are left out with the other non-metric tags, so, on an event that passes `verifyProof`, `metrics` holds only circle-signed values). `parseProviderDeclaration(event)` returns `ParsedProvider[]` of `{ kind, metric, servicePubkey, relayHint }`, or a Promise of it when given `decryptFn: (ciphertext: string) => Promise<string>`.
142
- - Profiles options (timestamps are Unix seconds; `now` defaults to the current time). `createCircleManifest`: required `issuedAt`, `members`, `name`, `profileIds`, `purpose`; optional `expiresAt`, `status`, `supersedes`, `revokedCircleIds`, `contact`, `evidenceProcess`, `policyUri`. `createDeploymentPolicy(profile, options)`: required `expectedSubject` plus at least one active circle via `acceptedCircleIds` or `circleManifests`; optional `expectedSubjectTagValue`, `id`, `maxAgeSeconds`, `minDistinctSigners`, `metricPolicies` (`{ [metric]: { required?, min?, max?, integer? } }`, bounds on the published aggregate), `aggregate` (default: the profile's; every built-in profile pins `median`, or `sum` for `anonymous-group-decisions`), `contributionBounds` (`{ [metric]: { min?, max?, integer? } }`, bounds on each contribution), `rejectUnknownMetrics` (default false), `requireNostrSignature` (default false), `companionEvidence`, `allowSupersededCircleIds`, `now`. `createSignedDeploymentBundle(policy, options)`: required `id`, `issuedAt`, `privateKey`; optional `expiresAt`. `verifySignedDeploymentBundle(bundle, { now?, trustedPublishers? })`. `verifyDeploymentBundle(events, bundle, options?)` takes `aggregateFn`, `companionEvidence`, `now`, `trustedPublishers`. `verifyProductionDeployment` adds `requireBundleExpiry` and `requireSignedEvents`, both true by default, and returns `{ decision: 'accept' | 'reject', valid, errors, issues, bundle, deployment }`. Without a valid `trustedPublishers` entry, bundle verification fails with `no trusted bundle publishers configured`.
142
+ - Profiles options (timestamps are Unix seconds; `now` defaults to the current time). `createCircleManifest`: required `issuedAt`, `members`, `name`, `profileIds`, `purpose`; optional `expiresAt`, `status`, `supersedes`, `revokedCircleIds`, `contact`, `evidenceProcess`, `policyUri`. `createDeploymentPolicy(profile, options)`: required `expectedSubject` plus at least one active circle via `acceptedCircleIds` or `circleManifests`; optional `expectedSubjectTagValue`, `id`, `maxAgeSeconds`, `minDistinctSigners`, `metricPolicies` (`{ [metric]: { required?, min?, max?, integer? } }`, bounds on the published aggregate), `aggregate` (default: the profile's; every built-in profile pins `median`, or `sum` for `anonymous-group-decisions`), `contributionBounds` (`{ [metric]: { min?, max?, integer?, required? } }`, bounds on each contribution), `rejectUnknownMetrics` (default false), `requireNostrSignature` (default false), `companionEvidence`, `allowSupersededCircleIds`, `now`. `createSignedDeploymentBundle(policy, options)`: required `id`, `issuedAt`, `privateKey`; optional `expiresAt`. `verifySignedDeploymentBundle(bundle, { now?, trustedPublishers? })`. `verifyDeploymentBundle(events, bundle, options?)` takes `aggregateFn`, `companionEvidence`, `now`, `trustedPublishers`. `verifyProductionDeployment` adds `requireBundleExpiry` and `requireSignedEvents`, both true by default, and returns `{ decision: 'accept' | 'reject', valid, errors, issues, bundle, deployment }`. Without a valid `trustedPublishers` entry, bundle verification fails with `no trusted bundle publishers configured`.
143
143
 
144
144
  ## Profiles Example
145
145
 
@@ -232,8 +232,9 @@ transport wrapper, not a NIP-85 assertion. For anonymous group decisions, voting
232
232
  and petitions, aggregate a `rank` ballot with `{ aggregate: 'sum' }` over
233
233
  `aggregateEventContributions` for a verifiable one-vote-per-member tally, and
234
234
  verify it through the profile or with `requireAggregate: 'sum'` and
235
- `contributionBounds: { rank: { min: 0, max: 1, integer: true } }`, because a
236
- key image stops a second ballot, not a ballot worth more than one; the
235
+ `contributionBounds: { rank: { min: 0, max: 1, integer: true, required: true } }`,
236
+ because a key image stops a second ballot, not a ballot worth more than one,
237
+ and `required` rejects a signer who cast no ballot; the
237
238
  summed `rank` is bounded to 0-100, so it suits small electorates (boards,
238
239
  committees, panels), while a petition counts distinct signatories with
239
240
  `distinctSigners`. An event grows with ring size times signers (a ring of 100
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nostr-veil",
3
- "version": "0.35.0",
3
+ "version": "0.36.0",
4
4
  "description": "Privacy layer for Nostr reputation systems. Groups collectively score trustworthiness using ring signatures -- scores are verifiable but contributors are unidentifiable.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",