make_auth_message

function make_auth_message(message: text): text(source)

A utility function that adds a header and a footer to every auth message.

The header contains the blockchain RID to avoid the same signature to be maliciously used on other chains in a cross-chain replay attack.

The footer contains a nonce to avoid the same signature to be maliciously used on this same chain in a classic replay attack.

Parameters

message

the body of the message