diff options
author | Determinant <[email protected]> | 2020-09-15 23:55:34 -0400 |
---|---|---|
committer | Determinant <[email protected]> | 2020-09-15 23:55:34 -0400 |
commit | 78745551c077bf54151202138c2629f288769561 (patch) | |
tree | 2b628e99fd110617089778fa91235ecd2888f4ef /accounts/accounts.go | |
parent | 7d1388c743b4ec8f4a86bea95bfada785dee83f7 (diff) |
WIP: geth-tavum
Diffstat (limited to 'accounts/accounts.go')
-rw-r--r-- | accounts/accounts.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/accounts/accounts.go b/accounts/accounts.go index bca3223..2f39684 100644 --- a/accounts/accounts.go +++ b/accounts/accounts.go @@ -23,6 +23,7 @@ import ( "github.com/ava-labs/coreth/core/types" ethereum "github.com/ava-labs/go-ethereum" + gethaccounts "github.com/ava-labs/go-ethereum/accounts" "github.com/ava-labs/go-ethereum/common" "github.com/ava-labs/go-ethereum/event" "golang.org/x/crypto/sha3" @@ -129,6 +130,8 @@ type Wallet interface { // about which fields or actions are needed. The user may retry by providing // the needed details via SignHashWithPassphrase, or by other means (e.g. unlock // the account in a keystore). + // + // This method should return the signature in 'canonical' format, with v 0 or 1 SignText(account Account, text []byte) ([]byte, error) // SignTextWithPassphrase is identical to Signtext, but also takes a password @@ -199,7 +202,7 @@ func TextAndHash(data []byte) ([]byte, string) { // WalletEventType represents the different event types that can be fired by // the wallet subscription subsystem. -type WalletEventType int +type WalletEventType = gethaccounts.WalletEventType const ( // WalletArrived is fired when a new wallet is detected either via USB or via |