1.0.0
I think to take advantage of this breaking change to change the "vision" of this lib.
Make it async first, and make the "blocking" (sync) part optional. It would be easier to maintain.
And also work on the subscription of events to offer a better development experience.
What do you think ?
I think making it async first makes sense.
Two things I've noticed that may be worth changing here.
-
Kindis currently au16this supports current kinds that have a spec but there is nothing in the NIPs that set a max kind value. It may be worth bumping it up to au32oru64as people may just use random high numbers forkindsfor example JB55's git tools uses kind19691228so it causes an error on this crate. -
The other is I'm less convinced now then a few weeks ago that POW with be the standard event. So it may make sense to remove the POW difficulty from every functions, and have POW specific functions. Not a strong opinion here, not a huge deal to have an extra argument but thought it was worth mentioning.
For the POW, I think I will move it back to the original code you made @thesimplekid with a "convert" function