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
Name | Type |
---|---|
signingPrivateKey | Fq |
Returns
Overrides
SingleKeyBaseAccountContract.constructor
Methods
getAuthWitnessProvider
▸ getAuthWitnessProvider(account
): AuthWitnessProvider
Parameters
Name | Type |
---|---|
account | CompleteAddress |
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
Name | Type |
---|---|
address | CompleteAddress |
nodeInfo | NodeInfo |
Returns
AccountInterface
Inherited from
SingleKeyBaseAccountContract.getInterface