Struct rings_core::ecc::PublicKey
source · Expand description
PublicKey for ECDSA and EdDSA.
Tuple Fields§
§0: [u8; 33]Implementations§
source§impl PublicKey
impl PublicKey
sourcepub fn try_from_b58t(value: &str) -> Result<PublicKey>
pub fn try_from_b58t(value: &str) -> Result<PublicKey>
trezor style b58
sourcepub fn try_from_b58m(value: &str) -> Result<PublicKey>
pub fn try_from_b58m(value: &str) -> Result<PublicKey>
monero and bitcoin style b58
sourcepub fn try_from_b58m_uncheck(value: &str) -> Result<PublicKey>
pub fn try_from_b58m_uncheck(value: &str) -> Result<PublicKey>
monero style uncheck base56
sourcepub fn to_base58_string(&self) -> Result<String>
pub fn to_base58_string(&self) -> Result<String>
convert pubkey to base58_string
Trait Implementations§
source§impl<'de> Deserialize<'de> for PublicKey
impl<'de> Deserialize<'de> for PublicKey
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<PublicKey> for PublicKey
impl PartialEq<PublicKey> for PublicKey
impl Copy for PublicKey
impl Eq for PublicKey
impl StructuralEq for PublicKey
impl StructuralPartialEq for PublicKey
Auto Trait Implementations§
impl RefUnwindSafe for PublicKey
impl Send for PublicKey
impl Sync for PublicKey
impl Unpin for PublicKey
impl UnwindSafe for PublicKey
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.