pointers

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2025 License: Unlicense Imports: 1 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.K  `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     []byte   `json:"id"`
	Relays [][]byte `json:"relays,omitempty"`
	Author []byte   `json:"author,omitempty"`
	Kind   *kind.K  `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.

Source Files

  • pointers.go

Jump to

Keyboard shortcuts

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