diff options
| author | Clawd <ai@clawd.bot> | 2026-02-17 10:18:23 -0800 |
|---|---|---|
| committer | Clawd <ai@clawd.bot> | 2026-02-17 10:18:23 -0800 |
| commit | 1ef70dde6dcf12a4e00fcf68acd46eade37f2b04 (patch) | |
| tree | 317f785e4e5220f8d54256f6a234788b8b2382e5 /website | |
| parent | 35f726133c5f7d9a900139c840649b1d9aa23dde (diff) | |
Fix docs: key.Sign(event), not event.Sign(key)v0.2.0
The code was already correct - docs/website had it backwards.
Diffstat (limited to 'website')
| -rw-r--r-- | website/index.html | 2 |
1 files changed, 1 insertions, 1 deletions
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> |
