- Preparing search index...
- The search index is not available
@zrclib/sdk
Constructors
constructor
- new Keypair(privkey?): Keypair
-
Properties
encryptionKey
encryptionKey: string
privkey
privkey: string
pubkey
pubkey: Uint8Array
Methods
address
- address(): string
-
Returns string
decrypt
- decrypt(data): Buffer
-
Returns Buffer
encrypt
- encrypt(bytes): string
-
Returns string
sign
- sign(commitment, merklePath): Uint8Array
-
Parameters
-
commitment: string | number | Uint8Array | BigNumber
-
merklePath: string | number | Uint8Array | BigNumber
Returns Uint8Array
toString
- toString(): string
-
Returns string
Static
fromSigner
- fromSigner(signer): Promise<Keypair>
-
Returns Promise<Keypair>
Static
fromString
- fromString(str): Keypair
-
Static
generate
- generate(): Promise<Keypair>
-
Returns Promise<Keypair>
Generate a Keypair by signing a login message with the provider. This will trigger a wallet sign flow