Enum chain_addr::Kind
source · pub enum Kind {
Single(PublicKey<Ed25519>),
Group(PublicKey<Ed25519>, PublicKey<Ed25519>),
Account(PublicKey<Ed25519>),
Multisig([u8; 32]),
Script([u8; 32]),
}
Expand description
Kind of an address, which include the possible variation of scheme
- Single address : just a single ed25519 spending public key
- Group address : an ed25519 spending public key followed by a group public key used for staking
- Account address : an ed25519 stake public key
- Multisig address : a multisig public key
Variants§
Single(PublicKey<Ed25519>)
Group(PublicKey<Ed25519>, PublicKey<Ed25519>)
Account(PublicKey<Ed25519>)
Multisig([u8; 32])
Script([u8; 32])
Trait Implementations§
source§impl Arbitrary for Kind
impl Arbitrary for Kind
§type Parameters = ()
type Parameters = ()
The type of parameters that
arbitrary_with
accepts for configuration
of the generated Strategy
. Parameters must implement Default
.source§fn arbitrary_with(args: <Self as Arbitrary>::Parameters) -> Self::Strategy
fn arbitrary_with(args: <Self as Arbitrary>::Parameters) -> Self::Strategy
source§impl Ord for Kind
impl Ord for Kind
source§impl PartialEq<Kind> for Kind
impl PartialEq<Kind> for Kind
source§impl PartialOrd<Kind> for Kind
impl PartialOrd<Kind> for Kind
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 moreimpl Eq for Kind
impl StructuralEq for Kind
impl StructuralPartialEq for Kind
Auto Trait Implementations§
impl RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl UnwindSafe for Kind
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