Contract State Encryption
Encryption at deployment of contract
1. Create contract_key
contract_keysigner_id = sha256(concat(msg_sender, block_height));
authentication_key = hkdf({
salt: hkdf_salt,
info: "contract_key",
ikm: concat(consensus_state_ikm, signer_id),
});2. At execution share contract_key with enclave
contract_key with enclave3. Callback function logic
Last updated
Was this helpful?