multiversx_sdk.wallet.crypto package

Submodules

multiversx_sdk.wallet.crypto.decryptor module

multiversx_sdk.wallet.crypto.decryptor.decrypt(encrypted_data: EncryptedData, password: str) bytes[source]

Also see: https://github.com/multiversx/mx-sdk-js-wallet/blob/main/src/crypto/decryptor.ts

multiversx_sdk.wallet.crypto.encrypted_data module

class multiversx_sdk.wallet.crypto.encrypted_data.EncryptedData(id: str, version: int, cipher: str, ciphertext: str, iv: str, kdf: str, kdfparams: KeyDerivationParams, salt: str, mac: str)[source]

Bases: object

classmethod from_keyfile_object(keyfile_object: dict[str, Any]) EncryptedData[source]
class multiversx_sdk.wallet.crypto.encrypted_data.KeyDerivationParams(n: int, r: int, p: int, dklen: int)[source]

Bases: object

multiversx_sdk.wallet.crypto.encryptor module

multiversx_sdk.wallet.crypto.encryptor.encrypt(data: bytes, password: str, randomness: IRandomness) EncryptedData[source]

Also see: https://github.com/multiversx/mx-sdk-js-wallet/blob/main/src/crypto/encryptor.ts

multiversx_sdk.wallet.crypto.randomness module

class multiversx_sdk.wallet.crypto.randomness.Randomness(salt: bytes | None = None, iv: bytes | None = None, id: str | None = None)[source]

Bases: object

Module contents

class multiversx_sdk.wallet.crypto.EncryptedData(id: str, version: int, cipher: str, ciphertext: str, iv: str, kdf: str, kdfparams: KeyDerivationParams, salt: str, mac: str)[source]

Bases: object

classmethod from_keyfile_object(keyfile_object: dict[str, Any]) EncryptedData[source]
class multiversx_sdk.wallet.crypto.Randomness(salt: bytes | None = None, iv: bytes | None = None, id: str | None = None)[source]

Bases: object