doc/wg/core/notes/core-notes-2023-06-16.md
Attendees:
tockloader. Also we can now add TBF headers to
compiled binaries, which is useful if you want to add permissions or
something. I also have a HMAC-SHA256 implementation, but that is pending on
potential changes to the Digest HIL, which is why I put it on the agenda.set_client() for ClientDataHash and ClientDataVerifyset_client for each client type.
However, the Rust client types don't work for that -- can't save a supertrait
somewhere when you only need a fine-grained trait.Digest. You call
my_hmac.set_client() and give it a DataHashClient. But there's also a
set_client that just takes a DataClient. What if you call both and set
both clients? Does that overwrite the other one? Does it not do anything
because you already set the client? Right now it doesn't do anything, we only
use the super traits, not the fine-grained one.set_client for DataHashClient, which will set
both, but if there's a later call then a runtime client should refuse to
accept a different client for DataClient. If you want to change the client,
you should have to set them all to None first. Or do we want to support
having different clients?Digest isn't a good example -- you want to be able to
add data, and verify it's not something else, but when would adding data know
to call verify? The straightforward case is "I need verify, so I specify that
trait, and if it doesn't implement it I get a compile error". I think our path
forward right now is we can do the 3-clients-or-1-client, and by using a
nightly featureset_client it doesn't do
anything and you don't get a callback, so you have to support the verify
callback.set_client for that code, but didn't realize
the code doesn't do what it's supposed to and couldn't get the types to work.
Johnathan?make ci-<something>.try_borrow_mut to get rid of the reentrance, can
fix soundness and save space.tock-cells but don't
implement it. It seems that clarification would be great.libtock-rs apps. May have representation on this call in the future.