Enum rgb::schema::DiscreteFiniteFieldFormat[][src]

#[non_exhaustive]
#[repr(u8)]pub enum DiscreteFiniteFieldFormat {
    Unsigned64bit,
}

Today we support only a single format of confidential data, because of the limitations of the underlying secp256k1-zkp library: it works only with u64 numbers. Nevertheless, homomorphic commitments can be created to everything that has up to 256 bits and commutative arithmetics, so in the future we plan to support more types. We reserve this possibility by internally encoding [ConfidentialFormat] with the same type specification details as used for [DateFormat]

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unsigned64bit

Trait Implementations

impl Clone for DiscreteFiniteFieldFormat[src]

impl Debug for DiscreteFiniteFieldFormat[src]

impl<'de> Deserialize<'de> for DiscreteFiniteFieldFormat[src]

impl Display for DiscreteFiniteFieldFormat[src]

impl FromPrimitive for DiscreteFiniteFieldFormat[src]

impl PartialEq<DiscreteFiniteFieldFormat> for DiscreteFiniteFieldFormat[src]

impl Serialize for DiscreteFiniteFieldFormat[src]

impl StrictDecode for DiscreteFiniteFieldFormat[src]

impl StrictEncode for DiscreteFiniteFieldFormat[src]

impl StructuralPartialEq for DiscreteFiniteFieldFormat[src]

impl ToPrimitive for DiscreteFiniteFieldFormat[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,