aboutsummaryrefslogtreecommitdiff
path: root/account.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-01-13 00:33:28 +0100
committerDimitri Sokolyuk <demon@dim13.org>2016-01-13 00:33:28 +0100
commit0bb49a09e046040aace7cbb58796e952fcb17ff1 (patch)
tree27f1f0e4565974fecb4ea071452ce126ee895875 /account.go
parent20650c97ee0a7195957ce8f30f87a901bda28e89 (diff)
Cleanup
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 {