Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetMessageCacheLimit ¶
func SetMessageCacheLimit(limit int)
Types ¶
type ContentMessage ¶
type ContentMessage struct { Version uint64 PublicKey ed25519.PublicKey IssueTime int64 Identifier cid.Cid VerificationResult *bool Signature []byte }
func DecodeContentMessage ¶
func DecodeContentMessage(signatureBytes []byte) *ContentMessage
func NewContentMessageV0 ¶
func NewContentMessageV0(identifier cid.Cid, privateKey ed25519.PrivateKey) ContentMessage
func NewContentMessageV1 ¶
func NewContentMessageV1(hash multihash.Multihash, privateKey ed25519.PrivateKey) ContentMessage
func (*ContentMessage) Encode ¶
func (s *ContentMessage) Encode() []byte
func (*ContentMessage) EncodeMessage ¶
func (s *ContentMessage) EncodeMessage() []byte
func (*ContentMessage) Sign ¶
func (s *ContentMessage) Sign(privateKey ed25519.PrivateKey)
func (*ContentMessage) String ¶
func (s *ContentMessage) String() string
func (*ContentMessage) Verify ¶
func (s *ContentMessage) Verify() (bool, bool)
Click to show internal directories.
Click to hide internal directories.