pub enum RangeProof {
Placeholder(NoiseDumb),
}
Expand description
Range proof value.
Range proofs must be used alongside PedersenCommitment
s to ensure that
the value do not overflow on arithmetic operations with the commitments.
Variants§
Placeholder(NoiseDumb)
Value used when bulletproofs library is not available.
Always fails validation if no source value is given.
Trait Implementations§
Source§impl Clone for RangeProof
impl Clone for RangeProof
Source§fn clone(&self) -> RangeProof
fn clone(&self) -> RangeProof
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RangeProof
impl Debug for RangeProof
Source§impl Default for RangeProof
impl Default for RangeProof
Source§fn default() -> RangeProof
fn default() -> RangeProof
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RangeProof
impl<'de> Deserialize<'de> for RangeProof
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RangeProof, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RangeProof, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for RangeProof
impl Hash for RangeProof
Source§impl Ord for RangeProof
impl Ord for RangeProof
Source§fn cmp(&self, other: &RangeProof) -> Ordering
fn cmp(&self, other: &RangeProof) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for RangeProof
impl PartialEq for RangeProof
Source§impl PartialOrd for RangeProof
impl PartialOrd for RangeProof
Source§impl Serialize for RangeProof
impl Serialize for RangeProof
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl StrictDecode for RangeProof
impl StrictDecode for RangeProof
fn strict_decode(reader: &mut impl TypedRead) -> Result<RangeProof, DecodeError>
fn strict_read(lim: usize, reader: impl Read) -> Result<Self, DecodeError>
Source§impl StrictEncode for RangeProof
impl StrictEncode for RangeProof
fn strict_encode<W>(&self, writer: W) -> Result<W, Error>where
W: TypedWrite,
fn strict_write(&self, lim: usize, writer: impl Write) -> Result<usize, Error>
Source§impl StrictSum for RangeProof
impl StrictSum for RangeProof
const ALL_VARIANTS: &'static [(u8, &'static str)]
fn variant_name(&self) -> &'static str
fn strict_check_variants()
fn variant_name_by_tag(tag: u8) -> Option<FieldName>
fn variant_ord(&self) -> u8
Source§impl StrictType for RangeProof
impl StrictType for RangeProof
const STRICT_LIB_NAME: &'static str = LIB_NAME_RGB
fn strict_name() -> Option<TypeName>
Source§impl StrictUnion for RangeProof
impl StrictUnion for RangeProof
fn strict_type_info() -> TypeInfo<Self>
impl Copy for RangeProof
impl Eq for RangeProof
impl StructuralPartialEq for RangeProof
Auto Trait Implementations§
impl Freeze for RangeProof
impl RefUnwindSafe for RangeProof
impl Send for RangeProof
impl Sync for RangeProof
impl Unpin for RangeProof
impl UnwindSafe for RangeProof
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.