How to verify a signed message?

25 views
Skip to first unread message

Pedro Roberto

unread,
Dec 17, 2019, 1:26:11 PM12/17/19
to bitcoinj
I am looking for the bitcoinj equivalent of the bitcoin core's RPC command verifymessage. I didn't find it mentioned in the documentation so I assume it doesn't exist, but I was hoping that maybe I am wrong or you can point me to some other way to do it?


Pedro Roberto

unread,
Dec 18, 2019, 1:34:46 PM12/18/19
to bitcoinj
I made an attempt at implementing it. 

Andreas Schildbach

unread,
Dec 19, 2019, 4:00:31 PM12/19/19
to bitc...@googlegroups.com
If you look at the org.bitcoinj.core.ECKeyTest#signTextMessage unit
test, it shows how it works. It uses

org.bitcoinj.core.ECKey#signMessage(java.lang.String) and
org.bitcoinj.core.ECKey#verifyMessage


On 17/12/2019 19.26, Pedro Roberto wrote:
> I am looking for the bitcoinj equivalent of the bitcoin core's RPC
> command verifymessage
> <https://bitcoincore.org/en/doc/0.18.0/rpc/util/verifymessage/>. I
> didn't find it mentioned in the documentation so I assume it doesn't
> exist, but I was hoping that maybe I am wrong or you can point me to
> some other way to do it?
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "bitcoinj" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to bitcoinj+u...@googlegroups.com
> <mailto:bitcoinj+u...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/bitcoinj/5171da0d-5a05-45bd-9127-75e2f5de6965%40googlegroups.com
> <https://groups.google.com/d/msgid/bitcoinj/5171da0d-5a05-45bd-9127-75e2f5de6965%40googlegroups.com?utm_medium=email&utm_source=footer>.


Reply all
Reply to author
Forward
0 new messages