Skip to main content
Version: v0.87.0

Module: ecdsa

Classes

Variables

EcdsaKAccountContractArtifact

Const EcdsaKAccountContractArtifact: ContractArtifact


EcdsaRAccountContractArtifact

Const EcdsaRAccountContractArtifact: ContractArtifact

Functions

getEcdsaKAccount

getEcdsaKAccount(pxe, secretKey, signingPrivateKey, salt?): Promise<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.
signingPrivateKeyBuffer<ArrayBufferLike>Secp256k1 key used for signing transactions.
salt?SaltDeployment salt.

Returns

Promise<AccountManager>

An account manager initialized with the account contract and its deployment params


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.
signingPrivateKeyBuffer<ArrayBufferLike>ECDSA key used for signing transactions.

Returns

Promise<AccountWallet>

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


getEcdsaRAccount

getEcdsaRAccount(pxe, secretKey, signingPrivateKey, salt?): Promise<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.
signingPrivateKeyBuffer<ArrayBufferLike>Secp256k1 key used for signing transactions.
salt?SaltDeployment salt.

Returns

Promise<AccountManager>

An account manager initialized with the account contract and its deployment params


getEcdsaRSSHAccount

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

Returns

Promise<AccountManager>

An account manager initialized with the account contract and its deployment params


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<ArrayBufferLike>-

Returns

Promise<AccountWallet>

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


getEcdsaRWallet

getEcdsaRWallet(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.
signingPrivateKeyBuffer<ArrayBufferLike>ECDSA key used for signing transactions.

Returns

Promise<AccountWallet>

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