SignerKey

SignerKey

A container class with helpers to convert between signer keys (xdr.SignerKey) and StrKeys.

It's primarly used for manipulating the extraSigners precondition on a Transaction.

Constructor

new SignerKey()

Source:
See:
  • TransactionBuilder.setExtraSigners

Methods

(static) decodeAddress(address) → {xdr.SignerKey}

Decodes a StrKey address into an xdr.SignerKey instance.

Only ED25519 public keys (G...), pre-auth transactions (T...), hashes (H...), and signed payloads (P...) can be signer keys.

Source:
Parameters:
Name Type Description
address string

a StrKey-encoded signer address

Returns:
Type:
xdr.SignerKey

(static) encodeSignerKey(signerKey) → {string}

Encodes a signer key into its StrKey equivalent.

Source:
Parameters:
Name Type Description
signerKey xdr.SignerKey

the signer

Returns:
Type:
string

the StrKey representation of the signer