derec-library 0.0.6

Rust SDK for the DeRec protocol, including native and WebAssembly bindings.
Documentation
1
2
3
4
5
6
7
8
9
use wasm_bindgen::prelude::*;

/// A fresh replica identity. See [`crate::generate_replica_id`]: the caller
/// persists it once per device and passes the same value on every protocol
/// init. Never `0`.
#[wasm_bindgen(js_name = "generate_replica_id")]
pub fn generate_replica_id() -> u64 {
    crate::generate_replica_id()
}