BitBoxSwiss / bitbox02-api-js

BitBox02 JavaScript library
Other
11 stars 9 forks source link

Signing a message with Bitcoin address? #35

Closed lf94 closed 3 years ago

lf94 commented 3 years ago

Bity SA would love to support BitBox02, but it appears only message signing is possible with Ethereum. Does BitBox02 have the ability to do message signing for Bitcoin addresses? Really this is a huge blocker for us. We use it as a way to verify users own the wallet address.

x1ddos commented 3 years ago

it appears only message signing is possible with Ethereum

The API does provide BTC message signing using btcSignMessage in https://github.com/digitalbitbox/bitbox02-api-js/blob/a58014f/src/bitbox02.js#L272-L296.

Or did you mean something else?

lf94 commented 3 years ago

Ah, nope. I must've looked right over it then - thank you for pointing it out!

lf94 commented 3 years ago

For what it's worth, the documentation fails to mention this method: https://github.com/digitalbitbox/bitbox02-api-js/blob/master/docs/methods.md