mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-11-15 08:37:11 +01:00
nip46: fix assigning client secret key to struct.
This commit is contained in:
@@ -98,14 +98,15 @@ func NewBunker(
|
|||||||
sharedSecret, _ := nip04.ComputeSharedSecret(targetPublicKey, clientSecretKey)
|
sharedSecret, _ := nip04.ComputeSharedSecret(targetPublicKey, clientSecretKey)
|
||||||
|
|
||||||
bunker := &BunkerClient{
|
bunker := &BunkerClient{
|
||||||
pool: pool,
|
pool: pool,
|
||||||
target: targetPublicKey,
|
clientSecretKey: clientSecretKey,
|
||||||
relays: relays,
|
target: targetPublicKey,
|
||||||
sharedSecret: sharedSecret,
|
relays: relays,
|
||||||
listeners: xsync.NewMapOf[string, chan Response](),
|
sharedSecret: sharedSecret,
|
||||||
expectingAuth: xsync.NewMapOf[string, struct{}](),
|
listeners: xsync.NewMapOf[string, chan Response](),
|
||||||
onAuth: onAuth,
|
expectingAuth: xsync.NewMapOf[string, struct{}](),
|
||||||
idPrefix: "gn-" + strconv.Itoa(rand.Intn(65536)),
|
onAuth: onAuth,
|
||||||
|
idPrefix: "gn-" + strconv.Itoa(rand.Intn(65536)),
|
||||||
}
|
}
|
||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
|
|||||||
Reference in New Issue
Block a user