pub type AccountPublicKey = PublicKey<Ed25519>;

Aliased Type§

struct AccountPublicKey(pub(crate) Pub);

Fields§

§0: Pub

Implementations§

§

impl<A> PublicKey<A>where A: AsymmetricPublicKey,

pub fn from_binary(data: &[u8]) -> Result<PublicKey<A>, PublicKeyError>

pub fn inner(self) -> <A as AsymmetricPublicKey>::Public

Trait Implementations§

§

impl<A> Arbitrary for PublicKey<A>where A: AsymmetricPublicKey + 'static, <A as AsymmetricPublicKey>::Public: Arbitrary,

§

type Parameters = ()

The type of parameters that arbitrary_with accepts for configuration of the generated Strategy. Parameters must implement Default.
§

type Strategy = BoxedStrategy<PublicKey<A>>

The type of Strategy used to generate values of type Self.
§

fn arbitrary_with(_: ()) -> <PublicKey<A> as Arbitrary>::Strategy

Generates a Strategy for producing arbitrary values of type the implementing type (Self). The strategy is passed the arguments given in args. Read more
§

fn arbitrary() -> Self::Strategy

Generates a Strategy for producing arbitrary values of type the implementing type (Self). Read more
§

impl<A> AsRef<[u8]> for PublicKey<A>where A: AsymmetricPublicKey,

§

fn as_ref(&self) -> &[u8]

Converts this type into a shared reference of the (usually inferred) input type.
§

impl<A> Bech32 for PublicKey<A>where A: AsymmetricPublicKey,

§

const BECH32_HRP: &'static str = A::PUBLIC_BECH32_HRP

The human-readable prefix that is used to represent the the object in the Bech32 format. On decoding, the HRP of the input string is checked against this value.
§

const BYTES_LEN: usize = A::PUBLIC_KEY_SIZE

Length of the encoded binary data.
§

fn try_from_bech32_str(bech32_str: &str) -> Result<PublicKey<A>, Error>

Decodes the object from its Bech32 string representation.
§

fn to_bech32_str(&self) -> String

Produces a Bech32 string format representation of the object.
§

impl<A> Clone for PublicKey<A>where A: AsymmetricPublicKey,

§

fn clone(&self) -> PublicKey<A>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl<A> Debug for PublicKey<A>where A: AsymmetricPublicKey,

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<A> Display for PublicKey<A>where A: AsymmetricPublicKey,

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl From<CommitteeId> for PublicKey<Ed25519>

source§

fn from(id: CommitteeId) -> Self

Converts to this type from the input type.
source§

impl From<Identifier> for PublicKey<AccountAlg>

source§

fn from(i: Identifier) -> Self

Converts to this type from the input type.
§

impl<A> FromStr for PublicKey<A>where A: AsymmetricPublicKey,

§

type Err = PublicKeyFromStrError

The associated error which can be returned from parsing.
§

fn from_str(hex: &str) -> Result<PublicKey<A>, <PublicKey<A> as FromStr>::Err>

Parses a string s to return a value of this type. Read more
§

impl<A> Hash for PublicKey<A>where A: AsymmetricPublicKey,

§

fn hash<H>(&self, state: &mut H)where H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
§

impl<A> Ord for PublicKey<A>where A: AsymmetricPublicKey,

§

fn cmp(&self, other: &PublicKey<A>) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>,

Restrict a value to a certain interval. Read more
§

impl<A> PartialEq<PublicKey<A>> for PublicKey<A>where A: AsymmetricPublicKey,

§

fn eq(&self, other: &PublicKey<A>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl<A> PartialOrd<PublicKey<A>> for PublicKey<A>where A: AsymmetricPublicKey,

§

fn partial_cmp(&self, other: &PublicKey<A>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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 more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
§

impl<A> Eq for PublicKey<A>where A: AsymmetricPublicKey,