[−][src]Struct poseidon252::StorageScalar
This struct is a Wrapper type over the bls12-381 Scalar
which has implemented
inside the logic to allows Kelvin
Merkle Trees understand how to store Scalar
s
inside of their leaves.
This Struct is the one that we will use inside of our SmartContract storage logic to
encode/compress all of our Data Structures data into a single Scalar
.
Trait Implementations
impl AsRef<StorageScalar> for PoseidonAnnotation
fn as_ref(&self) -> &StorageScalar
impl AsRef<StorageScalar> for PoseidonAnnotation
fn as_ref(&self) -> &StorageScalar
impl Borrow<Scalar> for StorageScalar
[src]
impl Borrow<StorageScalar> for PoseidonAnnotation
fn borrow(&self) -> &StorageScalar
impl<'__a> Borrow<StorageScalar> for &'__a PoseidonAnnotation
fn borrow(&self) -> &StorageScalar
impl Borrow<StorageScalar> for PoseidonAnnotation
fn borrow(&self) -> &StorageScalar
impl<'__a> Borrow<StorageScalar> for &'__a PoseidonAnnotation
fn borrow(&self) -> &StorageScalar
impl Clone for StorageScalar
[src]
fn clone(&self) -> StorageScalar
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<A> Combine<A> for StorageScalar
[src]
fn combine<E>(elements: &[E]) -> Option<Self> where
A: Borrow<Self> + Clone,
E: ErasedAnnotation<A>,
[src]
A: Borrow<Self> + Clone,
E: ErasedAnnotation<A>,
This implements the logic that Kelvin needs in order to know how to hash an entire merkle tree level.
It includes the generation of the bitflags logic inside of it.
impl<H> Content<H> for StorageScalar where
H: ByteHash,
[src]
H: ByteHash,
fn persist(&mut self, sink: &mut Sink<H>) -> Result<()>
[src]
fn restore(source: &mut Source<H>) -> Result<Self>
[src]
impl Debug for StorageScalar
[src]
impl Default for StorageScalar
[src]
impl<'_> From<&'_ StorageScalar> for StorageScalar
[src]
fn from(s: &StorageScalar) -> Self
[src]
impl From<u64> for StorageScalar
[src]
fn from(val: u64) -> StorageScalar
[src]
impl Into<Scalar> for StorageScalar
[src]
Auto Trait Implementations
impl RefUnwindSafe for StorageScalar
impl Send for StorageScalar
impl Sync for StorageScalar
impl Unpin for StorageScalar
impl UnwindSafe for StorageScalar
Blanket Implementations
impl<A, L, H> Annotation<L, H> for A where
A: 'static + Combine<A> + for<'any> From<&'any L> + Content<H>,
H: ByteHash,
A: 'static + Combine<A> + for<'any> From<&'any L> + Content<H>,
H: ByteHash,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<A, T> Combine<A> for T where
T: Associative + Clone,
T: Associative + Clone,
impl<T> Erased for T
impl<T> Erased for T
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,