To-be-signed bytes: JCS(event without the sig field). typ/pid inside TBS give domain separation and anti-replay (D32).
sig
typ
pid
The event (its sig field is excluded).
The canonical bytes every signature is computed and verified over.
const s = crypto.sign(tbsBytes(event), pactKey); Copy
const s = crypto.sign(tbsBytes(event), pactKey);
To-be-signed bytes: JCS(event without the
sigfield).typ/pidinside TBS give domain separation and anti-replay (D32).