bitcoinjs / bitcoinjs-message

MIT License
124 stars 76 forks source link

Why does this library generate a different signature from BitcoinJ and NBitcoin library? #9

Closed sugarac closed 6 years ago

sugarac commented 6 years ago

I am developing a HD wallet using bitcoinjs-lib. And I use this library to sign message. But the result is different, which causes the Java backend can't accept the signature.

PaperKey: any famous bike social digital fold hurry movie spoil camera prefer upper Address: PYT8UPCu3AJsChrAbDK9uVChuZcoErxpBf Private Key WIF: dbnuT3YMYsQKm4yhFtzDCq89vAiNwday7M3emP5R9KS23AgqRTvK signature generated by bitcoinjs-messageIJBXINmphMCfNohT3G5Q/C8jKC1m/CAd/TDJ865zLTRmAlU35bGbfkkiQJKfngxDb6J0Mx2Zu3EpycTpvM/gzkU= signature generated by BitcoinJH4yOaixETPP0+lzs5v8oGkxGSXDSVxr9L1uOiaGbUTLAfJ4E+7epnr0tzuef3wPkblTyQ8swU1+2bVDijfa9P4k=

Does anybody meet same or similar problem?

sugarac commented 6 years ago

Problem is solved! The backend engineer gave me a wrong parameter.