aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-12-13 21:13:51 +0100
committerDimitri Sokolyuk <demon@dim13.org>2015-12-13 21:13:51 +0100
commit7ca4c90877a4b45627211307baf9f7aa3bd9e32b (patch)
tree9758a99904f4538f0e3aef80f87d94c81e11cb18
parent8692a50c6c072287f0633cde9716fa95856116f6 (diff)
Drop dead code
-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)
-}