Skip to main content

Module encryption

Module encryption 

Source

Enums§

EncryptionError

Constants§

KEY_LEN

Functions§

decrypt
Decrypt sealed box bytes back to plaintext bytes.
ed25519_pubkey_to_x25519
Convert an Ed25519 public key into an X25519 public key.
ed25519_secret_to_x25519
Convert an Ed25519 secret key into an X25519 secret key.
encrypt_ed25519_recipient
High-level API: encrypt for validator using sealed boxes.
keypair_to_x25519_secret
Convenience helper for SDK usage: derive X25519 secret key bytes from a Solana Keypair.