aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--account.go10
1 files changed, 0 insertions, 10 deletions
diff --git a/account.go b/account.go
index 8ae343b..6a4e123 100644
--- a/account.go
+++ b/account.go
@@ -4,7 +4,6 @@ import (
"crypto/rand"
"crypto/rsa"
"encoding/json"
- "fmt"
"io"
"io/ioutil"
"net/mail"
@@ -87,12 +86,3 @@ func (a *Account) Sign(msg []byte, n jose.NonceSource) (io.Reader, error) {
}
return strings.NewReader(obj.FullSerialize()), nil
}
-
-func (a *Account) ParseSigned(msg []byte) ([]byte, error) {
- fmt.Println("MSG", string(msg))
- obj, err := jose.ParseSigned(string(msg))
- if err != nil {
- return nil, err
- }
- return obj.Verify(&a.PrivKey.PublicKey)
-}