From b99fff883f7aa681475aa51824ad97d53b82d14a Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sun, 27 Dec 2015 02:00:10 +0100 Subject: Split interfaces --- account.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'account.go') diff --git a/account.go b/account.go index cbe2772..f2cf7e8 100644 --- a/account.go +++ b/account.go @@ -50,9 +50,17 @@ func (a *Account) AddPhone(phone string) error { // Signer describes a signing interface type Signer interface { Sign([]byte, jose.NonceSource) (io.Reader, error) +} + +type Thumber interface { Thumb(string) (string, error) } +type ThumbSigner interface { + Signer + Thumber +} + // Sign implements Signer interface func (a *Account) Sign(msg []byte, n jose.NonceSource) (io.Reader, error) { a.signer.SetNonceSource(n) -- cgit v1.2.3