pub trait SessionInitiatePeer {
    fn session_id(&self) -> &str;
    fn session_create_context(&self) -> Option<Vec<u8>>;
    fn session_join_string_bytes(&self) -> Result<Vec<u8>, RemoteSignError>;
    fn negotiate_session(
        self: Box<Self>,
        peer_context: Option<Vec<u8>>
    ) -> Result<PeerKeys, RemoteSignError>; fn session_join_string_base64(&self) -> Result<String, RemoteSignError> { ... } fn session_join_string_pem(&self) -> Result<String, RemoteSignError> { ... } }
Expand description

A peer that initiates a remote signing session.

Required Methods

Obtain the session ID to create / use.

Obtain additional session context to store with the server.

This context will be sent to the peer when it joins.

Obtain the raw bytes constituting the session join string.

Finalize a peer joined session using optional context provided by the peer.

Yields encryption keys for this peer.

Provided Methods

Obtain the base 64 encoded session join string.

Obtain the PEM encoded session join string.

Implementors