import MetaMaskSigner from '@casperholders/core/src/services/signers/metamaskSigner.js'
MetaMaskSigner
Extends:
AbstractSigner → MetaMaskSigner
Static Method Summary
Static Public Methods | ||
public static |
Sign a given Deploy Object with the corresponding public key. |
Inherited Summary
From class AbstractSigner | ||
public static |
Abstract method to sign a deployment. |
Static Public Methods
public static async sign(deploy: Deploy, options: Object): Promise<DeployUtil.Deploy> source
Sign a given Deploy Object with the corresponding public key. You must pass the active public key from the user and the public key where the deploy is going to be used.
Override:
AbstractSigner#signParams:
Name | Type | Attribute | Description |
deploy | Deploy | Deploy object |
|
options | Object | Options object |
|
options.snapID | string | ID of the MetaMask Casper Snap. |
|
options.addressIndex | string | Index of the address. |
|
options.publicKey | string | Public key that sign the deploy. |
|
options.signingTxnText | string | Message explanation for the user displayed in MetaMask |