Constructors
constructor
- new Note(val: bigint, secret: bigint, owner: EigenAddress, assetId: number, inputNullifier: bigint, accountRequired: boolean, index: bigint): Note
-
Parameters
-
val: bigint
-
secret: bigint
-
-
assetId: number
-
inputNullifier: bigint
-
accountRequired: boolean
-
index: bigint
Properties
accountRequired
accountRequired: boolean
inputNullifier
inputNullifier: bigint
Accessors
pending
- get pending(): boolean
-
Returns boolean
Methods
compress
- compress(babyJub: any): Promise<bigint>
-
Returns Promise<bigint>
encrypt
- encrypt(key: any): any
-
Returns any
owner
- owner(babyJub: any): bigint[]
-
Returns bigint[]
toCircuitInput
- toCircuitInput(babyJub: any): any
-
Returns any
Static
decrypt
- decrypt(_cipherData: string, key: any): Note
-
Parameters
-
_cipherData: string
-
key: any