Function generateSigningMessage

  • Generates the 'signing message' form of a message to be signed. This function combines a domain separator with the byte representation of the message to create a signing message.

    Parameters

    • bytes: Uint8Array

      The byte representation of the message to be signed and sent to the chain.

    • domainSeparator: string

      A domain separator that starts with 'APTOS::'.

    Returns Uint8Array

    The Uint8Array of the signing message.