pub struct PublicKey(pub [u8; 32]);Expand description
Ed25519 の公開鍵。catapult の Key と同じく、曲線上の点かどうかは確かめず32バイトとして扱う。
文字列にするときは、Symbol の慣習に合わせて大文字の16進にする。
Tuple Fields§
§0: [u8; 32]Implementations§
Source§impl PublicKey
impl PublicKey
Sourcepub fn from_private_key(private_key: &PrivateKey) -> Self
pub fn from_private_key(private_key: &PrivateKey) -> Self
秘密鍵から導出する。catapult の crypto/KeyPair.cpp と同じく、RFC 8032 の Ed25519(SHA-512)。
Trait Implementations§
impl Copy for PublicKey
impl Eq for PublicKey
impl StructuralPartialEq for PublicKey
Auto Trait Implementations§
impl Freeze for PublicKey
impl RefUnwindSafe for PublicKey
impl Send for PublicKey
impl Sync for PublicKey
impl Unpin for PublicKey
impl UnsafeUnpin 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