Versions in this module Expand all Collapse all v0 v0.0.14 Aug 4, 2024 Changes in this version + type N = int v0.0.13 Aug 1, 2024 v0.0.11 Aug 1, 2024 v0.0.10 Aug 1, 2024 v0.0.9 Jul 31, 2024 v0.0.8 Jul 29, 2024 v0.0.7 Jul 29, 2024 v0.0.6 Jul 29, 2024 v0.0.5 Jul 28, 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 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 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 pkg.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) 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 pkg.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 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)