Skip to main content

wrap

Function wrap 

Source
pub fn wrap(
    signer: &dyn CursorSigner,
    cluster: &ClusterId,
    cursor: &str,
) -> String
Expand description

Wraps cursor (the upstream scroll/PIT id) with cluster into a signed, self-describing token for the client. Format {cluster_hex}.{tag_hex}.{cursor}, the cursor verbatim (it is base64, so it never contains the . delimiter).