pub struct DecryptedPairingResponse {
pub auths_dir: PathBuf,
pub device_pubkey: Vec<u8>,
pub device_did: String,
pub device_name: Option<String>,
pub capabilities: Vec<String>,
pub identity_key_alias: KeyAlias,
}Expand description
Decrypted pairing response payload from the responding device.
Built by the CLI after completing ECDH and resolving the identity key.
Passed to complete_pairing_from_response for attestation creation.
Args:
auths_dir: Path to the~/.authsidentity repository.device_pubkey: Ed25519 signing public key bytes (32 bytes).device_did: DID string of the responding device.device_name: Optional human-readable device name.capabilities: Capability strings to grant.identity_key_alias: Resolved keychain alias for the identity key.
Usage:
ⓘ
let response = DecryptedPairingResponse {
auths_dir: auths_dir.to_path_buf(),
device_pubkey: pubkey_bytes,
device_did: "did:key:z6Mk...".into(),
device_name: Some("iPhone 15".into()),
capabilities: vec!["sign_commit".into()],
identity_key_alias: "main".into(),
};Fields§
§auths_dir: PathBufPath to the ~/.auths identity repository.
device_pubkey: Vec<u8>Ed25519 signing public key bytes (32 bytes).
device_did: StringDID string of the responding device.
device_name: Option<String>Optional human-readable device name.
capabilities: Vec<String>Capability strings to grant.
identity_key_alias: KeyAliasResolved keychain alias for the identity key.
Auto Trait Implementations§
impl Freeze for DecryptedPairingResponse
impl RefUnwindSafe for DecryptedPairingResponse
impl Send for DecryptedPairingResponse
impl Sync for DecryptedPairingResponse
impl Unpin for DecryptedPairingResponse
impl UnsafeUnpin for DecryptedPairingResponse
impl UnwindSafe for DecryptedPairingResponse
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