Skip to content

dorakemon/json-proof-token-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 publish nr build && npm publish.

Happy coding!

About

A minimal Rust-based JSON Web Proof (JWP) library exposed via JavaScript/TypeScript bindings, inspired by json-proof-token (CyberLinks) crate.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published