@solidus-network/bbs 0.6.1 → 0.6.2
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 +25 -0
- package/package.json +25 -7
package/README.md
CHANGED
|
@@ -78,6 +78,31 @@ const ok = await proof.verify({
|
|
|
78
78
|
})
|
|
79
79
|
```
|
|
80
80
|
|
|
81
|
+
## Credential-format v2 helpers (unlinkable presentations)
|
|
82
|
+
|
|
83
|
+
The helpers behind Solidus's unlinkable KYC presentations (used by
|
|
84
|
+
`@solidus-network/auth`'s verifier surface — see that package's README for the
|
|
85
|
+
full relying-party quickstart and the runnable unlinkability demo):
|
|
86
|
+
|
|
87
|
+
```ts
|
|
88
|
+
import { buildV2Header, derivePresentationHeader, BBS_CREDENTIAL_V2 } from '@solidus-network/bbs'
|
|
89
|
+
|
|
90
|
+
// The v2 signing header is CONSTANT per (issuer, credential-type, epoch) —
|
|
91
|
+
// no per-credential entropy, so it places a holder in a cohort, never
|
|
92
|
+
// identifies one:
|
|
93
|
+
const header = buildV2Header('did:solidus:testnet:issuer', 'kyc', 2)
|
|
94
|
+
// utf8("solidus-bbs-credential:v2:did:solidus:testnet:issuer:kyc:2")
|
|
95
|
+
|
|
96
|
+
// The presentation header binds a proof to ONE verifier challenge
|
|
97
|
+
// (length-prefixed domain ‖ nonce, hashed) — replay under any other
|
|
98
|
+
// challenge fails cryptographically:
|
|
99
|
+
const ph = derivePresentationHeader('rp.example.com', nonce32)
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
Also exported: `benchmarkDevice` / `decideProofPath` (the on-device
|
|
103
|
+
proof-generation benchmark that routes slow devices to an assist prover)
|
|
104
|
+
and `dispatchProof` (the routing itself).
|
|
105
|
+
|
|
81
106
|
## Sizes
|
|
82
107
|
|
|
83
108
|
| Element | Bytes |
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solidus-network/bbs",
|
|
3
|
-
"version": "0.6.
|
|
4
|
-
"description": "BBS+ selective-disclosure primitives for Solidus Network — IRTF draft-irtf-cfrg-bbs-signatures, BLS12-381 SHA-256. Byte-compatible with the Solidus chain (zkryptium-backed).",
|
|
3
|
+
"version": "0.6.2",
|
|
4
|
+
"description": "BBS+ selective-disclosure primitives for Solidus Network — IRTF draft-irtf-cfrg-bbs-signatures, BLS12-381 SHA-256 ciphersuite. Byte-compatible with the Solidus chain (zkryptium-backed).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -11,19 +11,37 @@
|
|
|
11
11
|
"types": "./dist/index.d.ts"
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
|
-
"files": [
|
|
14
|
+
"files": [
|
|
15
|
+
"dist",
|
|
16
|
+
"README.md",
|
|
17
|
+
"LICENSE"
|
|
18
|
+
],
|
|
15
19
|
"dependencies": {
|
|
16
|
-
"@digitalbazaar/bbs-signatures": "^3.0.0"
|
|
20
|
+
"@digitalbazaar/bbs-signatures": "^3.0.0",
|
|
21
|
+
"@noble/hashes": "^1.5.0"
|
|
17
22
|
},
|
|
18
|
-
"keywords": [
|
|
23
|
+
"keywords": [
|
|
24
|
+
"solidus",
|
|
25
|
+
"bbs",
|
|
26
|
+
"bbs+",
|
|
27
|
+
"selective-disclosure",
|
|
28
|
+
"verifiable-credentials",
|
|
29
|
+
"zero-knowledge",
|
|
30
|
+
"bls12-381",
|
|
31
|
+
"irtf"
|
|
32
|
+
],
|
|
19
33
|
"author": "Solidus Network (https://solidus.network)",
|
|
20
34
|
"license": "Apache-2.0",
|
|
21
35
|
"homepage": "https://solidus.network",
|
|
22
|
-
"bugs": {
|
|
36
|
+
"bugs": {
|
|
37
|
+
"url": "https://github.com/solidusnetwork/sdk/issues"
|
|
38
|
+
},
|
|
23
39
|
"repository": {
|
|
24
40
|
"type": "git",
|
|
25
41
|
"url": "git+https://github.com/solidusnetwork/sdk.git",
|
|
26
42
|
"directory": "bbs"
|
|
27
43
|
},
|
|
28
|
-
"publishConfig": {
|
|
44
|
+
"publishConfig": {
|
|
45
|
+
"access": "public"
|
|
46
|
+
}
|
|
29
47
|
}
|