Crate bitcoin_message

source ·

Enums

  • | The result of a signed message verification. | | Message verification takes as an input: | | - address (with whose private key the | message is supposed to have been signed) | | - signature | | - message |

Constants

  • | Text used to signify that a signed message | follows and to prevent inadvertently | signing a transaction. |

Functions

  • | Hashes a message for signing and verification | in a manner that prevents inadvertently | signing a transaction. |
  • | Sign a message. | | ———– | @param[in] privkey | | Private key to sign with. | ––––– | @param[in] message | | The message to sign. | ––––– | @param[out] signature | | Signature, base64 encoded, only set | if true is returned. | | ———– | @return | | true if signing was successful. |
  • | Verify a signed message. | | ———– | @param[in] address | | Signer’s bitcoin address, it must refer | to a public key. | ––––– | @param[in] signature | | The signature in base64 format. | ––––– | @param[in] message | | The message that was signed. | | ———– | @return | | result code |