Skip to main content

Module: ecdsa

Classes

Variables

EcdsaKAccountContractArtifact

Const EcdsaKAccountContractArtifact: ContractArtifact


EcdsaRAccountContractArtifact

Const EcdsaRAccountContractArtifact: ContractArtifact

Functions

getEcdsaKAccount

getEcdsaKAccount(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


getEcdsaKWallet

getEcdsaKWallet(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.


getEcdsaRSSHAccount

getEcdsaRSSHAccount(pxe, secretKey, signingPublicKey, 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.
signingPublicKeyBufferSecp2561 key used to identify its corresponding private key in the SSH Agent.
salt?SaltDeployment salt.

Returns

AccountManager


getEcdsaRSSHWallet

getEcdsaRSSHWallet(pxe, address, signingPublicKey): Promise<AccountWallet>

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

Parameters

NameTypeDescription
pxePXEAn PXE server instance.
addressAztecAddressAddress for the account.
signingPublicKeyBuffer-

Returns

Promise<AccountWallet>

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