Skip to main content

Class: SecretManager

The SecretManager to interact with nodes.

Table of contents

Methods

Methods

generateEd25519Addresses

generateEd25519Addresses(generateAddressesOptions): Promise<string[]>

Generate ed25519 addresses

Parameters

NameType
generateAddressesOptionsIGenerateAddressesOptions

Returns

Promise<string[]>


generateEvmAddresses

generateEvmAddresses(generateAddressesOptions): Promise<string[]>

Generate EVM addresses

Parameters

NameType
generateAddressesOptionsIGenerateAddressesOptions

Returns

Promise<string[]>


storeMnemonic

storeMnemonic(mnemonic): Promise<void>

Store a mnemonic in the Stronghold vault

Parameters

NameType
mnemonicstring

Returns

Promise<void>


signTransaction

signTransaction(preparedTransactionData): Promise<PayloadTypes>

Sign a transaction

Parameters

NameType
preparedTransactionDataIPreparedTransactionData

Returns

Promise<PayloadTypes>


signatureUnlock

signatureUnlock(transactionEssenceHash, chain): Promise<UnlockTypes>

Create a signature unlock using the provided secretManager.

Parameters

NameType
transactionEssenceHashstring
chainIBip32Chain

Returns

Promise<UnlockTypes>


signEd25519

signEd25519(message, chain): Promise<IEd25519Signature>

Signs a message with an Ed25519 private key.

Parameters

NameType
messagestring
chainIBip32Chain

Returns

Promise<IEd25519Signature>


getLedgerNanoStatus

getLedgerNanoStatus(): Promise<LedgerNanoStatus>

Get the status of a Ledger Nano

Returns

Promise<LedgerNanoStatus>