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. Eagerly loads the contract artifact
Hierarchy
-
EcdsaRSSHBaseAccountContract
↳
EcdsaRSSHAccountContract
Constructors
constructor
• new EcdsaRSSHAccountContract(signingPrivateKey
): EcdsaRSSHAccountContract
Parameters
Name | Type |
---|---|
signingPrivateKey | Buffer |
Returns
Overrides
EcdsaRSSHBaseAccountContract.constructor
Methods
getAuthWitnessProvider
▸ getAuthWitnessProvider(_address
): AuthWitnessProvider
Parameters
Name | Type |
---|---|
_address | CompleteAddress |
Returns
AuthWitnessProvider
Inherited from
EcdsaRSSHBaseAccountContract.getAuthWitnessProvider
getContractArtifact
▸ getContractArtifact(): Promise
<ContractArtifact
>
Returns
Promise
<ContractArtifact
>
Overrides
EcdsaRSSHBaseAccountContract.getContractArtifact
getDeploymentFunctionAndArgs
▸ getDeploymentFunctionAndArgs(): Promise
<{ constructorArgs
: Buffer
[] ; constructorName
: string
= 'constructor' }>
Returns
Promise
<{ constructorArgs
: Buffer
[] ; constructorName
: string
= 'constructor' }>
Inherited from
EcdsaRSSHBaseAccountContract.getDeploymentFunctionAndArgs
getInterface
▸ getInterface(address
, nodeInfo
): AccountInterface
Parameters
Name | Type |
---|---|
address | CompleteAddress |
nodeInfo | NodeInfo |
Returns
AccountInterface
Inherited from
EcdsaRSSHBaseAccountContract.getInterface