aboutsummaryrefslogtreecommitdiffstats
path: root/xeth/frontend.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-10-23 00:27:05 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-10-23 00:27:05 +0800
commitdce503779b2866d1d35b4582470604c0d7e156db (patch)
tree7d8817ec84be38b911f967f1ecd5618d02e4caa9 /xeth/frontend.go
parent58d0752fdd1c7363fb1a127cd7e0a86d7602be02 (diff)
parent8b81ad1fc40080af441c0c6df94f0b2ea46e320b (diff)
downloadgo-tangerine-dce503779b2866d1d35b4582470604c0d7e156db.tar
go-tangerine-dce503779b2866d1d35b4582470604c0d7e156db.tar.gz
go-tangerine-dce503779b2866d1d35b4582470604c0d7e156db.tar.bz2
go-tangerine-dce503779b2866d1d35b4582470604c0d7e156db.tar.lz
go-tangerine-dce503779b2866d1d35b4582470604c0d7e156db.tar.xz
go-tangerine-dce503779b2866d1d35b4582470604c0d7e156db.tar.zst
go-tangerine-dce503779b2866d1d35b4582470604c0d7e156db.zip
Merge pull request #1840 from ethersphere/console
console, cli, api fixes
Diffstat (limited to 'xeth/frontend.go')
-rw-r--r--xeth/frontend.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/xeth/frontend.go b/xeth/frontend.go
index e89282242..70d99ebc4 100644
--- a/xeth/frontend.go
+++ b/xeth/frontend.go
@@ -19,6 +19,9 @@ package xeth
// Frontend should be implemented by users of XEth. Its methods are
// called whenever XEth makes a decision that requires user input.
type Frontend interface {
+ // AskPassword is called when a new account is created or updated
+ AskPassword() (string, bool)
+
// UnlockAccount is called when a transaction needs to be signed
// but the key corresponding to the transaction's sender is
// locked.
@@ -40,5 +43,6 @@ type Frontend interface {
// transactions but cannot not unlock any keys.
type dummyFrontend struct{}
+func (dummyFrontend) AskPassword() (string, bool) { return "", false }
func (dummyFrontend) UnlockAccount([]byte) bool { return false }
func (dummyFrontend) ConfirmTransaction(string) bool { return true }