ic_sis 0.2.1

Integrate Sui wallet-based authentication (SIS) with applications on the Internet Computer (ICP) platform. Supports BCS serialization, intent signing, and multiple signature schemes.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
#[cfg(any(test, feature = "test-mode"))]
pub(crate) fn get_current_time() -> u64 {
    use std::time::{SystemTime, UNIX_EPOCH};

    let start = SystemTime::now();
    start.duration_since(UNIX_EPOCH).unwrap().as_nanos() as u64
}

#[cfg(not(any(test, feature = "test-mode")))]
pub(crate) fn get_current_time() -> u64 {
    ic_cdk::api::time()
}