Struct pallet_plasma::SimpleAddressDeterminer [−][src]
pub struct SimpleAddressDeterminer<T: Config>(_);
Expand description
Simple plapps address determiner.
Address calculated from the code (of the constructor), input data to the constructor, and the account id that requested the account creation.
Formula: blake2_256(plapps_hash + origin)
blake2_256(&aggregator_id),
blake2_256(&balances),
blake2_256(&state_update_predicate),
blake2_256(&exit_predicate),
blake2_256(&exit_deposit_predicate),
Trait Implementations
impl<T: Config> PlappsAddressFor<<T as Config>::Hash, <T as Config>::AccountId> for SimpleAddressDeterminer<T> where
T::AccountId: UncheckedFrom<T::Hash> + AsRef<[u8]>,
impl<T: Config> PlappsAddressFor<<T as Config>::Hash, <T as Config>::AccountId> for SimpleAddressDeterminer<T> where
T::AccountId: UncheckedFrom<T::Hash> + AsRef<[u8]>,
Auto Trait Implementations
impl<T> RefUnwindSafe for SimpleAddressDeterminer<T> where
T: RefUnwindSafe,
impl<T> Send for SimpleAddressDeterminer<T> where
T: Send,
impl<T> Sync for SimpleAddressDeterminer<T> where
T: Sync,
impl<T> Unpin for SimpleAddressDeterminer<T> where
T: Unpin,
impl<T> UnwindSafe for SimpleAddressDeterminer<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
The counterpart to unchecked_from
.
Consume self to return an equivalent value of T
.
pub fn vzip(self) -> V
impl<T> MaybeRefUnwindSafe for T where
T: RefUnwindSafe,