aboutsummaryrefslogtreecommitdiff
path: root/account.go
diff options
context:
space:
mode:
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)