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.

Hierarchy

Constructors

constructor

new SingleKeyAccountContract(encryptionPrivateKey): SingleKeyAccountContract

Parameters

NameType
encryptionPrivateKeyFq

Returns

SingleKeyAccountContract

Overrides

DefaultAccountContract.constructor

Properties

encryptionPrivateKey

Private encryptionPrivateKey: Fq

Methods

getAuthWitnessProvider

getAuthWitnessProvider(account): AuthWitnessProvider

Parameters

NameType
accountCompleteAddress

Returns

AuthWitnessProvider

Overrides

DefaultAccountContract.getAuthWitnessProvider


getContractArtifact

getContractArtifact(): ContractArtifact

Returns

ContractArtifact

Inherited from

DefaultAccountContract.getContractArtifact


getDeploymentArgs

getDeploymentArgs(): undefined

Returns

undefined

Overrides

DefaultAccountContract.getDeploymentArgs


getInterface

getInterface(address, nodeInfo): AccountInterface

Parameters

NameType
addressCompleteAddress
nodeInfoNodeInfo

Returns

AccountInterface

Inherited from

DefaultAccountContract.getInterface