messageId
@totemsdk/edge / messageId
Function: messageId()
messageId(
msg):string
Compute the canonical message ID for a state-changing message.
Binds: protocol version, message type, negotiationId, proposalId / parentProposalId where relevant, sender, recipient, timestamp, and payload hash. The ID is recomputed deterministically — never trusted from the wire.
Parameters
msg
Returns
string