sample_chain/common/identity/identity.go

10 lines
154 B
Go

package identity
type Signer interface {
Sign(message []byte) ([]byte, error)
}
type Serializer interface {
Serialize() ([]byte, error) //序列化
}