mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-09-10 21:30:52 +02:00
nip60: slight improvement to lightning melt-mint flow.
This commit is contained in:
@@ -18,6 +18,14 @@ type Token struct {
|
||||
event *nostr.Event
|
||||
}
|
||||
|
||||
func (t Token) ID() string {
|
||||
if t.event != nil {
|
||||
return t.event.ID
|
||||
}
|
||||
|
||||
return "<not-published>"
|
||||
}
|
||||
|
||||
func (t Token) toEvent(ctx context.Context, kr nostr.Keyer, walletId string, evt *nostr.Event) error {
|
||||
pk, err := kr.GetPublicKey(ctx)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user