Function generate_commitments

Source
pub fn generate_commitments(
    tx_context: TransactionContext<UnsignedTransaction>,
    state_context: &ErgoStateContext,
    public_keys: &[SigmaBoolean],
) -> Result<TransactionHintsBag, TxSigningError>
Expand description

A method which is generating commitments to randomness. A commitment is about a first step of a zero-knowledge proof-of-knowledge knowledge protocol. the commitments are generated for every input box of transaction and return as TransactionHintsBag. generated commitments corresponds to public_keys that prepared in function input