nostr-veil 0.2.1 → 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 (2) hide show
  1. package/README.md +20 -0
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -98,6 +98,8 @@ const result = verifyProof(assertion)
98
98
  // { valid: true, circleSize: 3, threshold: 2, distinctSigners: 2, errors: [] }
99
99
  ```
100
100
 
101
+ **Important:** `memberIndex` must match the member's position in the *sorted* pubkey array. `createTrustCircle` sorts pubkeys lexicographically -- the index you pass to `contributeAssertion` must reflect that sorted order, not the order you passed to `createTrustCircle`. Use `circle.members.indexOf(myPubkey)` to find the correct index.
102
+
101
103
  The resulting `assertion` is a plain `EventTemplate` you sign and publish like any other Nostr event.
102
104
 
103
105
  ---
@@ -114,6 +116,7 @@ The resulting `assertion` is a plain `EventTemplate` you sign and publish like a
114
116
  | `buildIdentifierAssertion(identifier, kTag, metrics)` | Build a kind 30385 identifier assertion |
115
117
  | `buildProviderDeclaration(providers, encryptedContent?)` | Build a kind 10040 provider declaration |
116
118
  | `parseAssertion(event)` | Parse a raw event into a `ParsedAssertion` |
119
+ | `parseProviderDeclaration(event, decryptFn?)` | Parse a kind 10040 provider declaration into `ParsedProvider[]` (supports optional NIP-44 decryption) |
117
120
  | `validateAssertion(event)` | Validate a NIP-85 assertion -- returns `{ valid, errors }` |
118
121
  | `assertionFilter({ kind, subject?, provider? })` | Build a relay query filter for assertions |
119
122
  | `providerFilter(pubkey)` | Build a relay query filter for a provider declaration |
@@ -182,6 +185,23 @@ Each project is independently maintained and published. nostr-veil focuses solel
182
185
  - [llms.txt](./llms.txt) -- Machine-readable project summary for LLMs
183
186
  - [CLAUDE.md](./CLAUDE.md) -- AI agent instructions for contributing
184
187
 
188
+ ## Part of the ForgeSworn Toolkit
189
+
190
+ [ForgeSworn](https://forgesworn.dev) builds open-source cryptographic identity, payments, and coordination tools for Nostr.
191
+
192
+ | Library | What it does |
193
+ |---------|-------------|
194
+ | [nsec-tree](https://github.com/forgesworn/nsec-tree) | Deterministic sub-identity derivation |
195
+ | [ring-sig](https://github.com/forgesworn/ring-sig) | SAG/LSAG ring signatures on secp256k1 |
196
+ | [range-proof](https://github.com/forgesworn/range-proof) | Pedersen commitment range proofs |
197
+ | [canary-kit](https://github.com/forgesworn/canary-kit) | Coercion-resistant spoken verification |
198
+ | [spoken-token](https://github.com/forgesworn/spoken-token) | Human-speakable verification tokens |
199
+ | [toll-booth](https://github.com/forgesworn/toll-booth) | L402 payment middleware |
200
+ | [geohash-kit](https://github.com/forgesworn/geohash-kit) | Geohash toolkit with polygon coverage |
201
+ | [nostr-attestations](https://github.com/forgesworn/nostr-attestations) | NIP-VA verifiable attestations |
202
+ | [dominion](https://github.com/forgesworn/dominion) | Epoch-based encrypted access control |
203
+ | [nostr-veil](https://github.com/forgesworn/nostr-veil) | Privacy-preserving Web of Trust |
204
+
185
205
  ## Licence
186
206
 
187
207
  MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nostr-veil",
3
- "version": "0.2.1",
3
+ "version": "0.3.0",
4
4
  "description": "Anonymous trust assertions for Nostr. LSAG ring-signature-backed NIP-85 endorsements where contributors are verifiable but unidentifiable.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -57,7 +57,7 @@
57
57
  ],
58
58
  "author": "ForgeSworn",
59
59
  "license": "MIT",
60
- "homepage": "https://github.com/forgesworn/nostr-veil",
60
+ "homepage": "https://forgesworn.github.io/nostr-veil/",
61
61
  "repository": {
62
62
  "type": "git",
63
63
  "url": "https://github.com/forgesworn/nostr-veil"
@@ -73,7 +73,7 @@
73
73
  "node": ">=20"
74
74
  },
75
75
  "dependencies": {
76
- "@forgesworn/ring-sig": "^2.0.0",
76
+ "@forgesworn/ring-sig": "^3.0.0",
77
77
  "@noble/curves": "^2.0.1",
78
78
  "@noble/hashes": "^2.0.1"
79
79
  },