From 0bb49a09e046040aace7cbb58796e952fcb17ff1 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Wed, 13 Jan 2016 00:33:28 +0100 Subject: Cleanup --- account.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'account.go') diff --git a/account.go b/account.go index 32619f0..14368eb 100644 --- a/account.go +++ b/account.go @@ -49,7 +49,7 @@ func newAccount(key *rsa.PrivateKey) (*Account, error) { // Signer describes a signing interface type Signer interface { Sign(interface{}, jose.NonceSource) (io.Reader, error) - Thumb(string) (string, error) + KeyAuth(string) (string, error) } // Sign implements Signer interface @@ -66,7 +66,7 @@ func (a *Account) Sign(v interface{}, n jose.NonceSource) (io.Reader, error) { return strings.NewReader(obj.FullSerialize()), nil } -func (a *Account) Thumb(token string) (string, error) { +func (a *Account) KeyAuth(token string) (string, error) { k := &jose.JsonWebKey{Key: a.key.Public(), Algorithm: "RSA"} thumb, err := k.Thumbprint(crypto.SHA256) if err != nil { -- cgit v1.2.3