/// Generate commitments for Transaction by wallet secrets
Generate commitments for Transaction by wallet secrets
Generate commitments for Transaction by wallet secrets
pub fn generate_commitments(
        &self,
        tx_context: TransactionContext<UnsignedTransaction>,
        state_context: &ErgoStateContext,
    ) -> Result<TransactionHintsBag, TxSigningError> {
        let public_keys: Vec<SigmaBoolean> = self
            .prover
            .secrets()
            .iter()
            .map(|secret| secret.public_image())
            .collect();
        generate_commitments(tx_context, state_context, public_keys.as_slice())
    }
pub fn generate_commitments ( & self , tx_context : TransactionContext < UnsignedTransaction > , state_context : & ErgoStateContext , ) -> Result < TransactionHintsBag , TxSigningError > { let public_keys : Vec < SigmaBoolean > = self . prover . secrets ( ) . iter ( ) . map ( | secret | secret . public_image ( ) ) . collect ( ) ; generate_commitments ( tx_context , state_context , public_keys . as_slice ( ) ) }
Generate commitments for Transaction by wallet secrets
Generate commitments for Transaction by wallet secrets
&self
tx_context
TransactionContext<UnsignedTransaction>
state_context
&ErgoStateContext