Versions in this module Expand all Collapse all v0 v0.2.0 Jul 4, 2023 v0.1.9 Jun 30, 2023 v0.1.8 Apr 21, 2023 v0.1.7 Apr 16, 2023 v0.1.6 Apr 4, 2023 Changes in this version type StructuredEvent + func (e StructuredEvent) UniqueMatch() primitive.M v0.1.5 Apr 3, 2023 v0.1.4 Apr 2, 2023 v0.1.3 Apr 1, 2023 v0.1.2 Mar 31, 2023 v0.1.1 Mar 31, 2023 v0.1.0 Mar 21, 2023 Changes in this version + func VerifyEvent(e Event) error + func VerifyEventID(e Event) error + func VerifySignature(e Event) error + type Event struct + Content string + CreatedAt Timestamp + ID ID + Kind Kind + PubKey PubKey + Sig Signature + Tags []Tag + func UnStructure(e StructuredEvent) Event + type ID string + func E(t Tag) (ID, bool) + func NewEventID(pub PubKey, createdAt Timestamp, kind Kind, tags []Tag, content string) (ID, error) + func (id ID) Bytes() ([]byte, error) + type Kind int64 + type PubKey string + func P(t Tag) (PubKey, bool) + func (pk PubKey) BIP340Secp256k1() (btcec.PublicKey, error) + type Signature string + func (sig Signature) BIP340Secp256k1() (schnorr.Signature, error) + func (sig Signature) Bytes() ([]byte, error) + func (sig Signature) Hex() string + type StructuredEvent struct + E []ID + Event Event + P []PubKey + func Structure(e Event) StructuredEvent + func (e StructuredEvent) UniqueID() string + func (e StructuredEvent) UniqueIDFieldName(format string) (string, error) + type Tag []string + type Timestamp int64 + type URL string