pub fn encode_commit_reveal(
env: &Env,
commitment: &BytesN<32>,
reveal_deadline: u64,
revealed: bool,
) -> BytesExpand description
Encode a commit-reveal component as Bytes.
Layout: [commitment: 32 bytes | reveal_deadline: u64 (8 bytes) | revealed: u8 (1 byte)].
Total: 41 bytes.