Skip to content

Commit

Permalink
Merge pull request #142 from dai1975/generic-signer
Browse files Browse the repository at this point in the history
add generic([]byte base) signer interface
  • Loading branch information
siburu committed Jun 13, 2024
2 parents c08e132 + 19c5e14 commit 529049a
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions signer/signer.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package signer

import (
"github.com/cosmos/gogoproto/proto"
)

type SignerConfig interface {
proto.Message
Build() (Signer, error)
Validate() error
}

type Signer interface {
Sign(digest []byte) (signature []byte, err error)
GetPublicKey() ([]byte, error)
}

0 comments on commit 529049a

Please sign in to comment.