mirror of
https://github.com/onsonr/sonr.git
synced 2025-03-10 13:07:09 +00:00
16 lines
333 B
Go
16 lines
333 B
Go
package crypto
|
|
|
|
import (
|
|
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
|
|
)
|
|
|
|
// PublicKey defines the interface for all public keys
|
|
type PublicKey interface {
|
|
Address() cryptotypes.Address
|
|
Bytes() []byte
|
|
String() string
|
|
VerifySignature(msg []byte, sig []byte) bool
|
|
Equals(other cryptotypes.PubKey) bool
|
|
Type() string
|
|
}
|