Readonly
noteStatic
CURRENT_Static
Private
wasmGets the WebAssembly module for the target environment. Supports the browser and Node.js.
Static
deserializeStatic
fromStatic
generateGenerates a note using the relevant input data. Supports the protocols defined in the WebAssembly note backend.
// Generate an anchor note
const input: NoteGenInput = {
protocol: 'vanchor',
version: 'v1',
targetChain: '1',
targetIdentifyingData: '1',
sourceChain: '1',
sourceIdentifyingData: '1',
backend: 'Circom',
hashFunction: 'Poseidon',
curve: 'Bn254',
tokenSymbol: 'WEBB',
amount: '1',
denomination: '18',
width: '4',
exponentiation: '5',
}
const note = await Note.generateNote(input);
The input data for generating a note.
Generated using TypeDoc
Note class using the WebAssembly note backend.
The goal of this class is to provide a Note interface that works both in Node.js and in the browser.