Versions in this module Expand all Collapse all v0 v0.5.2 Feb 10, 2023 Changes in this version + const FormatFeedBamboo + const FormatFeedBendyButt + const FormatFeedEd25519 + const FormatFeedFusionIdentity + const FormatFeedGabbyGrove + const FormatMessageBamboo + const FormatMessageCloaked + const FormatMessageGabbyGrove + const FormatMessageMetaFeed + const FormatMessageSHA256 + const TypeBlob + const TypeDiffieHellmanKey + const TypeFeed + const TypeMessage + var ErrTooShort = errors.New("ssb/tfk: data too short") + var ErrUnhandledFormat = errors.New("ssb/tfk: unhandled format value") + var ErrWrongType = errors.New("ssb/tfk: unexpected type value") + func Encode(r refs.Ref) ([]byte, error) + func IsValidFeedFormat(f uint8) bool + func IsValidMessageFormat(f uint8) bool + type Feed struct + func FeedFromRef(r refs.FeedRef) (*Feed, error) + func (f *Feed) MarshalBinary() ([]byte, error) + func (f *Feed) UnmarshalBinary(data []byte) error + func (f Feed) Feed() (refs.FeedRef, error) + type Message struct + func MessageFromRef(r refs.MessageRef) (*Message, error) + func (msg *Message) MarshalBinary() ([]byte, error) + func (msg *Message) UnmarshalBinary(data []byte) error + func (msg Message) Message() (refs.MessageRef, error)