iota_sdk.secret_manager.secret_manager
LedgerNanoSecretManager Objects
class LedgerNanoSecretManager(dict)
Secret manager that uses a Ledger Nano hardware wallet or Speculos simulator.
__init__
def __init__(is_simulator)
Initialize a ledger nano secret manager.
MnemonicSecretManager Objects
class MnemonicSecretManager(dict)
Secret manager that uses a mnemonic in plain memory. It's not recommended for production use. Use LedgerNano or Stronghold instead.
__init__
def __init__(mnemonic)
Initialize a mnemonic secret manager.
SeedSecretManager Objects
class SeedSecretManager(dict)
__init__
def __init__(seed)
Initialize a seed secret manager.
StrongholdSecretManager Objects
class StrongholdSecretManager(dict)
Secret manager that uses Stronghold.
__init__
def __init__(snapshot_path, password)
Initialize a stronghold secret manager.
SecretManagerError Objects
class SecretManagerError(Exception)
secret manager error
SecretManager Objects
class SecretManager()
generate_ed25519_addresses
def generate_ed25519_addresses(account_index: Optional[int] = None,
start: Optional[int] = None,
end: Optional[int] = None,
internal: Optional[bool] = None,
coin_type: Optional[int] = None,
bech32_hrp: Optional[str] = None,
ledger_nano_prompt: Optional[bool] = None)
Generate ed25519 addresses.
Parameters
- account_index: int
Account index. - start: int
Start index of generated addresses - end: int
End index of generated addresses - internal: bool
Internal addresses - coin_type: int
Coin type. The CoinType enum can be used - bech32_hrp: string
Bech32 human readable part. - ledger_nano_prompt: bool
Display the address on ledger devices.
Returns
Addresses as array of strings.
generate_evm_addresses
def generate_evm_addresses(account_index=None,
start=None,
end=None,
internal=None,
coin_type=None,
ledger_nano_prompt=None)
Generate EVM addresses.
Parameters
- account_index: int
Account index. - start: int
Start index of generated addresses - end: int
End index of generated addresses - internal: bool
Internal addresses - coin_type: int
Coin type. The CoinType enum can be used - ledger_nano_prompt: bool
Display the address on ledger devices.
Returns
Addresses as array of strings.
get_ledger_nano_status
def get_ledger_nano_status()
Returns the Ledger Status.
store_mnemonic
def store_mnemonic(mnemonic: str)
Store a mnemonic in the Stronghold vault.
sign_ed25519
def sign_ed25519(message: HexStr, chain: List[int])
Signs a message with an Ed25519 private key.
sign_secp256k1_ecdsa
def sign_secp256k1_ecdsa(message: HexStr, chain: List[int])
Signs a message with an Secp256k1Ecdsa private key.
sign_transaction
def sign_transaction(prepared_transaction_data)
Sign a transaction.
signature_unlock
def signature_unlock(transaction_essence_hash: HexStr, chain: List[int])
Sign a transaction essence hash.