Home Reference Source
public class | source

CasperSigner

Extends:

AbstractSigner → CasperSigner

CasperSigner class Used to sign a deployment with the Casper Signer extension

Static Method Summary

Static Public Methods
public static

async sign(deploy: DeployUtil.Deploy, options: Object): Promise<DeployUtil.Deploy>

Sign a given Deploy Object with the corresponding public key.

Inherited Summary

From class AbstractSigner
public static

async sign(deploy: Deploy, options: Object): Promise<Deploy>

Abstract method to sign a deployment.

Static Public Methods

public static async sign(deploy: DeployUtil.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#sign

Params:

NameTypeAttributeDescription
deploy DeployUtil.Deploy

Deploy object

options Object

Options object

options.activeKey string

Public key of the user.

options.to string

Public key of the targeted wallet.

Return:

Promise<DeployUtil.Deploy>

Signed deploy object