Enum rgbstd::contract::RangeProof
source · pub enum RangeProof {
Placeholder(NoiseDumb),
}Expand description
Range proof value.
Range proofs must be used alongside PedersenCommitments 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<RangeProof> for RangeProof
impl PartialEq<RangeProof> for RangeProof
source§fn eq(&self, other: &RangeProof) -> bool
fn eq(&self, other: &RangeProof) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<RangeProof> for RangeProof
impl PartialOrd<RangeProof> for RangeProof
source§fn partial_cmp(&self, other: &RangeProof) -> Option<Ordering>
fn partial_cmp(&self, other: &RangeProof) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§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>
source§impl StrictEncode for RangeProof
impl StrictEncode for RangeProof
fn strict_encode<W>(&self, writer: W) -> Result<W, Error>where W: TypedWrite,
source§impl StrictSum for RangeProof
impl StrictSum for RangeProof
const ALL_VARIANTS: &'static [(u8, &'static str)] = &[(255 as u8, "placeholder")]
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 StructuralEq for RangeProof
impl StructuralPartialEq for RangeProof
Auto Trait Implementations§
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.