getMessage static method
Builds the canonical signed message for a register clock.
valueDigest must be a SHA-256 digest of the register value bytes the
clock attests to. Use digestFor to compute it consistently across the
sign and verify paths.
Implementation
static String getMessage({
required String canvasId,
required String objectId,
required CanvasRegisterName registerName,
required String conversationKey,
required String actorDeviceKey,
required String hlcTimestamp,
required String valueDigest,
}) {
return '$_domainPrefix|$canvasId|$objectId|${registerName.name}|$conversationKey|$actorDeviceKey|$hlcTimestamp|$valueDigest';
}