Skip to content

Commit 708cf66

Browse files
committed
Add context to Signer methods
Signed-off-by: Takeshi Arabiki <takeshi.arabiki@datachain.jp>
1 parent 92c8c52 commit 708cf66

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

signer/signer.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
package signer
22

33
import (
4+
"context"
5+
46
"github.com/cosmos/gogoproto/proto"
57
)
68

@@ -11,6 +13,6 @@ type SignerConfig interface {
1113
}
1214

1315
type Signer interface {
14-
Sign(digest []byte) (signature []byte, err error)
15-
GetPublicKey() ([]byte, error)
16+
Sign(ctx context.Context, digest []byte) (signature []byte, err error)
17+
GetPublicKey(ctx context.Context) ([]byte, error)
1618
}

0 commit comments

Comments
 (0)