Skip to main content

Module: schnorr

The @aztec/accounts/schnorr export provides an account contract implementation that uses Schnorr signatures with a Grumpkin key for authentication, and a separate Grumpkin key for encryption. This is the suggested account contract type for most use cases within Aztec.

Classes

Variables

SchnorrAccountContractArtifact

Const SchnorrAccountContractArtifact: ContractArtifact

Functions

getSchnorrAccount

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

Creates an Account Manager that relies on a Grumpkin signing key for authentication.

Parameters

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

Returns

AccountManager


getSchnorrWallet

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

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

Parameters

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

Returns

Promise<AccountWallet>

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