pub struct SigningKeyPair { /* private fields */ }Expand description
An Ed25519 signing keypair — the fighter’s secret identity in the ring.
Wraps ed25519_dalek::SigningKey and provides convenient methods for
signing manifests and serializing keys to hex strings.
Implementations§
Source§impl SigningKeyPair
impl SigningKeyPair
Sourcepub fn from_bytes(bytes: &[u8; 32]) -> Self
pub fn from_bytes(bytes: &[u8; 32]) -> Self
Create a SigningKeyPair from raw secret key bytes (32 bytes).
Sourcepub fn from_hex(hex: &str) -> Result<Self, SigningError>
pub fn from_hex(hex: &str) -> Result<Self, SigningError>
Reconstruct a SigningKeyPair from a hex-encoded secret key.
Sourcepub fn secret_key_hex(&self) -> String
pub fn secret_key_hex(&self) -> String
Return the secret key as a hex-encoded string.
Sourcepub fn verifying_key(&self) -> VerifyingKey
pub fn verifying_key(&self) -> VerifyingKey
Return the corresponding verifying (public) key.
Sourcepub fn verifying_key_hex(&self) -> String
pub fn verifying_key_hex(&self) -> String
Return the verifying key as a hex-encoded string.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SigningKeyPair
impl RefUnwindSafe for SigningKeyPair
impl Send for SigningKeyPair
impl Sync for SigningKeyPair
impl Unpin for SigningKeyPair
impl UnsafeUnpin for SigningKeyPair
impl UnwindSafe for SigningKeyPair
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