Wilson Silva
90ab1a6149
Add plain text and coloured logging to the Client
...
Logs websocket events (connect, message, error and close events)
2024-04-13 14:12:13 +01:00
Wilson Silva
01010c763f
Allow the verification of signatures and events
...
Added the methods:
- Event#verify_signature
- Crypto#check_sig!
- Crypto#valid_sig?
- Crypto#sign_message
Fixed a primitive obsession by introducing a Signature class to ensure that signatures are valid Nostr signatures.
2024-03-15 19:13:33 +00:00
Wilson Silva
61a88981e6
Add full NIP-19 compatibility
...
note, nprofile, nevent, naddr, npub, nsec and nrelay
2023-11-20 21:03:24 +07:00
Wilson Silva
3520cf8219
Implement NIP-19 bech32-encoded private and public keys
...
https://github.com/nostr-protocol/nips/blob/master/19.md
2023-11-20 09:59:27 +07:00
Wilson Silva
0f9c0d3a3d
Add relay message type enums
2023-11-14 16:57:33 +07:00
Wilson Silva
857bf0ce8e
Implement NIP-04: Encrypted Direct Messages
2023-02-25 17:38:00 +07:00
Wilson Silva
79567fcf22
Extract event signing into its own class
2023-02-25 17:37:58 +07:00
Wilson Silva
97037e6e30
Merge EventFragment into Event
...
Treating Event as a Value Object in the strictest sense requires additional abstractions and internal complexity that the gem could do without, at least for now.
2023-02-25 17:37:57 +07:00
Wilson Silva
5b1786ddec
Add NIP-01 compliant client code
2023-01-12 17:21:17 +07:00
Wilson Silva
e344ebda82
Remove the unused Error class
2023-01-10 15:51:37 +07:00
Wilson Silva
3c228703a9
Fix RuboCop violations
2023-01-06 11:10:17 +07:00
Wilson Silva
9d0bbab478
Document the main module
2023-01-06 11:10:16 +07:00
Wilson Silva
7fded5bb7f
Initial commit
2023-01-06 10:00:47 +07:00