Skip to main content

compute_storage_key

Function compute_storage_key 

Source
pub fn compute_storage_key(
    wormhole_address: &[u8; 32],
    transfer_count: u64,
) -> Vec<u8> 
Expand description

Compute the storage key for a transfer proof.

The storage key is: Twox128(“Wormhole”) || Twox128(“TransferProof”) || Blake2_256(wormhole_address, transfer_count)

§Arguments

  • wormhole_address - The unspendable wormhole account as 32 bytes
  • transfer_count - The atomic transfer counter

§Returns

Full storage key as bytes