multiversx_sdk.wallet package
Subpackages
Submodules
multiversx_sdk.wallet.core module
multiversx_sdk.wallet.errors module
multiversx_sdk.wallet.interfaces module
multiversx_sdk.wallet.keypair module
- class multiversx_sdk.wallet.keypair.KeyPair(secret_key: UserSecretKey)[source]
Bases:
object- get_public_key() UserPublicKey[source]
- get_secret_key() UserSecretKey[source]
multiversx_sdk.wallet.mnemonic module
- class multiversx_sdk.wallet.mnemonic.Mnemonic(text: str)[source]
Bases:
object- derive_key(address_index: int = 0) UserSecretKey[source]
multiversx_sdk.wallet.pem_entry module
multiversx_sdk.wallet.user_keys module
- class multiversx_sdk.wallet.user_keys.UserSecretKey(buffer: bytes)[source]
Bases:
object- classmethod generate() UserSecretKey[source]
- generate_public_key() UserPublicKey[source]
- classmethod new_from_string(buffer_hex: str) UserSecretKey[source]
multiversx_sdk.wallet.user_pem module
- class multiversx_sdk.wallet.user_pem.UserPEM(label: str, secret_key: UserSecretKey)[source]
Bases:
object
multiversx_sdk.wallet.user_signer module
- class multiversx_sdk.wallet.user_signer.UserSigner(secret_key: UserSecretKey)[source]
Bases:
objected25519 signer
- classmethod from_pem_file(path: Path, index: int = 0) UserSigner[source]
- classmethod from_pem_file_all(path: Path) list[UserSigner][source]
- classmethod from_wallet(path: Path, password: str) UserSigner[source]
- get_pubkey() UserPublicKey[source]
multiversx_sdk.wallet.user_verifer module
- class multiversx_sdk.wallet.user_verifer.UserVerifier(public_key: UserPublicKey)[source]
Bases:
object- classmethod from_address(address: Address) UserVerifier[source]
multiversx_sdk.wallet.user_wallet module
- class multiversx_sdk.wallet.user_wallet.UserWallet(kind: str, encrypted_data: EncryptedData, public_key_when_kind_is_secret_key: UserPublicKey | None = None)[source]
Bases:
objectDo not use this constructor directly. Use the static methods from_secret_key() and from_mnemonic() instead.
- classmethod decrypt_secret_key(keyfile_object: dict[str, Any], password: str) UserSecretKey[source]
- classmethod from_mnemonic(mnemonic: str, password: str, randomness: IRandomness | None = None) UserWallet[source]
- classmethod from_secret_key(secret_key: UserSecretKey, password: str, randomness: IRandomness | None = None) UserWallet[source]
- classmethod load_secret_key(path: Path, password: str, address_index: int | None = None) UserSecretKey[source]
Loads a secret key from a keystore file.
- Parameters:
path – The path to the keystore file.
password – The password to decrypt the keystore file.
address_index – The index of the address to load. This is only used when the keystore file contains a mnemonic, and the secret key has to be derived from this mnemonic.
multiversx_sdk.wallet.validator_keys module
- class multiversx_sdk.wallet.validator_keys.ValidatorPublicKey(buffer: bytes)[source]
Bases:
object- classmethod from_string(buffer_hex: str) ValidatorPublicKey[source]
- class multiversx_sdk.wallet.validator_keys.ValidatorSecretKey(buffer: bytes)[source]
Bases:
object- classmethod from_string(buffer_hex: str) ValidatorSecretKey[source]
- classmethod generate() ValidatorSecretKey[source]
- generate_public_key() ValidatorPublicKey[source]
multiversx_sdk.wallet.validator_pem module
- class multiversx_sdk.wallet.validator_pem.ValidatorPEM(label: str, secret_key: ValidatorSecretKey)[source]
Bases:
object- classmethod from_file(path: Path, index: int = 0) ValidatorPEM[source]
- classmethod from_file_all(path: Path) list[ValidatorPEM][source]
- classmethod from_text(text: str, index: int = 0) ValidatorPEM[source]
- classmethod from_text_all(text: str) list[ValidatorPEM][source]
multiversx_sdk.wallet.validator_signer module
- class multiversx_sdk.wallet.validator_signer.ValidatorSigner(secret_key: ValidatorSecretKey)[source]
Bases:
objectValidator signer (BLS signer)
- classmethod from_pem_file(path: Path, index: int = 0) ValidatorSigner[source]
- get_pubkey() ValidatorPublicKey[source]
multiversx_sdk.wallet.validator_verifier module
- class multiversx_sdk.wallet.validator_verifier.ValidatorVerifier(public_key: ValidatorPublicKey)[source]
Bases:
object- classmethod from_string(buffer_hex: str) ValidatorVerifier[source]
Module contents
- class multiversx_sdk.wallet.KeyPair(secret_key: UserSecretKey)[source]
Bases:
object- get_public_key() UserPublicKey[source]
- get_secret_key() UserSecretKey[source]
- class multiversx_sdk.wallet.Mnemonic(text: str)[source]
Bases:
object- derive_key(address_index: int = 0) UserSecretKey[source]
- class multiversx_sdk.wallet.UserPEM(label: str, secret_key: UserSecretKey)[source]
Bases:
object
- class multiversx_sdk.wallet.UserSecretKey(buffer: bytes)[source]
Bases:
object- classmethod generate() UserSecretKey[source]
- generate_public_key() UserPublicKey[source]
- classmethod new_from_string(buffer_hex: str) UserSecretKey[source]
- class multiversx_sdk.wallet.UserSigner(secret_key: UserSecretKey)[source]
Bases:
objected25519 signer
- classmethod from_pem_file(path: Path, index: int = 0) UserSigner[source]
- classmethod from_pem_file_all(path: Path) list[UserSigner][source]
- classmethod from_wallet(path: Path, password: str) UserSigner[source]
- get_pubkey() UserPublicKey[source]
- class multiversx_sdk.wallet.UserVerifier(public_key: UserPublicKey)[source]
Bases:
object- classmethod from_address(address: Address) UserVerifier[source]
- class multiversx_sdk.wallet.UserWallet(kind: str, encrypted_data: EncryptedData, public_key_when_kind_is_secret_key: UserPublicKey | None = None)[source]
Bases:
objectDo not use this constructor directly. Use the static methods from_secret_key() and from_mnemonic() instead.
- classmethod decrypt_secret_key(keyfile_object: dict[str, Any], password: str) UserSecretKey[source]
- classmethod from_mnemonic(mnemonic: str, password: str, randomness: IRandomness | None = None) UserWallet[source]
- classmethod from_secret_key(secret_key: UserSecretKey, password: str, randomness: IRandomness | None = None) UserWallet[source]
- classmethod load_secret_key(path: Path, password: str, address_index: int | None = None) UserSecretKey[source]
Loads a secret key from a keystore file.
- Parameters:
path – The path to the keystore file.
password – The password to decrypt the keystore file.
address_index – The index of the address to load. This is only used when the keystore file contains a mnemonic, and the secret key has to be derived from this mnemonic.
- class multiversx_sdk.wallet.ValidatorPEM(label: str, secret_key: ValidatorSecretKey)[source]
Bases:
object- classmethod from_file(path: Path, index: int = 0) ValidatorPEM[source]
- classmethod from_file_all(path: Path) list[ValidatorPEM][source]
- classmethod from_text(text: str, index: int = 0) ValidatorPEM[source]
- classmethod from_text_all(text: str) list[ValidatorPEM][source]
- class multiversx_sdk.wallet.ValidatorPublicKey(buffer: bytes)[source]
Bases:
object- classmethod from_string(buffer_hex: str) ValidatorPublicKey[source]
- class multiversx_sdk.wallet.ValidatorSecretKey(buffer: bytes)[source]
Bases:
object- classmethod from_string(buffer_hex: str) ValidatorSecretKey[source]
- classmethod generate() ValidatorSecretKey[source]
- generate_public_key() ValidatorPublicKey[source]
- class multiversx_sdk.wallet.ValidatorSigner(secret_key: ValidatorSecretKey)[source]
Bases:
objectValidator signer (BLS signer)
- classmethod from_pem_file(path: Path, index: int = 0) ValidatorSigner[source]
- get_pubkey() ValidatorPublicKey[source]
- class multiversx_sdk.wallet.ValidatorVerifier(public_key: ValidatorPublicKey)[source]
Bases:
object- classmethod from_string(buffer_hex: str) ValidatorVerifier[source]