0.0.4 • Published 2 months ago

gnark-witnejs v0.0.4

Weekly downloads
-
License
WTFPL
Repository
github
Last release
2 months ago

gnark-witnejs

ci

gnark witness serializer in js

npm i gnark-witnejs

Usage

import serialize from "gnark-witnejs"

const inputs = { x: 3n, y: 35n, z: [ [ 0n, 99n ], 77n ] }
const publics = { x: true } // indicates public inputs
const opts = {/* modulus: BN254_R, publicOnly: false */}

const buf = serialize(inputs, publics, opts)

Make sure that:

  • input fields appear in the same order as in the golang struct
  • the input object does not contain nested objects

    nested arrays are supported though

0.0.3

2 months ago

0.0.2

2 months ago

0.0.4

2 months ago

0.0.1

2 months ago