Skip to main content

extract_enc_ciphertext

Function extract_enc_ciphertext 

Source
pub fn extract_enc_ciphertext(
    raw_tx: &[u8],
    cmx: &[u8; 32],
    epk: &[u8; 32],
) -> Option<[u8; 580]>
Expand description

Extract the 580-byte enc_ciphertext for an action matching cmx+epk from raw tx bytes.

V5 orchard action layout: cv(32) + nf(32) + rk(32) + cmx(32) + epk(32) + enc(580) + out(80) = 820 bytes enc_ciphertext immediately follows epk within each action.