Struct lair_keystore_api::entry::EntrySignEd25519 [−][src]
pub struct EntrySignEd25519 {
pub priv_key: SignEd25519PrivKey,
pub pub_key: SignEd25519PubKey,
}
Expand description
File format entry representing Sign Ed25519 Keypair data.
Fields
priv_key: SignEd25519PrivKey
Private key bytes. @todo - once we’re integrated with sodoken, make this a priv buffer.
pub_key: SignEd25519PubKey
Public key bytes.
Implementations
Encode this entry for writing to disk. @todo - once we’re integrated with sodoken, this should encrypt too otherwise we’re writing our priv key to unprotected memory.
pub fn sign(
&self,
message: Arc<Vec<u8>>
) -> impl Future<Output = LairResult<SignEd25519Signature>> + 'static
pub fn sign(
&self,
message: Arc<Vec<u8>>
) -> impl Future<Output = LairResult<SignEd25519Signature>> + 'static
Create a signature for given message with this entry’s priv_key.
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for EntrySignEd25519
impl Send for EntrySignEd25519
impl Sync for EntrySignEd25519
impl Unpin for EntrySignEd25519
impl UnwindSafe for EntrySignEd25519
Blanket Implementations
Mutably borrows from an owned value. Read more
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more