serial-signer
v1.0.1
Published
Serialport communication module for [esp32-crypto-signer](https://github.com/rafapaezbas/esp32-crypto-signer)
Downloads
4
Readme
Serial-signer
Serialport communication module for esp32-crypto-signer
Usage
const signer = new SerialSigner('/dev/ttyUSB0')
await signer.ready()
const pk = await signer.publicKey()
const message = Buffer.from('hello world')
const signature = await signer.sign(message)
assert.ok(sodium.crypto_sign_verify_detached(signature, message, pk))