pub struct Ed25519Signer { /* private fields */ }Expand description
Ed25519 signer using ed25519-dalek.
Implementations§
Source§impl Ed25519Signer
impl Ed25519Signer
pub fn new( signing_key: SigningKey, key_name: Name, cert_name: Option<Name>, ) -> Self
Sourcepub fn from_seed(seed: &[u8; 32], key_name: Name) -> Self
pub fn from_seed(seed: &[u8; 32], key_name: Name) -> Self
Construct from raw 32-byte seed bytes.
Sourcepub fn public_key_bytes(&self) -> [u8; 32]
pub fn public_key_bytes(&self) -> [u8; 32]
Return the 32-byte compressed Ed25519 public key (verifying key).
Trait Implementations§
Source§impl Signer for Ed25519Signer
impl Signer for Ed25519Signer
fn sig_type(&self) -> SignatureType
fn key_name(&self) -> &Name
Source§fn cert_name(&self) -> Option<&Name>
fn cert_name(&self) -> Option<&Name>
The certificate name to embed as a key locator in SignatureInfo, if any.
Source§fn public_key(&self) -> Option<Bytes>
fn public_key(&self) -> Option<Bytes>
Return the raw public key bytes, if available.
fn sign<'a>( &'a self, region: &'a [u8], ) -> Pin<Box<dyn Future<Output = Result<Bytes, TrustError>> + Send + 'a>>
Auto Trait Implementations§
impl !Freeze for Ed25519Signer
impl RefUnwindSafe for Ed25519Signer
impl Send for Ed25519Signer
impl Sync for Ed25519Signer
impl Unpin for Ed25519Signer
impl UnwindSafe for Ed25519Signer
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