@nuggetslife/vc-multiplatform 1.6.0 → 1.7.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/index.d.ts +25 -0
- package/index.js +64 -0
- package/package.json +3 -3
package/index.d.ts
CHANGED
|
@@ -39,6 +39,31 @@ export {
|
|
|
39
39
|
flattenedSignJson,
|
|
40
40
|
jsonVerify,
|
|
41
41
|
generalSignJson,
|
|
42
|
+
// SD-JWT functions
|
|
43
|
+
sdJwtIssue,
|
|
44
|
+
sdJwtPresent,
|
|
45
|
+
sdJwtVerify,
|
|
46
|
+
// BBS-2023 functions
|
|
47
|
+
bbs2023Sign,
|
|
48
|
+
bbs2023Derive,
|
|
49
|
+
bbs2023Verify,
|
|
50
|
+
bbs2023HolderCommit,
|
|
51
|
+
bbs2023BlindSign,
|
|
52
|
+
// BBS IETF functions
|
|
53
|
+
bbsIetfKeygen,
|
|
54
|
+
bbsIetfSign,
|
|
55
|
+
bbsIetfVerify,
|
|
56
|
+
bbsIetfProofGen,
|
|
57
|
+
bbsIetfProofVerify,
|
|
58
|
+
// SD-JWT types
|
|
59
|
+
type SdJwtDisclosure,
|
|
60
|
+
type SdJwtIssueOutput,
|
|
61
|
+
type SdJwtPresentOutput,
|
|
62
|
+
type SdJwtVerifyOutput,
|
|
63
|
+
// BBS-2023 types
|
|
64
|
+
type Bbs2023VerifyOutput,
|
|
65
|
+
// BBS IETF types
|
|
66
|
+
type BbsIetfKeyPair,
|
|
42
67
|
// Types
|
|
43
68
|
type BoundSignatureSuiteOptions,
|
|
44
69
|
type BoundCreateProofOptions,
|
package/index.js
CHANGED
|
@@ -45,6 +45,22 @@ try {
|
|
|
45
45
|
flattenedSignJson,
|
|
46
46
|
jsonVerify,
|
|
47
47
|
generalSignJson,
|
|
48
|
+
// SD-JWT functions
|
|
49
|
+
sdJwtIssue,
|
|
50
|
+
sdJwtPresent,
|
|
51
|
+
sdJwtVerify,
|
|
52
|
+
// BBS-2023 functions
|
|
53
|
+
bbs2023Sign,
|
|
54
|
+
bbs2023Derive,
|
|
55
|
+
bbs2023Verify,
|
|
56
|
+
bbs2023HolderCommit,
|
|
57
|
+
bbs2023BlindSign,
|
|
58
|
+
// BBS IETF functions
|
|
59
|
+
bbsIetfKeygen,
|
|
60
|
+
bbsIetfSign,
|
|
61
|
+
bbsIetfVerify,
|
|
62
|
+
bbsIetfProofGen,
|
|
63
|
+
bbsIetfProofVerify,
|
|
48
64
|
} = nativeBinding
|
|
49
65
|
module.exports.Bls12381G2KeyPair = Bls12381G2KeyPair
|
|
50
66
|
module.exports.KeyPairSigner = KeyPairSigner
|
|
@@ -78,6 +94,22 @@ try {
|
|
|
78
94
|
module.exports.flattenedSignJson = flattenedSignJson
|
|
79
95
|
module.exports.jsonVerify = jsonVerify
|
|
80
96
|
module.exports.generalSignJson = generalSignJson
|
|
97
|
+
// SD-JWT
|
|
98
|
+
module.exports.sdJwtIssue = sdJwtIssue
|
|
99
|
+
module.exports.sdJwtPresent = sdJwtPresent
|
|
100
|
+
module.exports.sdJwtVerify = sdJwtVerify
|
|
101
|
+
// BBS-2023
|
|
102
|
+
module.exports.bbs2023Sign = bbs2023Sign
|
|
103
|
+
module.exports.bbs2023Derive = bbs2023Derive
|
|
104
|
+
module.exports.bbs2023Verify = bbs2023Verify
|
|
105
|
+
module.exports.bbs2023HolderCommit = bbs2023HolderCommit
|
|
106
|
+
module.exports.bbs2023BlindSign = bbs2023BlindSign
|
|
107
|
+
// BBS IETF
|
|
108
|
+
module.exports.bbsIetfKeygen = bbsIetfKeygen
|
|
109
|
+
module.exports.bbsIetfSign = bbsIetfSign
|
|
110
|
+
module.exports.bbsIetfVerify = bbsIetfVerify
|
|
111
|
+
module.exports.bbsIetfProofGen = bbsIetfProofGen
|
|
112
|
+
module.exports.bbsIetfProofVerify = bbsIetfProofVerify
|
|
81
113
|
// Aliases matching ffi-jose enum names
|
|
82
114
|
module.exports.NamedCurve = JoseNamedCurve
|
|
83
115
|
module.exports.ContentEncryption = JoseContentEncryption
|
|
@@ -133,6 +165,22 @@ if (!loaded) {
|
|
|
133
165
|
flattenedSignJson,
|
|
134
166
|
jsonVerify,
|
|
135
167
|
generalSignJson,
|
|
168
|
+
// SD-JWT functions
|
|
169
|
+
sdJwtIssue,
|
|
170
|
+
sdJwtPresent,
|
|
171
|
+
sdJwtVerify,
|
|
172
|
+
// BBS-2023 functions
|
|
173
|
+
bbs2023Sign,
|
|
174
|
+
bbs2023Derive,
|
|
175
|
+
bbs2023Verify,
|
|
176
|
+
bbs2023HolderCommit,
|
|
177
|
+
bbs2023BlindSign,
|
|
178
|
+
// BBS IETF functions
|
|
179
|
+
bbsIetfKeygen,
|
|
180
|
+
bbsIetfSign,
|
|
181
|
+
bbsIetfVerify,
|
|
182
|
+
bbsIetfProofGen,
|
|
183
|
+
bbsIetfProofVerify,
|
|
136
184
|
} = nativeBinding
|
|
137
185
|
module.exports.Bls12381G2KeyPair = Bls12381G2KeyPair
|
|
138
186
|
module.exports.BoundBls12381G2KeyPair = BoundBls12381G2KeyPair
|
|
@@ -164,6 +212,22 @@ if (!loaded) {
|
|
|
164
212
|
module.exports.flattenedSignJson = flattenedSignJson
|
|
165
213
|
module.exports.jsonVerify = jsonVerify
|
|
166
214
|
module.exports.generalSignJson = generalSignJson
|
|
215
|
+
// SD-JWT
|
|
216
|
+
module.exports.sdJwtIssue = sdJwtIssue
|
|
217
|
+
module.exports.sdJwtPresent = sdJwtPresent
|
|
218
|
+
module.exports.sdJwtVerify = sdJwtVerify
|
|
219
|
+
// BBS-2023
|
|
220
|
+
module.exports.bbs2023Sign = bbs2023Sign
|
|
221
|
+
module.exports.bbs2023Derive = bbs2023Derive
|
|
222
|
+
module.exports.bbs2023Verify = bbs2023Verify
|
|
223
|
+
module.exports.bbs2023HolderCommit = bbs2023HolderCommit
|
|
224
|
+
module.exports.bbs2023BlindSign = bbs2023BlindSign
|
|
225
|
+
// BBS IETF
|
|
226
|
+
module.exports.bbsIetfKeygen = bbsIetfKeygen
|
|
227
|
+
module.exports.bbsIetfSign = bbsIetfSign
|
|
228
|
+
module.exports.bbsIetfVerify = bbsIetfVerify
|
|
229
|
+
module.exports.bbsIetfProofGen = bbsIetfProofGen
|
|
230
|
+
module.exports.bbsIetfProofVerify = bbsIetfProofVerify
|
|
167
231
|
// Aliases matching ffi-jose enum names
|
|
168
232
|
module.exports.NamedCurve = JoseNamedCurve
|
|
169
233
|
module.exports.ContentEncryption = JoseContentEncryption
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuggetslife/vc-multiplatform",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0",
|
|
4
4
|
"description": "Multiplatform Verifiable Credentials library — NAPI (Node.js) with React Native fallback",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"homepage": "https://github.com/NuggetsLtd/clientffi#readme",
|
|
17
17
|
"optionalDependencies": {
|
|
18
|
-
"@nuggetslife/vc": "0.0.
|
|
19
|
-
"@nuggetslife/vc-rn": "0.2.
|
|
18
|
+
"@nuggetslife/vc": "0.0.25",
|
|
19
|
+
"@nuggetslife/vc-rn": "0.2.2"
|
|
20
20
|
}
|
|
21
21
|
}
|