Skip to main content

bind_after_verified

Function bind_after_verified 

Source
pub(crate) async fn bind_after_verified(
    state: &AppState,
    agent: &str,
    key: &[u8],
)
Expand description

A message just verified under agent’s pinned key (key). If the pin is bound to no install yet, bind it to the install behind the certificate the peer shows for exactly that key, when this machine trusts that install. Binding on a verified message keeps it as strong as the pin: a certificate alone proves nothing, since anyone can wrap a public key in a certificate of an install of their own.