aboutsummaryrefslogtreecommitdiff
path: root/account.go
diff options
context:
space:
mode:
Diffstat (limited to 'account.go')
-rw-r--r--account.go4
1 files changed, 2 insertions, 2 deletions
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 {