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
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
getEcdsaKWallet
▸ getEcdsaKWallet(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.
getEcdsaRSSHAccount
▸ getEcdsaRSSHAccount(pxe
, secretKey
, signingPublicKey
, 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. |
signingPublicKey | Buffer | Secp2561 key used to identify its corresponding private key in the SSH Agent. |
salt? | Salt | Deployment salt. |
Returns
AccountManager
getEcdsaRSSHWallet
▸ getEcdsaRSSHWallet(pxe
, address
, signingPublicKey
): 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. |
signingPublicKey | Buffer | - |
Returns
Promise
<AccountWallet
>
A wallet for this account that can be used to interact with a contract instance.