nip61

package
v0.49.5 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2025 License: MIT Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NutzapsNotAccepted = errors.New("user doesn't accept nutzaps")

Functions

func SendNutzap

func SendNutzap(
	ctx context.Context,
	kr nostr.Keyer,
	w *nip60.Wallet,
	pool *nostr.SimplePool,
	targetUserPublickey string,
	getUserReadRelays func(context.Context, string, int) []string,
	relays []string,
	eventId string,
	amount uint64,
	message string,
) (chan nostr.PublishResult, error)

func VerifyBlindSignatureDLEQ added in v0.49.5

func VerifyBlindSignatureDLEQ(
	dleq cashu.DLEQProof,
	A *btcec.PublicKey,
	B_str string,
	C_str string,
) bool

func VerifyNutzap added in v0.49.5

func VerifyNutzap(
	keyset map[uint64]*btcec.PublicKey,
	evt *nostr.Event,
) (sats uint64, ok bool)

Types

type Info

type Info struct {
	PublicKey string
	Mints     []string
	Relays    []string
}

func (*Info) ParseEvent

func (zi *Info) ParseEvent(evt *nostr.Event) error

func (*Info) ToEvent

func (zi *Info) ToEvent(ctx context.Context, kr nostr.Keyer, evt *nostr.Event) error

Jump to

Keyboard shortcuts

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