pointers

package
v0.8.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2025 License: Unlicense Imports: 2 Imported by: 0

Documentation

Overview

Package pointers is a set of basic nip-19 data types for generating bech32 encoded nostr entities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entity

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

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

type Profile struct {
	PublicKey []byte   `json:"pubkey"`
	Relays    [][]byte `json:"relays,omitempty"`
}

Profile pointer is a combination of pubkey and relay list.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL