pub struct Ed25519Signer { /* private fields */ }Expand description
Ed25519 ArtifactSigner.
Implementations§
Source§impl Ed25519Signer
impl Ed25519Signer
Sourcepub fn new(key: SigningKey, kid: impl Into<String>) -> Ed25519Signer
pub fn new(key: SigningKey, kid: impl Into<String>) -> Ed25519Signer
Wraps a signing key with its key identifier.
Sourcepub fn verifying_key(&self) -> VerifyingKey
pub fn verifying_key(&self) -> VerifyingKey
The public key matching this signer.
Trait Implementations§
Source§impl ArtifactSigner for Ed25519Signer
impl ArtifactSigner for Ed25519Signer
Source§fn kid(&self) -> &str
fn kid(&self) -> &str
Key identifier (SPIFFE ID, DID, URL, …) placed in the COSE protected
header.
Source§fn cose_algorithm(&self) -> SigningAlgorithm
fn cose_algorithm(&self) -> SigningAlgorithm
COSE algorithm this signer produces.
Source§fn jws_algorithm(&self) -> &str
fn jws_algorithm(&self) -> &str
JOSE
alg value for JWS signatures (for example "EdDSA").Source§impl Clone for Ed25519Signer
impl Clone for Ed25519Signer
Source§fn clone(&self) -> Ed25519Signer
fn clone(&self) -> Ed25519Signer
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for Ed25519Signer
impl RefUnwindSafe for Ed25519Signer
impl Send for Ed25519Signer
impl Sync for Ed25519Signer
impl Unpin for Ed25519Signer
impl UnsafeUnpin 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