@izi-noir/sdk 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{IProvingSystem-TKNofoo8.d.cts → IProvingSystem-BpI0rmve.d.cts} +32 -2
- package/dist/{IProvingSystem-D9TnEig0.d.ts → IProvingSystem-D0X9Rp3W.d.ts} +32 -2
- package/dist/index.cjs +29968 -1358
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +47 -7
- package/dist/index.d.ts +47 -7
- package/dist/index.js +29948 -1317
- package/dist/index.js.map +1 -1
- package/dist/providers/arkworks.cjs +29061 -173
- package/dist/providers/arkworks.cjs.map +1 -1
- package/dist/providers/arkworks.d.cts +11 -5
- package/dist/providers/arkworks.d.ts +11 -5
- package/dist/providers/arkworks.js +29081 -167
- package/dist/providers/arkworks.js.map +1 -1
- package/dist/providers/barretenberg.cjs +29061 -173
- package/dist/providers/barretenberg.cjs.map +1 -1
- package/dist/providers/barretenberg.d.cts +4 -4
- package/dist/providers/barretenberg.d.ts +4 -4
- package/dist/providers/barretenberg.js +29081 -167
- package/dist/providers/barretenberg.js.map +1 -1
- package/dist/providers/solana.cjs +2 -20
- package/dist/providers/solana.cjs.map +1 -1
- package/dist/providers/solana.d.cts +1 -1
- package/dist/providers/solana.d.ts +1 -1
- package/dist/providers/solana.js +2 -20
- package/dist/providers/solana.js.map +1 -1
- package/dist/providers/sunspot.cjs.map +1 -1
- package/dist/providers/sunspot.d.cts +3 -3
- package/dist/providers/sunspot.d.ts +3 -3
- package/dist/providers/sunspot.js.map +1 -1
- package/dist/{types-CaaigonG.d.cts → types-CxkI04bP.d.cts} +14 -2
- package/dist/{types-CaaigonG.d.ts → types-CxkI04bP.d.ts} +14 -2
- package/dist/wasm/nodejs/arkworks_groth16_wasm.js +52 -0
- package/dist/wasm/nodejs/arkworks_groth16_wasm_bg.wasm +0 -0
- package/dist/wasm/web/arkworks_groth16_wasm.js +50 -0
- package/dist/wasm/web/arkworks_groth16_wasm_bg.wasm +0 -0
- package/dist/{wasmInit-iEYiiB8M.d.cts → wasmInit-D615cpte.d.cts} +147 -12
- package/dist/{wasmInit-KV6DTj4J.d.ts → wasmInit-oOZwkgo_.d.ts} +147 -12
- package/package.json +6 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
import { P as ProofData } from '../types-
|
|
1
|
+
import { I as IProvingSystem } from '../IProvingSystem-BpI0rmve.cjs';
|
|
2
|
+
export { C as CircuitPaths, a as IziNoirConfig, P as Provider } from '../IProvingSystem-BpI0rmve.cjs';
|
|
3
|
+
import { P as ProofData } from '../types-CxkI04bP.cjs';
|
|
4
4
|
import { CompiledCircuit, InputMap } from '@noir-lang/types';
|
|
5
5
|
export { CompiledCircuit, InputMap } from '@noir-lang/types';
|
|
6
|
-
export { a as IziNoir, i as initNoirWasm, b as isWasmInitialized } from '../wasmInit-
|
|
6
|
+
export { a as IziNoir, i as initNoirWasm, b as isWasmInitialized } from '../wasmInit-D615cpte.cjs';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* ArkworksWasm proving system.
|
|
@@ -58,6 +58,8 @@ interface ArkworksWasmModule {
|
|
|
58
58
|
return_values: number[];
|
|
59
59
|
};
|
|
60
60
|
version(): string;
|
|
61
|
+
setup_from_r1cs(r1csJson: string): ArkworksSetupResult;
|
|
62
|
+
prove_from_r1cs(provingKeyB64: string, r1csJson: string, witnessJson: string): ArkworksProofResult;
|
|
61
63
|
}
|
|
62
64
|
/**
|
|
63
65
|
* Configuration for ArkworksWasm prover
|
|
@@ -74,8 +76,12 @@ interface ArkworksWasmConfig {
|
|
|
74
76
|
interface ArkworksCompiledCircuit extends CompiledCircuit {
|
|
75
77
|
/** Marker to identify ArkworksWasm circuits */
|
|
76
78
|
__arkworks: true;
|
|
77
|
-
/** ACIR program as JSON string (used for setup/prove) */
|
|
79
|
+
/** ACIR program as JSON string (used for setup/prove) - DEPRECATED, use r1csJson */
|
|
78
80
|
acirJson: string;
|
|
81
|
+
/** R1CS definition as JSON string (used for setup/prove) */
|
|
82
|
+
r1csJson: string;
|
|
83
|
+
/** Mapping from noir witness index to R1CS witness index */
|
|
84
|
+
witnessIndexMapping: Map<number, number>;
|
|
79
85
|
/** Cached proving key (base64) if cacheKeys is enabled */
|
|
80
86
|
provingKey?: string;
|
|
81
87
|
/** Cached verifying key (base64) if cacheKeys is enabled */
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
import { P as ProofData } from '../types-
|
|
1
|
+
import { I as IProvingSystem } from '../IProvingSystem-D0X9Rp3W.js';
|
|
2
|
+
export { C as CircuitPaths, a as IziNoirConfig, P as Provider } from '../IProvingSystem-D0X9Rp3W.js';
|
|
3
|
+
import { P as ProofData } from '../types-CxkI04bP.js';
|
|
4
4
|
import { CompiledCircuit, InputMap } from '@noir-lang/types';
|
|
5
5
|
export { CompiledCircuit, InputMap } from '@noir-lang/types';
|
|
6
|
-
export { a as IziNoir, i as initNoirWasm, b as isWasmInitialized } from '../wasmInit-
|
|
6
|
+
export { a as IziNoir, i as initNoirWasm, b as isWasmInitialized } from '../wasmInit-oOZwkgo_.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* ArkworksWasm proving system.
|
|
@@ -58,6 +58,8 @@ interface ArkworksWasmModule {
|
|
|
58
58
|
return_values: number[];
|
|
59
59
|
};
|
|
60
60
|
version(): string;
|
|
61
|
+
setup_from_r1cs(r1csJson: string): ArkworksSetupResult;
|
|
62
|
+
prove_from_r1cs(provingKeyB64: string, r1csJson: string, witnessJson: string): ArkworksProofResult;
|
|
61
63
|
}
|
|
62
64
|
/**
|
|
63
65
|
* Configuration for ArkworksWasm prover
|
|
@@ -74,8 +76,12 @@ interface ArkworksWasmConfig {
|
|
|
74
76
|
interface ArkworksCompiledCircuit extends CompiledCircuit {
|
|
75
77
|
/** Marker to identify ArkworksWasm circuits */
|
|
76
78
|
__arkworks: true;
|
|
77
|
-
/** ACIR program as JSON string (used for setup/prove) */
|
|
79
|
+
/** ACIR program as JSON string (used for setup/prove) - DEPRECATED, use r1csJson */
|
|
78
80
|
acirJson: string;
|
|
81
|
+
/** R1CS definition as JSON string (used for setup/prove) */
|
|
82
|
+
r1csJson: string;
|
|
83
|
+
/** Mapping from noir witness index to R1CS witness index */
|
|
84
|
+
witnessIndexMapping: Map<number, number>;
|
|
79
85
|
/** Cached proving key (base64) if cacheKeys is enabled */
|
|
80
86
|
provingKey?: string;
|
|
81
87
|
/** Cached verifying key (base64) if cacheKeys is enabled */
|