Skip to main content

DecryptedPairingResponse

Struct DecryptedPairingResponse 

Source
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 ~/.auths identity 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: PathBuf

Path to the ~/.auths identity repository.

§device_pubkey: Vec<u8>

Ed25519 signing public key bytes (32 bytes).

§device_did: String

DID string of the responding device.

§device_name: Option<String>

Optional human-readable device name.

§capabilities: Vec<String>

Capability strings to grant.

§identity_key_alias: KeyAlias

Resolved keychain alias for the identity key.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V