pub struct DeviceSigningMaterial {
pub seed: TypedSeed,
pub public_key: Vec<u8>,
pub device_did: CanonicalDid,
pub controller_did: String,
}Expand description
Key material loaded from the local device keychain for use in pairing operations.
Usage:
ⓘ
let material = load_device_signing_material(&ctx)?;
join_pairing_session(code, registry, &relay, now, &material, hostname).await?;Fields§
§seed: TypedSeedTyped signing seed — curve travels with the seed so pairing flows never need to infer curve from pubkey byte length.
public_key: Vec<u8>Public key bytes (32 for Ed25519, 33 for P-256 compressed).
device_did: CanonicalDidDID of the local device.
controller_did: StringDID of the controller identity this device belongs to.
Auto Trait Implementations§
impl Freeze for DeviceSigningMaterial
impl RefUnwindSafe for DeviceSigningMaterial
impl Send for DeviceSigningMaterial
impl Sync for DeviceSigningMaterial
impl Unpin for DeviceSigningMaterial
impl UnsafeUnpin for DeviceSigningMaterial
impl UnwindSafe for DeviceSigningMaterial
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