• Serialize transaction content for hashing/signing.

    This is the load-bearing wire boundary: the bytes returned here are fed into sha256 and the resulting hash is what the keypair signs. The receiving node hashes its in-memory TransactionContent through its own serializerGate.serializeTransactionContent; if our bytes differ from the node's bytes the signature will not validate.

    Parameters

    • content: TransactionContent

      The transaction content to serialize.

    • isPostFork: boolean

      true when the connected node has activated the osDenomination fork. When false (pre-fork or unknown), the legacy DEM-number wire shape is emitted.

    Returns string

    Canonical JSON string for hashing.