diff options
| -rw-r--r-- | README.md | 2 | ||||
| -rw-r--r-- | website/index.html | 2 |
2 files changed, 2 insertions, 2 deletions
| @@ -52,7 +52,7 @@ func main() { | |||
| 52 | Kind: nostr.KindTextNote, | 52 | Kind: nostr.KindTextNote, |
| 53 | Content: "Hello Nostr!", | 53 | Content: "Hello Nostr!", |
| 54 | } | 54 | } |
| 55 | event.Sign(key) | 55 | key.Sign(event) |
| 56 | 56 | ||
| 57 | // Connect and publish | 57 | // Connect and publish |
| 58 | ctx := context.Background() | 58 | ctx := context.Background() |
diff --git a/website/index.html b/website/index.html index cb86f6f..194841d 100644 --- a/website/index.html +++ b/website/index.html | |||
| @@ -167,7 +167,7 @@ event := &nostr.Event{ | |||
| 167 | Kind: nostr.KindTextNote, | 167 | Kind: nostr.KindTextNote, |
| 168 | Content: "Hello Nostr!", | 168 | Content: "Hello Nostr!", |
| 169 | } | 169 | } |
| 170 | event.Sign(key) | 170 | key.Sign(event) |
| 171 | 171 | ||
| 172 | relay, _ := nostr.Connect(ctx, "wss://relay.damus.io") | 172 | relay, _ := nostr.Connect(ctx, "wss://relay.damus.io") |
| 173 | relay.Publish(ctx, event)</code></pre> | 173 | relay.Publish(ctx, event)</code></pre> |
