User avatar
neocat_polyproto polyproto federation protocol @polyproto@amazonawaws.com
3mo
A very large refactor was just merged into the polyproto Rust SDK crate! Work on this commenced on Jan. 31st and includes over 40 commits, which were squashed down to 10 commits in the end. neobot_melt_3

74 files were changed, +3189 lines added and -3646 lines removed (457 lines less, in the end).

Why is this cool?

Well, first of all, finishing off on something you've worked on for almost a month is always cool!
blobcat_amused ​:neobot_stretch_down:​
neobot_stretch_rightneobot_stretch_hneobot_stretch_hneobot_stretch_dl
But also, the reason for this refactor were developer UX issues I have noticed while working on the polyproto-core home server "sonata". I noticed, that the crate was written in such a way, that finding out whether any specific certificate was an actor ID-Cert, a home server ID-Cert, or just a plain invalid certificate required a
lot of additional work on the developers' end. What this refactor did, is essentially remove generic "ID-Certs" from the library in favor of two new, more specialized/focused types: "IdCertActor" and "IdCertHs", representing actor and home server certificates respectively. Now, if you are coding and have a IdCertActor metaphorically in front of you, you can be sure, that that ID-Cert has all the specified criteria that an ID-Cert for an actor has to meet, as per the specification.

codeberg.org/polyphony/polyproto-rs/pulls/95
❤️1
2
4
15
1

User avatar
flori_ava_star:~cursor_blinking made-with-estrogen verifiedlesbian @star@amazonawaws.com
3mo
Author's note: For the refactor itself, it wasn't needed that 74 files had to be touched. That was just because I (as usual) snuck many little changes not related to this PR itself into this PR, because currently no one else is working on this, so therefore I could blobcat_blep ablobcatmusic
:neocat_pat_256@app.wafrn.net:1:neocat_pat_floof@ck.catwithaclari.net:2
0
1
1
3
User avatar
neocat_polyproto polyproto federation protocol @polyproto@amazonawaws.com
3mo
aw man that neobot head is now wireless

i tried :3
1
0
8
0
User avatar
kitteh ​:Blobhaj_Hug_Plushie:​ @creaturr@app.wafrn.net
3mo
@polyproto

Looks good an my end :3
1
0
1
0
User avatar
neocat_polyproto polyproto federation protocol @polyproto@amazonawaws.com
3mo
@creaturr Yayyy!!
0
0
1
0