Skip to main content

encrypt_commitment

Function encrypt_commitment 

Source
pub fn encrypt_commitment(
    data: &str,
    blocks_until_reveal: u64,
    block_time: f64,
) -> Result<(Vec<u8>, u64), CoreError>
Expand description

Encrypt a string commitment to the round blocks_until_reveal blocks from now. Returns (ciphertext, reveal_round).