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
Name | Type | Description |
---|---|---|
pxe | PXE | An PXE server instance. |
secretKey | Fr | Secret key used to derive all the keystore keys. |
signingPrivateKey | Buffer | Secp256k1 key used for signing transactions. |
salt? | Salt | Deployment salt. |
Returns
AccountManager
getEcdsaWallet
▸ getEcdsaWallet(pxe
, address
, signingPrivateKey
): Promise
<AccountWallet
>
Gets a wallet for an already registered account using ECDSA signatures.
Parameters
Name | Type | Description |
---|---|---|
pxe | PXE | An PXE server instance. |
address | AztecAddress | Address for the account. |
signingPrivateKey | Buffer | ECDSA key used for signing transactions. |
Returns
Promise
<AccountWallet
>
A wallet for this account that can be used to interact with a contract instance.