Closed tian000 closed 1 year ago
The message format is an implementation detail and not standardized, so it is inappropriate to expose it from the public interface.
How can I verify the message using my own cryptography libraries if I don't have access to the raw message that this library is signing?
In general, you have two options that you could choose from, one being focused on your individual app, and the other is focused on the public API of this library:
I would recommend the first option... since Bitcoin Core has removed the signing and verifying functions that this library is based on... so we should really deprecate this library and halt its maintenance.
See #39
Got it! Thank you for the insights - I made a fork for my use-case here: https://github.com/bitcoinjs/bitcoinjs-message/compare/master...phantom:bitcoinjs-message:master
Expose a public method that returns the message being signed - so that users can verify the signature.
This method would look like