latest contributor to this doc

Last Edit:

@smk762

Signing_and_Verifying_Messages

Cryptographically signed messages are a useful feature which can be used to prove ownership of an address.

If your coins file contains the correct sign_message_prefix parameter value for a coin, you can sign messages with the Komodo DeFi Framework API. For signing with a HD wallet, the coins file must also contain the coin's derivation path prefix.

  {
    "coin": "DGB",
    "name": "digibyte",
    "fname": "DigiByte",
    "protocol": {
      "type": "UTXO"
    },
    ...
    "sign_message_prefix": "DigiByte Signed Message:\n",
    "derivation_path": "m/44'/20'",
    "trezor_coin": "DigiByte",
    "links": {
      "github": "https://github.com/digibyte/digibyte",
      "homepage": "https://digibyte.io"
    }
  }

See the individual methods for signing and Verifying below: