RangeProof

# 使用频率次之

/// A range proof. Typically much larger in memory that the above (~5k).
#[derive(Copy)]
pub struct RangeProof {
    /// The proof itself, at most 5134 bytes long
    pub proof: [u8; constants::MAX_PROOF_SIZE],
    /// The length of the proof
    pub plen: usize,
}

#[cfg(feature = "bullet-proof-sizing")]
pub const MAX_PROOF_SIZE: usize = 674;
/// The max size of a range proof
#[cfg(not(feature = "bullet-proof-sizing"))]
pub const MAX_PROOF_SIZE: usize = 5134;

ProofMessage

ProofInfo

其它:当前一个“证明”(Proof)超过1w字符,按一字节等于两字符计算,约5k大小。

results matching ""

    No results matching ""