serial-signer

1.0.1 • Public • Published

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))

Readme

Keywords

none

Package Sidebar

Install

npm i serial-signer

Weekly Downloads

1

Version

1.0.1

License

ISC

Unpacked Size

2.38 kB

Total Files

4

Last publish

Collaborators

  • rafapaezbas