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.

Hierarchy

Constructors

constructor

new SchnorrAccountContract(signingPrivateKey): SchnorrAccountContract

Parameters

NameType
signingPrivateKeyFq

Returns

SchnorrAccountContract

Overrides

DefaultAccountContract.constructor

Properties

signingPrivateKey

Private signingPrivateKey: Fq

Methods

getAuthWitnessProvider

getAuthWitnessProvider(_address): AuthWitnessProvider

Parameters

NameType
_addressCompleteAddress

Returns

AuthWitnessProvider

Overrides

DefaultAccountContract.getAuthWitnessProvider


getContractArtifact

getContractArtifact(): ContractArtifact

Returns

ContractArtifact

Inherited from

DefaultAccountContract.getContractArtifact


getDeploymentArgs

getDeploymentArgs(): Fr[]

Returns

Fr[]

Overrides

DefaultAccountContract.getDeploymentArgs


getInterface

getInterface(address, nodeInfo): AccountInterface

Parameters

NameType
addressCompleteAddress
nodeInfoNodeInfo

Returns

AccountInterface

Inherited from

DefaultAccountContract.getInterface