@nuggetslife/vc-multiplatform 1.3.0 → 1.3.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/index.d.ts +47 -0
- package/index.js +37 -1
- package/package.json +4 -3
package/index.d.ts
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export {
|
|
2
|
+
// Key pairs
|
|
3
|
+
Bls12381G2KeyPair,
|
|
4
|
+
KeyPairSigner,
|
|
5
|
+
KeyPairVerifier,
|
|
6
|
+
BoundBls12381G2KeyPair,
|
|
7
|
+
// BBS+ signature suites
|
|
8
|
+
BbsBlsSignature2020,
|
|
9
|
+
BbsBlsSignatureProof2020,
|
|
10
|
+
// Holder-bound signature suites
|
|
11
|
+
BbsBlsHolderBoundSignature2022,
|
|
12
|
+
BbsBlsHolderBoundSignatureProof2022,
|
|
13
|
+
// JSON-LD processor
|
|
14
|
+
JsonLd,
|
|
15
|
+
// Linked data signature functions
|
|
16
|
+
ldSign,
|
|
17
|
+
ldVerify,
|
|
18
|
+
ldDeriveProof,
|
|
19
|
+
deriveProof,
|
|
20
|
+
// Blind signing functions
|
|
21
|
+
createCommitment,
|
|
22
|
+
verifyCommitment,
|
|
23
|
+
unblindSignature,
|
|
24
|
+
deriveProofHolderBound,
|
|
25
|
+
// Types
|
|
26
|
+
type BoundSignatureSuiteOptions,
|
|
27
|
+
type BoundCreateProofOptions,
|
|
28
|
+
type BoundVerifyProofOptions,
|
|
29
|
+
type BoundDeriveProofOptions,
|
|
30
|
+
type BoundVerifyDerivedProofOptions,
|
|
31
|
+
type SignatureSuiteOptions,
|
|
32
|
+
type CreateProofOptions,
|
|
33
|
+
type VerifyProofOptions,
|
|
34
|
+
type SuiteSignOptions,
|
|
35
|
+
type VerifySignatureOptions,
|
|
36
|
+
type DeriveProofOptions,
|
|
37
|
+
type VerifyDerivedProofOptions,
|
|
38
|
+
type KeyPairOptions,
|
|
39
|
+
type JwkKeyPairOptions,
|
|
40
|
+
type FingerPrintFromPublicKeyOptions,
|
|
41
|
+
type KeyPairFromFingerPrintOptions,
|
|
42
|
+
type JsonWebKey,
|
|
43
|
+
type GenerateKeyPairOptions,
|
|
44
|
+
type KeyPairSignerOptions,
|
|
45
|
+
type KeyPairVerifierOptions,
|
|
46
|
+
type BoundKeyPairOptions,
|
|
47
|
+
} from '@nuggetslife/vc'
|
package/index.js
CHANGED
|
@@ -52,8 +52,44 @@ try {
|
|
|
52
52
|
//
|
|
53
53
|
// try {
|
|
54
54
|
// const nativeBinding = require('@nuggetslife/vc-rn')
|
|
55
|
-
// const {
|
|
55
|
+
// const {
|
|
56
|
+
// // Key pairs
|
|
57
|
+
// Bls12381G2KeyPair,
|
|
58
|
+
// BoundBls12381G2KeyPair,
|
|
59
|
+
// // BBS+ signature suites
|
|
60
|
+
// BbsBlsSignature2020,
|
|
61
|
+
// BbsBlsSignatureProof2020,
|
|
62
|
+
// // Holder-bound signature suites
|
|
63
|
+
// BbsBlsHolderBoundSignature2022,
|
|
64
|
+
// BbsBlsHolderBoundSignatureProof2022,
|
|
65
|
+
// // JSON-LD processor
|
|
66
|
+
// JsonLd,
|
|
67
|
+
// // Linked data signature functions
|
|
68
|
+
// ldSign,
|
|
69
|
+
// ldVerify,
|
|
70
|
+
// ldDeriveProof,
|
|
71
|
+
// deriveProof,
|
|
72
|
+
// // Blind signing functions
|
|
73
|
+
// createCommitment,
|
|
74
|
+
// verifyCommitment,
|
|
75
|
+
// unblindSignature,
|
|
76
|
+
// deriveProofHolderBound,
|
|
77
|
+
// } = nativeBinding
|
|
56
78
|
// module.exports.Bls12381G2KeyPair = Bls12381G2KeyPair
|
|
79
|
+
// module.exports.BoundBls12381G2KeyPair = BoundBls12381G2KeyPair
|
|
80
|
+
// module.exports.BbsBlsSignature2020 = BbsBlsSignature2020
|
|
81
|
+
// module.exports.BbsBlsSignatureProof2020 = BbsBlsSignatureProof2020
|
|
82
|
+
// module.exports.BbsBlsHolderBoundSignature2022 = BbsBlsHolderBoundSignature2022
|
|
83
|
+
// module.exports.BbsBlsHolderBoundSignatureProof2022 = BbsBlsHolderBoundSignatureProof2022
|
|
84
|
+
// module.exports.JsonLd = JsonLd
|
|
85
|
+
// module.exports.ldSign = ldSign
|
|
86
|
+
// module.exports.ldVerify = ldVerify
|
|
87
|
+
// module.exports.ldDeriveProof = ldDeriveProof
|
|
88
|
+
// module.exports.deriveProof = deriveProof
|
|
89
|
+
// module.exports.createCommitment = createCommitment
|
|
90
|
+
// module.exports.verifyCommitment = verifyCommitment
|
|
91
|
+
// module.exports.unblindSignature = unblindSignature
|
|
92
|
+
// module.exports.deriveProofHolderBound = deriveProofHolderBound
|
|
57
93
|
// } catch (e) {
|
|
58
94
|
// throw new Error(`failed to load: ${e}`)
|
|
59
95
|
// }
|
package/package.json
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuggetslife/vc-multiplatform",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.2",
|
|
4
4
|
"description": "Multiplatform support for VC library",
|
|
5
5
|
"main": "index.js",
|
|
6
|
+
"types": "index.d.ts",
|
|
6
7
|
"scripts": {
|
|
7
8
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
9
|
},
|
|
9
10
|
"author": "",
|
|
10
11
|
"license": "ISC",
|
|
11
12
|
"optionalDependencies": {
|
|
12
|
-
"@nuggetslife/vc": "0.0.
|
|
13
|
-
"@nuggetslife/vc-rn": "0.1.
|
|
13
|
+
"@nuggetslife/vc": "0.0.21",
|
|
14
|
+
"@nuggetslife/vc-rn": "0.1.9"
|
|
14
15
|
}
|
|
15
16
|
}
|