Skip to main content

Module: ecdsa

The @aztec/accounts/ecdsa export provides an ECDSA account contract implementation, that uses an ECDSA private key for authentication, and a Grumpkin key for encryption. Consider using this account type when working with integrations with Ethereum wallets.

Classes

Variables

EcdsaAccountContractArtifact

Const EcdsaAccountContractArtifact: ContractArtifact

Functions

getEcdsaAccount

getEcdsaAccount(pxe, secretKey, signingPrivateKey, salt?): AccountManager

Creates an Account that relies on an ECDSA signing key for authentication.

Parameters

NameTypeDescription
pxePXEAn PXE server instance.
secretKeyFrSecret key used to derive all the keystore keys.
signingPrivateKeyBufferSecp256k1 key used for signing transactions.
salt?SaltDeployment salt.

Returns

AccountManager


getEcdsaWallet

getEcdsaWallet(pxe, address, signingPrivateKey): Promise<AccountWallet>

Gets a wallet for an already registered account using ECDSA signatures.

Parameters

NameTypeDescription
pxePXEAn PXE server instance.
addressAztecAddressAddress for the account.
signingPrivateKeyBufferECDSA key used for signing transactions.

Returns

Promise<AccountWallet>

A wallet for this account that can be used to interact with a contract instance.