pub type DeviceReadinessProof = Signed<DeviceReadinessProofBody>;Aliased Type§
pub struct DeviceReadinessProof { /* private fields */ }Implementations§
Source§impl DeviceReadinessProof
impl DeviceReadinessProof
pub fn signed( attempt_id: DeviceJoinAttemptId, registration: StoreDeviceRegistrationRef, initial_ack: StoreAckRef, bootstrap_cut: StoreHistoryCut, registration_value: &StoreDeviceRegistration, device_signer: &UserKeypair, ) -> Result<Self, StoreProtocolError>
Sourcepub fn verify(
&self,
attempt_id: DeviceJoinAttemptId,
attempt_cut: &StoreHistoryCut,
registration: &StoreDeviceRegistration,
initial_ack_ref: &StoreAckRef,
initial_ack: &StoreAck,
) -> Result<(), StoreProtocolError>
pub fn verify( &self, attempt_id: DeviceJoinAttemptId, attempt_cut: &StoreHistoryCut, registration: &StoreDeviceRegistration, initial_ack_ref: &StoreAckRef, initial_ack: &StoreAck, ) -> Result<(), StoreProtocolError>
Check a readiness proof against the attempt commit it answers.
attempt_cut is that commit’s predecessor cut — the history the
admitting device declared the joining device would install from. The
joiner echoes it here, so the two have to agree.