Versions in this module Expand all Collapse all v1 v1.0.15 Sep 13, 2024 v1.0.14 Sep 7, 2024 v1.0.13 Sep 7, 2024 v0 v0.1.12 Sep 2, 2024 v0.1.11 Sep 1, 2024 v0.1.10 Sep 1, 2024 v0.1.9 Sep 1, 2024 v0.1.8 Aug 31, 2024 v0.1.7 Aug 31, 2024 v0.1.6 Aug 30, 2024 v0.1.5 Aug 29, 2024 v0.1.4 Aug 29, 2024 v0.1.3 Aug 28, 2024 v0.1.2 Aug 22, 2024 v0.1.1 Aug 22, 2024 v0.1.0 Aug 19, 2024 Changes in this version + const Content + const CreatedAt + const ID + const Kind + const PubKey + const Signature + const Tags + var DecimalHexInSecond = B + var FieldSizes = []int + var HexInSecond = B + func EstimateSize(ev *T) (size int) + func Hash(in []byte) (out []byte) + type Ascending []*T + func (ev Ascending) Len() int + func (ev Ascending) Less(i, j int) bool + func (ev Ascending) Swap(i, j int) + type B = []byte + type C chan *T + type Ctx = context.T + type Descending []*T + func (e Descending) Len() int + func (e Descending) Less(i, j int) bool + func (e Descending) Swap(i, j int) + type E = error + type N = int + type Reader struct + Buf B + Pos int + func NewReadBuffer(b []byte) (buf *Reader) + func (r *Reader) ReadContent() (s B, err error) + func (r *Reader) ReadCreatedAt() (t *timestamp.T, err error) + func (r *Reader) ReadEvent() (ev *T, err error) + func (r *Reader) ReadID() (id B, err E) + func (r *Reader) ReadKind() (k *kind.T, err error) + func (r *Reader) ReadPubKey() (pk B, err E) + func (r *Reader) ReadSignature() (sig B, err error) + func (r *Reader) ReadTags() (t *tags.T, err error) + type S = string + type T struct + Content B + CreatedAt *timestamp.T + ID B + Kind *kind.T + PubKey B + Sig B + Tags *tags.T + func GenerateRandomTextNoteEvent(signer nostr.Signer, maxSize int) (ev *T, err error) + func New() (ev *T) + func (ev *T) CheckSignature() (valid bool, err error) + func (ev *T) ContentString() (s S) + func (ev *T) EventID() (eid *eventid.T) + func (ev *T) GetIDBytes() []byte + func (ev *T) IDString() (s S) + func (ev *T) MarshalBinary(dst B) (b B, err E) + func (ev *T) MarshalJSON(dst B) (b B, err error) + func (ev *T) PubKeyString() (s S) + func (ev *T) Serialize() (b B) + func (ev *T) SigString() (s S) + func (ev *T) Sign(keys nostr.Signer) (err error) + func (ev *T) SignWithSecKey(sk *k1.SecretKey, so ...sch.SignOption) (err error) + func (ev *T) String() (r S) + func (ev *T) TagStrings() (s [][]S) + func (ev *T) ToCanonical() (b B) + func (ev *T) UnmarshalBinary(b B) (r B, err E) + func (ev *T) UnmarshalJSON(b B) (r B, err error) + func (ev *T) UnmarshalJSONold(b B) (rem B, err error) + func (ev *T) Verify() (valid bool, err error) + type Ts []*T + func (ev Ts) Len() int + func (ev Ts) Less(i, j int) bool + func (ev Ts) Swap(i, j int) + type Writer struct + Buf B + func NewBufForEvent(dst B, ev *T) (buf *Writer) + func NewWriteBuffer(dst B, l int) (buf *Writer) + func (w *Writer) Bytes() B + func (w *Writer) Len() int + func (w *Writer) WriteContent(s B) (err error) + func (w *Writer) WriteCreatedAt(t *timestamp.T) (err E) + func (w *Writer) WriteEvent(ev *T) (err error) + func (w *Writer) WriteID(id B) (err E) + func (w *Writer) WriteKind(k *kind.T) (err E) + func (w *Writer) WritePubKey(pk B) (err E) + func (w *Writer) WriteSignature(sig B) (err error) + func (w *Writer) WriteTags(t *tags.T) (err E)