Type Alias chain_impl_mockchain::key::SpendingPublicKey
source · pub type SpendingPublicKey = PublicKey<Ed25519>;
Aliased Type§
struct SpendingPublicKey(pub(crate) Pub);
Fields§
§0: Pub
Implementations§
§impl<A> PublicKey<A>where
A: AsymmetricPublicKey,
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,
impl<A> Arbitrary for PublicKey<A>where A: AsymmetricPublicKey + 'static, <A as AsymmetricPublicKey>::Public: Arbitrary,
§type Parameters = ()
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>>
type Strategy = BoxedStrategy<PublicKey<A>>
The type of
Strategy
used to generate values of type Self
.§fn arbitrary_with(_: ()) -> <PublicKey<A> as Arbitrary>::Strategy
fn arbitrary_with(_: ()) -> <PublicKey<A> as Arbitrary>::Strategy
§impl<A> Bech32 for PublicKey<A>where
A: AsymmetricPublicKey,
impl<A> Bech32 for PublicKey<A>where A: AsymmetricPublicKey,
§const BECH32_HRP: &'static str = A::PUBLIC_BECH32_HRP
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.
§fn try_from_bech32_str(bech32_str: &str) -> Result<PublicKey<A>, Error>
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
fn to_bech32_str(&self) -> String
Produces a Bech32 string format representation of the object.
source§impl From<CommitteeId> for PublicKey<Ed25519>
impl From<CommitteeId> for PublicKey<Ed25519>
source§fn from(id: CommitteeId) -> Self
fn from(id: CommitteeId) -> Self
Converts to this type from the input type.
source§impl From<Identifier> for PublicKey<AccountAlg>
impl From<Identifier> for PublicKey<AccountAlg>
source§fn from(i: Identifier) -> Self
fn from(i: Identifier) -> Self
Converts to this type from the input type.
§impl<A> Ord for PublicKey<A>where
A: AsymmetricPublicKey,
impl<A> Ord for PublicKey<A>where A: AsymmetricPublicKey,
§impl<A> PartialEq<PublicKey<A>> for PublicKey<A>where
A: AsymmetricPublicKey,
impl<A> PartialEq<PublicKey<A>> for PublicKey<A>where A: AsymmetricPublicKey,
§impl<A> PartialOrd<PublicKey<A>> for PublicKey<A>where
A: AsymmetricPublicKey,
impl<A> PartialOrd<PublicKey<A>> for PublicKey<A>where A: AsymmetricPublicKey,
§fn partial_cmp(&self, other: &PublicKey<A>) -> Option<Ordering>
fn partial_cmp(&self, other: &PublicKey<A>) -> Option<Ordering>
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 more