pub struct Ed25519AssertionSigner { /* private fields */ }Expand description
Ed25519 assertion signer.
This implementation signs MRVB assertion claims using Ed25519.
Implementations§
Source§impl Ed25519AssertionSigner
impl Ed25519AssertionSigner
Sourcepub fn generate(config: MrvbConfig) -> MrvbResult<Self>
pub fn generate(config: MrvbConfig) -> MrvbResult<Self>
Generate a new Ed25519 keypair for signing.
Sourcepub fn from_keyset(config: MrvbConfig, keyset: KeyPairSet) -> MrvbResult<Self>
pub fn from_keyset(config: MrvbConfig, keyset: KeyPairSet) -> MrvbResult<Self>
Load an Ed25519 signer from an existing keypair.
Sourcepub fn verifying_key(&self) -> &VerifyingKey
pub fn verifying_key(&self) -> &VerifyingKey
Get the public verifying key.
Sourcepub fn export_keyset(&self) -> &KeyPairSet
pub fn export_keyset(&self) -> &KeyPairSet
Export the keyset for storage or transmission.
Sourcepub fn export_public_key_bytes(&self) -> Vec<u8> ⓘ
pub fn export_public_key_bytes(&self) -> Vec<u8> ⓘ
Export the public key as bytes.
Trait Implementations§
Source§impl MrvbAssertionSigner for Ed25519AssertionSigner
impl MrvbAssertionSigner for Ed25519AssertionSigner
Source§fn sign_assertion<'life0, 'life1, 'async_trait>(
&'life0 self,
claims: &'life1 AssertionClaims,
) -> Pin<Box<dyn Future<Output = MrvbResult<SignedAssertion>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn sign_assertion<'life0, 'life1, 'async_trait>(
&'life0 self,
claims: &'life1 AssertionClaims,
) -> Pin<Box<dyn Future<Output = MrvbResult<SignedAssertion>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Sign assertion claims to create a signed assertion token.
Source§fn current_keyset_id(&self) -> &str
fn current_keyset_id(&self) -> &str
Get the current keyset ID being used for signing.
Source§fn verifier(&self) -> Box<dyn MrvbAssertionVerifier>
fn verifier(&self) -> Box<dyn MrvbAssertionVerifier>
Create a verifier from this signer’s public keys.
Auto Trait Implementations§
impl Freeze for Ed25519AssertionSigner
impl RefUnwindSafe for Ed25519AssertionSigner
impl Send for Ed25519AssertionSigner
impl Sync for Ed25519AssertionSigner
impl Unpin for Ed25519AssertionSigner
impl UnsafeUnpin for Ed25519AssertionSigner
impl UnwindSafe for Ed25519AssertionSigner
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