Class: SecretManager
The SecretManager to interact with nodes.
Table of contents
Methods
- generateEd25519Addresses
- generateEvmAddresses
- storeMnemonic
- signTransaction
- signatureUnlock
- signEd25519
- getLedgerNanoStatus
Methods
generateEd25519Addresses
▸ generateEd25519Addresses(generateAddressesOptions
): Promise
<string
[]>
Generate ed25519 addresses
Parameters
Name | Type |
---|---|
generateAddressesOptions | IGenerateAddressesOptions |
Returns
Promise
<string
[]>
generateEvmAddresses
▸ generateEvmAddresses(generateAddressesOptions
): Promise
<string
[]>
Generate EVM addresses
Parameters
Name | Type |
---|---|
generateAddressesOptions | IGenerateAddressesOptions |
Returns
Promise
<string
[]>
storeMnemonic
▸ storeMnemonic(mnemonic
): Promise
<void
>
Store a mnemonic in the Stronghold vault
Parameters
Name | Type |
---|---|
mnemonic | string |
Returns
Promise
<void
>
signTransaction
▸ signTransaction(preparedTransactionData
): Promise
<PayloadTypes
>
Sign a transaction
Parameters
Name | Type |
---|---|
preparedTransactionData | IPreparedTransactionData |
Returns
Promise
<PayloadTypes
>
signatureUnlock
▸ signatureUnlock(transactionEssenceHash
, chain
): Promise
<UnlockTypes
>
Create a signature unlock using the provided secretManager
.
Parameters
Name | Type |
---|---|
transactionEssenceHash | string |
chain | IBip32Chain |
Returns
Promise
<UnlockTypes
>
signEd25519
▸ signEd25519(message
, chain
): Promise
<IEd25519Signature
>
Signs a message with an Ed25519 private key.
Parameters
Name | Type |
---|---|
message | string |
chain | IBip32Chain |
Returns
Promise
<IEd25519Signature
>
getLedgerNanoStatus
▸ getLedgerNanoStatus(): Promise
<LedgerNanoStatus
>
Get the status of a Ledger Nano
Returns
Promise
<LedgerNanoStatus
>