openwsn-berkeley / lakers

EDHOC implemented in Rust, optimized for microcontrollers, with bindings for C and Python.
https://crates.io/crates/lakers
BSD 3-Clause "New" or "Revised" License
12 stars 10 forks source link

Add example / implementation for coap-handler #107

Closed chrysn closed 8 months ago

chrysn commented 9 months ago

The coap-handler trait provides a means for servers to be implemented in a portable way across CoAP stacks. For example, it can be served from the coap crate, or from RIOT-OS. This PR adds an example of how to run an EDHOC server on there.

On the long run, this may spin into a standalone crate that pulls together EDHOC, OSCORE and CWT implementations; for the time being, it serves me as a test bed for making sure that this can be used even on very minimal CoAP implementations. I'm making this into a PR so that a) it's easier to show where requirements such as those behind #104 come from, and b) because I think it may make for a more versatile demo than the current one (at least when duly polished, at which point it'll go from draft PR into PR).

This branch is based on remove-hacspec, in particular because it depends on #104.

geonnave commented 9 months ago

Feel free to target main now that remove-hacspec has been merged.

malishav commented 8 months ago

@chrysn what is the status of this PR? It seems it passes the CI but it is still marked as a draft. Could you rebase on top of latest main?

chrysn commented 8 months ago

Rebasing; all I'll change to replace dependency wildcards.