trs-js
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

trs.js

GitHub issues GitHub license NPM version

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.

Readme

Keywords

none

Package Sidebar

Install

npm i trs-js

Weekly Downloads

0

Version

0.2.0

License

MIT

Unpacked Size

207 kB

Total Files

8

Last publish

Collaborators

  • vcninc