trs-js
v0.2.0
Published
Traceable Ring Signatures (TRS) for JavaScript & Node.js
Downloads
4
Readme
trs.js
A port of rozbb/fujisaki-ringsig to WebAssembly for use in browsers and Node.js.
Contains an implementation of the of the Traceable Ring Signature algorithm by Eiichiro Fujisaki and Koutarou Suzuki.
Usage
Install the package via NPM:
npm i --save trs-js
Require the package in your code:
const trs = require('trs-js')
Call the functions like so:
trs.gen_keypair()
trs.public_to_ascii(public_key)
trs.ascii_to_public(ascii)
trs.generate_signature(message, pki, issue, private_key)
trs.signature_to_ascii(signature)
trs.ascii_to_signature(ascii)
trs.verify_signature(message, pki, issue, signature)
trs.trace_signature(message_1, signature_1, message_2, signature_2, pki, issue)
Check out example.js for a full example.
Authors
The original rust code is by Michael Rosenberg: rozbb. Ported to WebAssembly by Vivek Nair: VCNinc.
License
Licensed under the MIT license (LICENSE).
Warning
As with the original Rust crate, this package should not be used in production code. It contains experimental cryptography and uses small (insecure) keys.