Discover Packages
orly.dev
pkg
encoders
bech32encoding
pointers
package
Version:
v0.8.7
Opens a new window with list of versions in this module.
Published: Aug 18, 2025
License: Unlicense
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 1 module, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package pointers is a set of basic nip-19 data types for generating bech32
encoded nostr entities.
type Entity struct {
PublicKey []byte `json:"pubkey"`
Kind *kind .T `json:"kind,omitempty"`
Identifier []byte `json:"identifier,omitempty"`
Relays [][]byte `json:"relays,omitempty"`
}
Entity is the combination of a pubkey, kind, arbitrary identifier, and relay
hints.
type Event struct {
ID *eventid .T `json:"id"`
Relays [][]byte `json:"relays,omitempty"`
Author []byte `json:"author,omitempty"`
Kind *kind .T `json:"kind,omitempty"`
}
Event pointer is the combination of an event ID, relay hints, author, pubkey,
and kind.
type Profile struct {
PublicKey []byte `json:"pubkey"`
Relays [][]byte `json:"relays,omitempty"`
}
Profile pointer is a combination of pubkey and relay list.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.