junobuild-satellite 0.6.0

Core implementation of a Juno Satellite.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::user::webauthn::types::state::{UserWebAuthnCredentialId, UserWebAuthnIndex};
use crate::{Doc, SetDoc};

impl UserWebAuthnIndex {
    pub fn prepare_set_doc(
        credential_id: &UserWebAuthnCredentialId,
        current_doc: &Option<Doc>,
    ) -> SetDoc {
        SetDoc {
            data: vec![],
            description: Some(credential_id.clone()),
            version: current_doc.as_ref().and_then(|d| d.version),
        }
    }
}