Function dflow_sdk::client::instructions::update_encryption_key
source · [−]pub fn update_encryption_key(
program: &Program,
market_maker_account_owner: Pubkey,
encryption_pub_key: [u8; 32],
market_maker_data_account: Pubkey
) -> Instruction
Expand description
This instruction updates the market maker’s 256-bit X25519 public key.
Retail traders use the market maker’s 256-bit X25519 public key to encrypt their order details when routing orders to the market maker. This instruction updates the market maker’s X25519 public key.
Arguments
market_maker_account_owner
The public key of the market_maker_account_owner account.encryption_pub_key
The market maker’s 256-bit X25519 public key which will be used by retail traders to encrypt their order detailsmarket_maker_data_account
The account storing state specific to the market maker. This account must be owned by the DFlow program, and this account must be initialized by calling the initialize market maker instruction. This account is expected to be mutable
Returns an instruction