contentmessage

package
v0.0.0-...-a5c1f10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 8, 2023 License: BSD-2-Clause Imports: 8 Imported by: 0

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL