pub struct SignedAuthChallenge {
pub signature_hex: String,
pub public_key_hex: String,
pub did: String,
}Expand description
Result of signing an authentication challenge.
Args:
signature_hex: Hex-encoded Ed25519 signature over the canonical payload.public_key_hex: Hex-encoded Ed25519 public key.did: The identity’s DID (e.g."did:keri:EPREFIX").
Usage:
ⓘ
let msg = build_auth_challenge_message("abc123", "auths.dev")?;
let (sig, pubkey, _curve) = sign_with_key(&keychain, &alias, &provider, msg.as_bytes())?;
let result = SignedAuthChallenge {
signature_hex: hex::encode(sig),
public_key_hex: hex::encode(pubkey),
did: "did:keri:E...".to_string(),
};Fields§
§signature_hex: StringHex-encoded Ed25519 signature over the canonical JSON payload.
public_key_hex: StringHex-encoded Ed25519 public key of the signer.
did: StringThe signer’s identity DID (e.g. "did:keri:EPREFIX").
Trait Implementations§
Source§impl Clone for SignedAuthChallenge
impl Clone for SignedAuthChallenge
Source§fn clone(&self) -> SignedAuthChallenge
fn clone(&self) -> SignedAuthChallenge
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 SignedAuthChallenge
impl RefUnwindSafe for SignedAuthChallenge
impl Send for SignedAuthChallenge
impl Sync for SignedAuthChallenge
impl Unpin for SignedAuthChallenge
impl UnsafeUnpin for SignedAuthChallenge
impl UnwindSafe for SignedAuthChallenge
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