aboutsummaryrefslogtreecommitdiff
path: root/account.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-12-27 02:00:10 +0100
committerDimitri Sokolyuk <demon@dim13.org>2015-12-27 02:00:10 +0100
commitb99fff883f7aa681475aa51824ad97d53b82d14a (patch)
tree1d93c898f4417a1db03b55b360434b51f26e0e17 /account.go
parent13be0f746259664cbaff1b4fef9d65dd278391a2 (diff)
Split interfaces
Diffstat (limited to 'account.go')
-rw-r--r--account.go8
1 files changed, 8 insertions, 0 deletions
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)