Function hdk::countersigning::session_times_from_millis

source ·
pub fn session_times_from_millis(
    ms: u64,
) -> ExternResult<CounterSigningSessionTimes>
Expand description

Wrapper function around sys_time to build CounterSigningSessionTimes. These session times are included in the PreflightRequest and bound the countersigning session temporally. This function starts the session “now” in the opinion of the session initiator and ends it after ms milliseconds relative to “now”. The countersigning parties will check these times as part of accepting the preflight request so all system clocks need to be roughly aligned and the ambient network latency must fit comfortably within the session duration.