ByteSync icon indicating copy to clipboard operation
ByteSync copied to clipboard

2.2 Implement canonical serialization for trusted-session invitations

Open marwannettour opened this issue 6 months ago • 0 comments

Parent epic: #308

Summary

Add a serializer that produces stable bytes before signing invitation payloads.

Requirements

  • Create a service such as ITrustedSessionInviteSerializer.
  • Serialize JSON in a stable property order.
  • Encode dates consistently.
  • Avoid culture-dependent formatting and implicit fields.
  • Ensure the same logical payload produces the same canonical representation.

Acceptance criteria

  • Canonical serialization is deterministic.
  • Tests prove equivalent payloads produce identical bytes.

marwannettour avatar May 19 '26 12:05 marwannettour