-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Rust crypto and rename certain methods
Signed-off-by: lovesh <lovesh.bond@gmail.com>
- Loading branch information
Showing
12 changed files
with
121 additions
and
121 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
const { | ||
wasm, requireWasmInitialized | ||
} = require('./init_wasm'); | ||
|
||
module.exports.getAllKeyedSubproofsFromProof = (proof) => { | ||
requireWasmInitialized(); | ||
return wasm.getAllKeyedSubproofsFromProof(proof); | ||
}; | ||
|
||
module.exports.verifyBDDT16KeyedProof = (proof, secretKey) => { | ||
requireWasmInitialized(); | ||
return wasm.verifyBDDT16KeyedProof(proof, secretKey); | ||
}; | ||
|
||
module.exports.verifyVBAccumMembershipKeyedProof = (proof, secretKey) => { | ||
requireWasmInitialized(); | ||
return wasm.verifyVBAccumMembershipKeyedProof(proof, secretKey); | ||
}; | ||
|
||
module.exports.verifyKBUniAccumMembershipKeyedProof = (proof, secretKey) => { | ||
requireWasmInitialized(); | ||
return wasm.verifyKBUniAccumMembershipKeyedProof(proof, secretKey); | ||
}; | ||
|
||
module.exports.verifyKBUniAccumNonMembershipKeyedProof = (proof, secretKey) => { | ||
requireWasmInitialized(); | ||
return wasm.verifyKBUniAccumNonMembershipKeyedProof(proof, secretKey); | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import {VerifyResult} from "../types"; | ||
|
||
export function getAllKeyedSubproofsFromProof(proof: Uint8Array): Map<number, [number, Uint8Array]>; | ||
|
||
export function verifyBDDT16KeyedProof(proof: Uint8Array, secretKey: Uint8Array): Required<VerifyResult>; | ||
|
||
export function verifyVBAccumMembershipKeyedProof(proof: Uint8Array, secretKey: Uint8Array): Required<VerifyResult>; | ||
|
||
export function verifyKBUniAccumMembershipKeyedProof(proof: Uint8Array, secretKey: Uint8Array): Required<VerifyResult>; | ||
|
||
export function verifyKBUniAccumNonMembershipKeyedProof(proof: Uint8Array, secretKey: Uint8Array): Required<VerifyResult>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.