aboutsummaryrefslogtreecommitdiff
path: root/account.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-01-19 12:33:09 +0100
committerDimitri Sokolyuk <demon@dim13.org>2016-01-19 12:33:09 +0100
commit77debcd18fde7e8c74537bd61e7b5d165fe44c47 (patch)
treeb6264acb46f98f4d43a2eaa5e9db0f43b44c5a4c /account.go
parent347aee40f3dc38122f3cf1144673db089e71512c (diff)
crypto.PrivateKey
Diffstat (limited to 'account.go')
-rw-r--r--account.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/account.go b/account.go
index eebe2de..48849c4 100644
--- a/account.go
+++ b/account.go
@@ -7,7 +7,6 @@ import (
"crypto/rsa"
"encoding/base64"
"encoding/json"
- "errors"
"io"
"strings"
@@ -48,7 +47,7 @@ func newAccount(key crypto.PrivateKey) (*Account, error) {
signer, err := jose.NewSigner(jose.ES384, k)
return &Account{key: k, signer: signer}, err
default:
- return nil, errors.New("unknown key type")
+ return nil, errKeyType
}
}