Skip to main content

Class: SingleKeyAccountContract

single_key.SingleKeyAccountContract

Account contract that authenticates transactions using Schnorr signatures verified against the note encryption key, relying on a single private key for both encryption and authentication. Eagerly loads the contract artifact

Hierarchy

  • SingleKeyBaseAccountContract

    SingleKeyAccountContract

Constructors

constructor

new SingleKeyAccountContract(signingPrivateKey): SingleKeyAccountContract

Parameters

NameType
signingPrivateKeyFq

Returns

SingleKeyAccountContract

Overrides

SingleKeyBaseAccountContract.constructor

Methods

getAuthWitnessProvider

getAuthWitnessProvider(account): AuthWitnessProvider

Parameters

NameType
accountCompleteAddress

Returns

AuthWitnessProvider

Inherited from

SingleKeyBaseAccountContract.getAuthWitnessProvider


getContractArtifact

getContractArtifact(): Promise<ContractArtifact>

Returns

Promise<ContractArtifact>

Overrides

SingleKeyBaseAccountContract.getContractArtifact


getDeploymentFunctionAndArgs

getDeploymentFunctionAndArgs(): Promise<undefined>

Returns

Promise<undefined>

Inherited from

SingleKeyBaseAccountContract.getDeploymentFunctionAndArgs


getInterface

getInterface(address, nodeInfo): AccountInterface

Parameters

NameType
addressCompleteAddress
nodeInfoNodeInfo

Returns

AccountInterface

Inherited from

SingleKeyBaseAccountContract.getInterface