commit

Function commit 

Source
pub fn commit(value: u64) -> (PedersenCommitment, PedersenOpening)
Expand description

Commit to a value using Pedersen commitment.

Returns (commitment, opening) pair.

§Arguments

  • value - The value to commit to (e.g., bandwidth in bytes)

§Example

use chie_crypto::pedersen::commit;

let (commitment, opening) = commit(1024);