aboutsummaryrefslogtreecommitdiff
path: root/account.go
diff options
context:
space:
mode:
Diffstat (limited to 'account.go')
-rw-r--r--account.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/account.go b/account.go
index 86f44cc..3a8d032 100644
--- a/account.go
+++ b/account.go
@@ -65,6 +65,11 @@ func (a Account) SaveAccount(fname string) error {
return ioutil.WriteFile(fname, body, 0600)
}
+// Signer describes a signing interface
+type Signer interface {
+ Sign([]byte, jose.NonceSource) ([]byte, error)
+}
+
func (a *Account) Sign(msg []byte, n jose.NonceSource) ([]byte, error) {
if a.signer == nil {
var err error