get_encryption
Derive encryption state from TEE public key using ECDH
Overview
Signature
def get_encryption(
network_pk: CompressedPublicKey,
client_sk: PrivateKey | None = None,
) -> EncryptionStateParameters
Parameter
Type
Required
Description
Returns
Type
Description
Examples
Basic Usage
With Custom Client Key
In Client Factory
Random Ephemeral Key
Verify Key Derivation
How It Works
ECDH Key Exchange
Random vs Deterministic Keys
Key Type
Pros
Cons
Notes
Security Considerations
Common Patterns
Ephemeral Session Keys
Persistent Keys
Rotate Keys
See Also
Last updated

