Has anyone tried wrapping
Into an Espruino library?
This Nordic page implies the Puck's processor should handle it:
It looks like this is the approach to wrapping it:
I haven't done this, but it shouldn't be too hard to use. There is actually already a version in the Espruino repository because it's used for the Puck.js firmware updater: https://github.com/espruino/Espruino/tree/master/targetlibs/nrf5x/external
There's some really good info on writing your own modules here now as well: http://www.espruino.com/Extending+Espruino+1
What specific functionality did you want? There is the Crypto library available for some common things.
I wanted to use the ECDH in that lib to establish a shared key that could then be used with AES, and probably the ECDSA to sign a JWT token.
For now it is all moot as I'm using NUS and JSON for data during prototyping, and that means the full memory of the SW is available to anything that connects to that service, but just trying to think ahead a little on the security patterns.
Thanks for those other links - it actually looks like a relatively easy port.
Don't worry about formatting, just type in the text and we'll take care of making sense of it. We will auto-convert links, and if you put asterisks around words we will make them bold.
For a full reference visit the Markdown syntax.
© Espruino, powered by microcosm.
Report a problem