accounts: eip-712 signing for ledger (#22378)

* accounts: eip-712 signing for ledger

* address review comments
This commit is contained in:
MrChico
2021-03-22 09:29:32 +01:00
committed by GitHub
parent eaccdba4ab
commit aab35600bc
3 changed files with 128 additions and 1 deletions

View File

@ -185,6 +185,10 @@ func (w *trezorDriver) SignTx(path accounts.DerivationPath, tx *types.Transactio
return w.trezorSign(path, tx, chainID)
}
func (w *trezorDriver) SignTypedMessage(path accounts.DerivationPath, domainHash []byte, messageHash []byte) ([]byte, error) {
return nil, accounts.ErrNotSupported
}
// trezorDerive sends a derivation request to the Trezor device and returns the
// Ethereum address located on that path.
func (w *trezorDriver) trezorDerive(derivationPath []uint32) (common.Address, error) {