derec-library 0.0.1-alpha.8

Rust SDK for the DeRec protocol, including native and WebAssembly bindings.
Documentation
1
2
3
4
5
6
7
8
9
10
11
// SPDX-License-Identifier: Apache-2.0
// Copyright (c) 2026 DeRec Alliance. All rights reserved.

pub mod envelope;
pub mod primitives;
pub mod protocol;
pub(crate) mod ts_bindings_utils;

pub(crate) fn now_secs() -> u64 {
    (js_sys::Date::now() / 1000.0) as u64
}