@nuggetslife/vc-multiplatform 1.2.0 → 1.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/index.js +41 -3
  2. package/package.json +3 -3
package/index.js CHANGED
@@ -2,12 +2,50 @@
2
2
  //
3
3
  try {
4
4
  const nativeBinding = require('@nuggetslife/vc')
5
- const { Bls12381G2KeyPair, KeyPairSigner, KeyPairVerifier } = nativeBinding
5
+ const {
6
+ // Key pairs
7
+ Bls12381G2KeyPair,
8
+ KeyPairSigner,
9
+ KeyPairVerifier,
10
+ BoundBls12381G2KeyPair,
11
+ // BBS+ signature suites
12
+ BbsBlsSignature2020,
13
+ BbsBlsSignatureProof2020,
14
+ // Holder-bound signature suites
15
+ BbsBlsHolderBoundSignature2022,
16
+ BbsBlsHolderBoundSignatureProof2022,
17
+ // JSON-LD processor
18
+ JsonLd,
19
+ // Linked data signature functions
20
+ ldSign,
21
+ ldVerify,
22
+ ldDeriveProof,
23
+ deriveProof,
24
+ // Blind signing functions
25
+ createCommitment,
26
+ verifyCommitment,
27
+ unblindSignature,
28
+ deriveProofHolderBound,
29
+ } = nativeBinding
6
30
  module.exports.Bls12381G2KeyPair = Bls12381G2KeyPair
7
31
  module.exports.KeyPairSigner = KeyPairSigner
8
32
  module.exports.KeyPairVerifier = KeyPairVerifier
33
+ module.exports.BoundBls12381G2KeyPair = BoundBls12381G2KeyPair
34
+ module.exports.BbsBlsSignature2020 = BbsBlsSignature2020
35
+ module.exports.BbsBlsSignatureProof2020 = BbsBlsSignatureProof2020
36
+ module.exports.BbsBlsHolderBoundSignature2022 = BbsBlsHolderBoundSignature2022
37
+ module.exports.BbsBlsHolderBoundSignatureProof2022 = BbsBlsHolderBoundSignatureProof2022
38
+ module.exports.JsonLd = JsonLd
39
+ module.exports.ldSign = ldSign
40
+ module.exports.ldVerify = ldVerify
41
+ module.exports.ldDeriveProof = ldDeriveProof
42
+ module.exports.deriveProof = deriveProof
43
+ module.exports.createCommitment = createCommitment
44
+ module.exports.verifyCommitment = verifyCommitment
45
+ module.exports.unblindSignature = unblindSignature
46
+ module.exports.deriveProofHolderBound = deriveProofHolderBound
9
47
  } catch (e) {
10
- throw new Error(`failed to load: {e}`)
48
+ throw new Error(`failed to load native binding: ${e}`)
11
49
  }
12
50
 
13
51
  // React Native Support
@@ -17,5 +55,5 @@ try {
17
55
  // const { Bls12381G2KeyPair } = nativeBinding
18
56
  // module.exports.Bls12381G2KeyPair = Bls12381G2KeyPair
19
57
  // } catch (e) {
20
- // throw new Error(`failed to load: {e}`)
58
+ // throw new Error(`failed to load: ${e}`)
21
59
  // }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuggetslife/vc-multiplatform",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "description": "Multiplatform support for VC library",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -9,7 +9,7 @@
9
9
  "author": "",
10
10
  "license": "ISC",
11
11
  "optionalDependencies": {
12
- "@nuggetslife/vc": "0.0.10",
13
- "@nuggetslife/vc-rn": "0.1.1"
12
+ "@nuggetslife/vc": "0.0.18",
13
+ "@nuggetslife/vc-rn": "0.1.7"
14
14
  }
15
15
  }