Function sign_message

  • Sign message by constructing a dummy block with the message (why not just sign the message itself instead of putting it in a dummy block? ledger support). This is already the standard across Banano services and wallets which support signing so please don't invent your own scheme

    Parameters

    • private_key: string
    • message: string
    • preamble: string = MESSAGE_PREAMBLE

    Returns string

    The signature in hex