json-proof-token-js
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

json-proof-token-js

A minimal project demonstrating JSON Web Proof (JWP) logic in Rust, exposed via JavaScript/TypeScript bindings. This setup is based on the json-proof-token repository.

Prerequisites

  • Rust: Install from rustup.rs. Make sure you have the wasm32-unknown-unknown target installed:
    rustup target add wasm32-unknown-unknown
  • Bun (optional): Install from bun.sh.
  • Package manager (recommended): @antfu/ni
    npm i -g @antfu/ni
    Or feel free to use npm, pnpm, or yarn.

Scripts

  • Build:

    nr build

    (Compiles the Rust code to WASM and bundles the JS.)

  • Test:

    nr test

    This runs Rust tests first, then JavaScript tests.

  • Check (format & lint):

    nr check

Development Workflow

  1. Write and run Rust tests in src/*.rs (or the tests module).
  2. Use nr build to rebuild the WASM package.
  3. Write and run JavaScript tests in test/*.test.ts.
  4. Once everything passes, we can consider publishing (strategy TBD).

Happy coding!

Readme

Keywords

none

Package Sidebar

Install

npm i json-proof-token-js

Weekly Downloads

0

Version

0.1.1

License

none

Unpacked Size

684 kB

Total Files

6

Last publish

Collaborators

  • dorakemon