EncryptionState
Holds AES key and encryption keypair derived from ECDH
Overview
Definition
@dataclass
class EncryptionState:
"""Holds the AES key and encryption keypair derived from ECDH.
Created by :func:`get_encryption` during client setup. Pure
computation - works in both sync and async contexts.
Attributes:
aes_key: 32-byte AES-256 key derived from ECDH + HKDF.
encryption_pubkey: Client's compressed secp256k1 public key.
encryption_private_key: Client's secp256k1 private key.
"""
aes_key: Bytes32
encryption_pubkey: CompressedPublicKey
encryption_private_key: PrivateKeyAttributes
Attribute
Type
Description
Methods
encrypt()
Signature
Parameters
Parameter
Type
Description
Returns
Type
Description
Example
decrypt()
Signature
Parameters
Parameter
Type
Description
Returns
Type
Description
Raises
Example
Examples
Access from Client
Manual Encryption Workflow
Custom Encryption Key
Verify Encryption/Decryption
How It Works
Initialization
Encryption
Decryption
AAD Binding
Notes
Security Considerations
See Also
Last updated

