28 Commits

Author SHA1 Message Date
Râu Cao
d59f31a3c6
Make code compatible with Ruby 2.7
Not including specs etc.
2024-01-15 12:34:53 +03:00
Josua Schmid
5497930dd5 Deprecate kind 2 2023-12-22 11:57:15 +00:00
Wilson Silva
c064a8d5f0
Fix a few YARD example rendering issues 2023-11-20 21:43:01 +07:00
Wilson Silva
8bc6b84f6f
Bump the gem version to v0.5.0 2023-11-20 21:05:36 +07: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
bba18d1bc0
Fix the generation of private keys
00c2660584
2023-11-20 12:39:58 +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
3fffcd1a4e
Use keyword arguments for User#create_event
This allows for code completion and fixes another RBS issue
2023-11-18 18:06:53 +07:00
Wilson Silva
4b630c678b
Ensure that Nostr::Crypto#descrypt_text always returns a string
Fixes another Steep/RBS violation
2023-11-18 16:38:03 +07:00
Wilson Silva
b54147cfce
Remove unnecessary blank space 2023-11-14 16:58:14 +07:00
Wilson Silva
0f9c0d3a3d
Add relay message type enums 2023-11-14 16:57:33 +07:00
Wilson Silva
80c272f149
Fix the formatting of encrypted direct message 2023-11-14 16:28:16 +07:00
Wilson Silva
be4c3e0e32
Update the documentation of the subscription id
Match the changes introduced in  https://github.com/nostr-protocol/nips/pull/299
2023-11-14 16:12:33 +07:00
Wilson Silva
30eafa1203
Remove id/pubkey prefix documentation
Removed from the protocol in https://github.com/nostr-protocol/nips/pull/703
2023-11-14 16:12:32 +07:00
Wilson Silva
378970b6ab
Bump the gem version to v0.4.0 2023-02-25 17:43:51 +07:00
Wilson Silva
857bf0ce8e
Implement NIP-04: Encrypted Direct Messages 2023-02-25 17:38:00 +07:00
Wilson Silva
0df4dbb979
Add convenience methods to append event and pubkey references 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
0e8b38bf6e
Fix pubkey generation adding leading 0s when < 64 bytes 2023-02-25 17:37:57 +07:00
Wilson Silva
abc3be3f85
Bump the gem version to v0.3.0 2023-02-15 18:33:25 +07:00
Wilson Silva
19f07efdeb
Add client support for NIP-02 (manage contact lists) 2023-02-15 18:33:24 +07:00
Wilson Silva
e0f7a4cc50
Bump the gem version to v0.2.0 2023-01-12 17:21:18 +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