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 /README.md | |
| 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 'README.md')
| -rw-r--r-- | README.md | 2 |
1 files changed, 1 insertions, 1 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() |
