Home Reference Source
public class | source

LedgerSigner

Extends:

AbstractSigner → LedgerSigner

LedgerSigner class Used to sign a deployment with Ledger

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.app CasperApp

CasperApp instance.

options.publicKey string

Public key that sign the deploy.

options.keyPath string

Public key that sign the deploy.

Return:

Promise<DeployUtil.Deploy>

Signed deploy object