Skip to main content

Class: EcdsaAccountContract

ecdsa.EcdsaAccountContract

Account contract that authenticates transactions using ECDSA signatures verified against a secp256k1 public key stored in an immutable encrypted note.

Hierarchy

Constructors

constructor

new EcdsaAccountContract(signingPrivateKey): EcdsaAccountContract

Parameters

NameType
signingPrivateKeyBuffer

Returns

EcdsaAccountContract

Overrides

DefaultAccountContract.constructor

Properties

signingPrivateKey

Private signingPrivateKey: Buffer

Methods

getAuthWitnessProvider

getAuthWitnessProvider(_address): AuthWitnessProvider

Parameters

NameType
_addressCompleteAddress

Returns

AuthWitnessProvider

Overrides

DefaultAccountContract.getAuthWitnessProvider


getContractArtifact

getContractArtifact(): ContractArtifact

Returns

ContractArtifact

Inherited from

DefaultAccountContract.getContractArtifact


getDeploymentArgs

getDeploymentArgs(): Buffer[]

Returns

Buffer[]

Overrides

DefaultAccountContract.getDeploymentArgs


getInterface

getInterface(address, nodeInfo): AccountInterface

Parameters

NameType
addressCompleteAddress
nodeInfoNodeInfo

Returns

AccountInterface

Inherited from

DefaultAccountContract.getInterface