- Fix:
nips::nip04::decrypt
method - Now working again (@0xtlt)
- Fix:
Client::get_events_of
Waiting for all relays (@0xtlt)
- Edit: Everywhere where we need to give a public key hex or event id hex, we can now give a bech32 public key (npub and note) except for
Client::set_contact_list
method (@0xtlt)
- Add:
bech32::auto_bech32_to_hex
method - Auto detect bech32 (note, nsec or npub,) or hex and force convert to hex - Fix: NIP04 encrypt and decrypt - Now working again
- Fix:
Client::get_events_of
method - Now skip non events messages
- Fix:
Client::get_events_of
method - Now skip non events messages
- Add:
Identity::make_event
method - Add:
Client::broadcast_event
method
- Add:
utils::parse_content_tags
method - Add:
utils::ParsedTagsResult
struct
- Add:
event::extract_events
method - Add:
event::extract_events_ws
method
- Add:
async
feature to enable async support and disable sync
- Add
nips::nip05::check_validity
method - Add
nips::nip05::get_nip05
method - Add
nips::nip05::get_nips05
method - Add
nips::nip05::NostrWellKnown
structure - Add
nips::nip05::NIP5Error
enum
- Add:
Event.get_content
method - Add:
Event.get_content_id
method - Add:
Event.verify
method - Add:
EventError
enum
- Edit:
kinds
will now beOption<Vec<u16>>
instead ofOption<Vec<u8>>
inReqFilter
- Add:
Client.publish_replaceable_event
- Add:
Client.publish_ephemeral_event
- Add:
nips::nip16:NIP16Error
enum - Add:
nips::nip16::publish_nip16_event
- Edit:
Event
kind
field from u8 to u16 - Edit:
EventPrepare
kind
field from u8 to u16
- Add:
bech32::to_bech32
method to convert aHex
to a bech32 address - Add:
bech32::from_hb_to_hex
method to convert a bech32 address to aHex
(hb for hex and bech32)
- Edit:
EventPrepare.to_event
method accepts pow difficulty target - Edit:
EventPrepare::count_leading_zero_bits
method returns u16 - Edit:
EventPrepare.to_pow_event
method returns Result<(), NIP13Error> - Edit:
Client.set_metadata
method accepts pow difficulty target - Edit:
Client.publish_text_note
method accepts pow difficulty target - Edit:
Client.add_recommended_relay
method accepts pow difficulty target - Edit:
Client.set_contact_list
method accepts pow difficulty target - Edit:
Client.react_to
method accepts pow difficulty target - Edit:
Client.like
method accepts pow difficulty target - Edit:
Client.dislike
method accepts pow difficulty target - Edit:
Client.send_private_message
method accepts pow difficulty target - Edit:
Client.delete_event
method accepts pow difficulty target - Edit:
Client.delete_event_with_reason
method accepts pow difficulty target - Remove:
Client.publish_pow_text_note
- Add:
nips::nip11::get_relay_information_document
method
- Add:
nips::nip13::NIP13Error
enum - Add:
EventPrepare::count_leading_zero_bits
method - Add:
EventPrepare.to_pow_event
method - Add:
Client.publish_pow_text_note
method
- Edit:
OpenSSL
dependency replaced byrustls
- Edit: Errors are now enums
- Edit: Added
Message
type
- Add: NIP-04 support
- Add:
nips::nip4::PrivateMessage
structure - Add:
nips::nip4::decrypt
method - Add:
nips::nip4::encrypt
method - Add:
Client.send_private_message
method - Add:
Client.get_private_events_with
method - Add:
Client.get_private_messages_with
method
- Edit:
Client.publish_text_note
method returns the Event object - Edit:
Client.delete_event
method - Edit:
Client.delete_event_with_reason
method
- Added:
Client.react_to
method - Added:
Client.like
method - Added:
Client.dislike
method
- Added:
Client.get_contact_list
method - Added:
Client.set_contact_list
method - Added:
Client.add_event
method - Added:
Client.get_events
method - Added:
Client.get_events_of
method - Added:
ContactListTag
structure - Added:
ContactListTag.to_tags
method
- Removed:
Client.listen
function (Replaced byClient.next_data
) - Added:
Client.next_data
function - Added:
Client.remove_relay
function
- Added:
Client
structure - Added:
Client::new
function - Added:
Client.add_relay
function - Added:
Client.listen
function - Added:
Client.subscribe
function - Added:
Client.subscribe_with_id
function - Added:
Client.unsubscribe
function - Added:
Identity
structure - Added:
Identity::from_str
function with hex private key support - Added:
random_hash
function - Added:
get_timestamp
function - Added:
get_random_secret_key
function - Added:
secret_key_from_str
function - Added:
get_public_key_from_secret
function - Added:
get_str_keys_from_secret
function - Added:
EventPrepare
structure - Added:
EventPrepare.get_content
function - Added:
EventPrepare.get_content_id
function - Added:
EventPrepare.to_event
function - Added:
Event
structure - Added:
Event.to_string
function - Added
Req
structure - Added:
Req::new
function - Added:
Req.get_close_event
function - Added:
Req.to_string()
function - Added:
ReqFilter
structure - Added:
ReqFilter.to_json
function - Added:
SimplifiedWS
structure - Added:
SimplifiedWS::new
function - Added:
SimplifiedWS.send_message
function - Added:
SimplifiedWS.read_message
function