accounts/usbwallet: support webusb for Trezor wallets

This commit is contained in:
Guillaume Ballet
2019-05-16 14:37:36 +02:00
committed by Péter Szilágyi
parent 7a22da98b9
commit 4799b5abd4
12 changed files with 443 additions and 34 deletions

View File

@ -36,6 +36,8 @@ import (
"github.com/golang/protobuf/proto"
)
var ErrInvalidDeviceType = errors.New("trezor: invalid device type")
// ErrTrezorPINNeeded is returned if opening the trezor requires a PIN code. In
// this case, the calling application should display a pinpad and send back the
// encoded passphrase.