File tree Expand file tree Collapse file tree 7 files changed +17
-15
lines changed
Expand file tree Collapse file tree 7 files changed +17
-15
lines changed Original file line number Diff line number Diff line change 1212 runs-on : ${{matrix.os}}
1313 strategy :
1414 matrix :
15- node-version : [14.x, 16.x, 17 .x]
15+ node-version : [14.x, 16.x, 18 .x]
1616 os : [ubuntu-latest, macos-latest]
1717 steps :
1818 - uses : actions/checkout@v1
Original file line number Diff line number Diff line change 11{
22 "name" : " @docknetwork/crypto-wasm-ts" ,
3- "version" : " 0.15 .0" ,
3+ "version" : " 0.16 .0" ,
44 "description" : " Typescript abstractions over Dock's Rust crypto library's WASM wrapper" ,
55 "homepage" : " https://github.com/docknetwork/crypto-wasm-ts" ,
66 "main" : " lib/crypto-wasm-ts/src/index.js" ,
2121 "lib" : " lib"
2222 },
2323 "dependencies" : {
24- "@docknetwork/crypto-wasm" : " 0.10 .0"
24+ "@docknetwork/crypto-wasm" : " 0.11 .0"
2525 },
2626 "devDependencies" : {
2727 "eslint-config-prettier" : " ^8.3.0" ,
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ export abstract class Accumulator {
7373 this . params = params ;
7474 }
7575
76- setNew ( value : any ) {
76+ setNew ( value : Uint8Array | object ) {
7777 this . value = value ;
7878 }
7979
Original file line number Diff line number Diff line change 1- import { VerifyResult } from '@docknetwork/crypto-wasm' ;
21import {
32 accumulatorChallengeContributionFromNonMembershipProof ,
43 accumulatorInitializeMembershipProof ,
@@ -10,7 +9,8 @@ import {
109 accumulatorGenMembershipProof ,
1110 accumulatorGenNonMembershipProof ,
1211 accumulatorInitializeNonMembershipProof ,
13- accumulatorVerifyMembershipProof
12+ accumulatorVerifyMembershipProof ,
13+ VerifyResult
1414} from '@docknetwork/crypto-wasm' ;
1515import { MembershipWitness , NonMembershipWitness } from './accumulatorWitness' ;
1616import {
Original file line number Diff line number Diff line change 33 */
44import { SignatureG1 } from './signature' ;
55import { SignatureParamsG1 } from './params' ;
6- import { BbsPoKSigProtocol , VerifyResult } from '@docknetwork/crypto-wasm' ;
76import {
87 bbsInitializeProofOfKnowledgeOfSignature ,
98 bbsGenProofOfKnowledgeOfSignature ,
109 bbsChallengeContributionFromProtocol ,
1110 bbsChallengeContributionFromProof ,
12- bbsVerifyProofOfKnowledgeOfSignature
11+ bbsVerifyProofOfKnowledgeOfSignature ,
12+ BbsPoKSigProtocol ,
13+ VerifyResult
1314} from '@docknetwork/crypto-wasm' ;
1415import { BBSPlusPublicKeyG2 } from './keys' ;
1516import { BytearrayWrapper } from '../bytearray-wrapper' ;
Original file line number Diff line number Diff line change 11import { SignatureParamsG1 } from './params' ;
2- import { fieldElementAsBytes , generateFieldElementFromNumber , VerifyResult } from '@docknetwork/crypto-wasm' ;
32import {
43 bbsBlindSignG1 ,
54 bbsEncodeMessageForSigning ,
65 bbsSignG1 ,
76 bbsUnblindSigG1 ,
87 bbsVerifyG1 ,
9- generateRandomFieldElement
8+ generateRandomFieldElement ,
9+ fieldElementAsBytes ,
10+ generateFieldElementFromNumber ,
11+ VerifyResult
1012} from '@docknetwork/crypto-wasm' ;
1113import { BBSPlusPublicKeyG2 , BBSPlusSecretKey } from './keys' ;
12- import { ensurePositiveIntegerOfSize } from '../util' ;
1314import { BytearrayWrapper } from '../bytearray-wrapper' ;
1415
1516export abstract class Signature extends BytearrayWrapper {
Original file line number Diff line number Diff line change @@ -154,11 +154,11 @@ export class SaverDecryptor {
154154
155155 /**
156156 * Decrypt the ciphertext using uncompressed public parameters.
157- * @param ciphertext - Must be same as the one used during setup to create the parameters.
157+ * @param ciphertext
158158 * @param secretKey
159159 * @param decryptionKey
160160 * @param snarkVk
161- * @param chunkBitSize
161+ * @param chunkBitSize - Must be same as the one used during setup to create the parameters.
162162 */
163163 static decryptCiphertext (
164164 ciphertext : SaverCiphertext ,
@@ -181,11 +181,11 @@ export class SaverDecryptor {
181181
182182 /**
183183 * Same as `decryptCiphertext` but uses compressed parameters.
184- * @param ciphertext - Must be same as the one used during setup to create the parameters.
184+ * @param ciphertext
185185 * @param secretKey
186186 * @param decryptionKey
187187 * @param snarkVk
188- * @param chunkBitSize
188+ * @param chunkBitSize - Must be same as the one used during setup to create the parameters.
189189 */
190190 static decryptCiphertextUsingCompressedParams (
191191 ciphertext : SaverCiphertext ,
You can’t perform that action at this time.
0 commit comments