Skip to main content

Class: SchnorrAccountContract

schnorr.SchnorrAccountContract

Account contract that authenticates transactions using Schnorr signatures verified against a Grumpkin public key stored in an immutable encrypted note. Eagerly loads the contract artifact

Hierarchy

  • SchnorrBaseAccountContract

    SchnorrAccountContract

Constructors

constructor

new SchnorrAccountContract(signingPrivateKey): SchnorrAccountContract

Parameters

NameType
signingPrivateKeyFq

Returns

SchnorrAccountContract

Overrides

SchnorrBaseAccountContract.constructor

Methods

getAuthWitnessProvider

getAuthWitnessProvider(_address): AuthWitnessProvider

Parameters

NameType
_addressCompleteAddress

Returns

AuthWitnessProvider

Inherited from

SchnorrBaseAccountContract.getAuthWitnessProvider


getContractArtifact

getContractArtifact(): Promise<ContractArtifact>

Returns

Promise<ContractArtifact>

Overrides

SchnorrBaseAccountContract.getContractArtifact


getDeploymentFunctionAndArgs

getDeploymentFunctionAndArgs(): Promise<{ constructorArgs: Fr[] ; constructorName: string = 'constructor' }>

Returns

Promise<{ constructorArgs: Fr[] ; constructorName: string = 'constructor' }>

Inherited from

SchnorrBaseAccountContract.getDeploymentFunctionAndArgs


getInterface

getInterface(address, nodeInfo): AccountInterface

Parameters

NameType
addressCompleteAddress
nodeInfoNodeInfo

Returns

AccountInterface

Inherited from

SchnorrBaseAccountContract.getInterface