Skip to main content

derive_code_hash

Function derive_code_hash 

Source
pub fn derive_code_hash(code: &str) -> String
Expand description

Insert a fresh session, returning the public session_id. SHA-256 hex of the domain-tagged code phrase. Both the host and guest derive the same value from the shared code, and the relay uses it as the pair-slot lookup key.