mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-07-05 21:12:10 +02:00
nip46: fix pubkey passed to "connect".
This commit is contained in:
@ -77,8 +77,7 @@ func ConnectBunker(
|
|||||||
onAuth,
|
onAuth,
|
||||||
)
|
)
|
||||||
|
|
||||||
clientPubKey, _ := nostr.GetPublicKey(clientSecretKey)
|
_, err = bunker.RPC(ctx, "connect", []string{targetPublicKey, secret})
|
||||||
_, err = bunker.RPC(ctx, "connect", []string{clientPubKey, secret})
|
|
||||||
return bunker, err
|
return bunker, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -50,8 +50,7 @@ func CreateAccount(
|
|||||||
onAuth,
|
onAuth,
|
||||||
)
|
)
|
||||||
|
|
||||||
clientPubKey, _ := nostr.GetPublicKey(clientSecretKey)
|
_, err = bunker.RPC(ctx, "connect", []string{providerPubkey, ""})
|
||||||
_, err = bunker.RPC(ctx, "connect", []string{clientPubKey, ""})
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("initial connect error: %w", err)
|
return nil, fmt.Errorf("initial connect error: %w", err)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user