Skip to main content

Class: EcdsaRSSHAccountContract

ecdsa.EcdsaRSSHAccountContract

Account contract that authenticates transactions using ECDSA signatures verified against a secp256r1 public key stored in an immutable encrypted note. Since this implementation relays signatures to an SSH agent, we provide the public key here not for signature verification, but to identify actual identity that will be used to sign authwitnesses.

Hierarchy

Constructors

constructor

new EcdsaRSSHAccountContract(signingPublicKey): EcdsaRSSHAccountContract

Parameters

NameType
signingPublicKeyBuffer

Returns

EcdsaRSSHAccountContract

Overrides

DefaultAccountContract.constructor

Properties

signingPublicKey

Private signingPublicKey: 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