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
-
↳
SingleKeyAccountContract
Constructors
constructor
• new SingleKeyAccountContract(encryptionPrivateKey
): SingleKeyAccountContract
Parameters
Name | Type |
---|---|
encryptionPrivateKey | Fq |
Returns
Overrides
DefaultAccountContract.constructor
Properties
encryptionPrivateKey
• Private
encryptionPrivateKey: Fq
Methods
getAuthWitnessProvider
▸ getAuthWitnessProvider(account
): AuthWitnessProvider
Parameters
Name | Type |
---|---|
account | CompleteAddress |
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
Name | Type |
---|---|
address | CompleteAddress |
nodeInfo | NodeInfo |
Returns
AccountInterface