Documentation ¶
Overview ¶
Package nostrbinary provides a simple interface for using Gob encoding on nostr events.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Event ¶
type Event struct { ID [sha256.Size]byte PubKey [schnorr.PubKeyBytesLen]byte CreatedAt timestamp.T Kind kind.T Tags tags.T Content string Sig [schnorr.SignatureSize]byte }
Event is the most compact and exact form of an event as encoded in native Go form. This will produce the most compact form of Gob encoded binary data.
func FromEventT ¶
FromEventT converts an event.T into an Event, including validating all fields are correctly formed for their type.
Click to show internal directories.
Click to hide internal directories.