aboutsummaryrefslogtreecommitdiff
path: root/account.go
diff options
context:
space:
mode:
Diffstat (limited to 'account.go')
-rw-r--r--account.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/account.go b/account.go
index 20dc7c7..3d01e1d 100644
--- a/account.go
+++ b/account.go
@@ -34,6 +34,10 @@ func NewAccount(email string, bits int) (*Account, error) {
}, nil
}
+func LoadAccount(email string) (*Account, error) {
+ return nil, nil
+}
+
func (a *Account) Sign(msg []byte) ([]byte, error) {
if a.signer == nil {
var err error
@@ -67,7 +71,7 @@ func (a Account) Nonce() (string, error) {
}
func (a Account) parseNonce(r *http.Response) {
- if nonce := r.Header.Get("Replay-Nonce"); nonce != "" {
+ if nonce := replyNonce(r); nonce != "" {
a.nonce <- nonce
}
}