pub struct PublicKey(/* private fields */);Expand description
secp256k1 (K-256) public key.
Implementations§
Trait Implementations§
Source§impl FromStr for PublicKey
impl FromStr for PublicKey
Source§fn from_str(public_key: &str) -> Result<Self, Self::Err>
fn from_str(public_key: &str) -> Result<Self, Self::Err>
Parse a string into a public key
§Example
use zilliqa_rs::core::PublicKey;
let public_key: PublicKey = "03bfad0f0b53cff5213b5947f3ddd66acee8906aba3610c111915aecc84092e052"
.parse()
.unwrap();
assert_eq!(
public_key.to_string(),
"03bfad0f0b53cff5213b5947f3ddd66acee8906aba3610c111915aecc84092e052"
);Auto Trait Implementations§
impl Freeze for PublicKey
impl RefUnwindSafe for PublicKey
impl Send for PublicKey
impl Sync for PublicKey
impl Unpin for PublicKey
impl UnwindSafe for PublicKey
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