@izi-noir/sdk 0.1.0 → 0.1.1
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/index.cjs +1003 -77
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +41 -1
- package/dist/index.d.ts +41 -1
- package/dist/index.js +1009 -79
- package/dist/index.js.map +1 -1
- package/dist/providers/arkworks.cjs +982 -36
- package/dist/providers/arkworks.cjs.map +1 -1
- package/dist/providers/arkworks.d.cts +7 -1
- package/dist/providers/arkworks.d.ts +7 -1
- package/dist/providers/arkworks.js +989 -38
- package/dist/providers/arkworks.js.map +1 -1
- package/dist/providers/barretenberg.cjs +982 -36
- package/dist/providers/barretenberg.cjs.map +1 -1
- package/dist/providers/barretenberg.js +989 -38
- 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.js +2 -20
- package/dist/providers/solana.js.map +1 -1
- 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/package.json +6 -2
package/dist/index.d.cts
CHANGED
|
@@ -1193,4 +1193,44 @@ interface BatchVerifyResult {
|
|
|
1193
1193
|
*/
|
|
1194
1194
|
declare function batchVerify(verifier: OffchainVerifier, requests: VerifyRequest[]): Promise<BatchVerifyResult>;
|
|
1195
1195
|
|
|
1196
|
-
|
|
1196
|
+
/**
|
|
1197
|
+
* Configuration for IZI-NOIR project build
|
|
1198
|
+
*/
|
|
1199
|
+
interface IziNoirBuildConfig {
|
|
1200
|
+
/** Directory containing circuit files */
|
|
1201
|
+
circuitsDir: string;
|
|
1202
|
+
/** Output directory for compiled circuits */
|
|
1203
|
+
outDir: string;
|
|
1204
|
+
/** Proving provider to use */
|
|
1205
|
+
provider: 'arkworks' | 'barretenberg';
|
|
1206
|
+
/** Watch mode configuration */
|
|
1207
|
+
watch?: {
|
|
1208
|
+
/** Debounce time for file changes in milliseconds */
|
|
1209
|
+
debounce?: number;
|
|
1210
|
+
};
|
|
1211
|
+
/** Advanced options */
|
|
1212
|
+
advanced?: {
|
|
1213
|
+
/** Enable debug output */
|
|
1214
|
+
debug?: boolean;
|
|
1215
|
+
/** Parallel compilation */
|
|
1216
|
+
parallel?: boolean;
|
|
1217
|
+
};
|
|
1218
|
+
}
|
|
1219
|
+
/**
|
|
1220
|
+
* Helper function to define IZI-NOIR configuration with type safety.
|
|
1221
|
+
*
|
|
1222
|
+
* @example
|
|
1223
|
+
* ```typescript
|
|
1224
|
+
* // izi-noir.config.ts
|
|
1225
|
+
* import { defineConfig } from '@izi-noir/sdk';
|
|
1226
|
+
*
|
|
1227
|
+
* export default defineConfig({
|
|
1228
|
+
* circuitsDir: './circuits',
|
|
1229
|
+
* outDir: './generated',
|
|
1230
|
+
* provider: 'arkworks',
|
|
1231
|
+
* });
|
|
1232
|
+
* ```
|
|
1233
|
+
*/
|
|
1234
|
+
declare function defineConfig(config: IziNoirBuildConfig): IziNoirBuildConfig;
|
|
1235
|
+
|
|
1236
|
+
export { AcornParser, ArkworksWasm, ArkworksWasmConfig, type AssertStatement, type BatchVerifyResult, type BinaryExpr, type BinaryOperator, type CircuitDefinition, type CircuitExportEntry, CircuitFunction, type CircuitInputDef, CircuitMetadata, type CircuitParam, CircuitRegistry, type CircuitRegistryExport, type CloseVkAccounts, type CreateProofDependencies, CreateProofUseCase, type DeploymentResult, type DeploymentsState, type EnsureDeployedOptions, type Expr, type GetCircuitOptions, IChainFormatter, type IParser, IProvingSystem, type IdentifierExpr, type InitAndVerifyInstructions, type InitVkAccounts, InputValue, type InstructionData, type IziNoirBuildConfig, type LiteralExpr, type MemberExpr, NETWORK_ENDPOINTS, type OffchainCircuitConfig, OffchainVerifier, type OffchainVerifierConfig, type ParsedCircuit, ProofData, ProofResult, type RegisteredCircuit, type SignerInfo, SolanaChainMetadata, SolanaFormatter, type SolanaNetwork, SolanaProofData, SolanaTransactionBuilder, type Statement, type TransactionBuilderConfig, type VerificationEndpointOptions, type VerifyProofAccounts, type VerifyRequest, type VerifyResult, type VkDeployment, VkDeploymentManager, type VkDeploymentManagerConfig, batchVerify, createArkworksWasmContainer, createDefaultContainer, createNodeVkDeploymentManager, createVerificationEndpoint, createVerifierMiddleware, defineCircuit, defineConfig, generateNoir, getGlobalRegistry };
|
package/dist/index.d.ts
CHANGED
|
@@ -1193,4 +1193,44 @@ interface BatchVerifyResult {
|
|
|
1193
1193
|
*/
|
|
1194
1194
|
declare function batchVerify(verifier: OffchainVerifier, requests: VerifyRequest[]): Promise<BatchVerifyResult>;
|
|
1195
1195
|
|
|
1196
|
-
|
|
1196
|
+
/**
|
|
1197
|
+
* Configuration for IZI-NOIR project build
|
|
1198
|
+
*/
|
|
1199
|
+
interface IziNoirBuildConfig {
|
|
1200
|
+
/** Directory containing circuit files */
|
|
1201
|
+
circuitsDir: string;
|
|
1202
|
+
/** Output directory for compiled circuits */
|
|
1203
|
+
outDir: string;
|
|
1204
|
+
/** Proving provider to use */
|
|
1205
|
+
provider: 'arkworks' | 'barretenberg';
|
|
1206
|
+
/** Watch mode configuration */
|
|
1207
|
+
watch?: {
|
|
1208
|
+
/** Debounce time for file changes in milliseconds */
|
|
1209
|
+
debounce?: number;
|
|
1210
|
+
};
|
|
1211
|
+
/** Advanced options */
|
|
1212
|
+
advanced?: {
|
|
1213
|
+
/** Enable debug output */
|
|
1214
|
+
debug?: boolean;
|
|
1215
|
+
/** Parallel compilation */
|
|
1216
|
+
parallel?: boolean;
|
|
1217
|
+
};
|
|
1218
|
+
}
|
|
1219
|
+
/**
|
|
1220
|
+
* Helper function to define IZI-NOIR configuration with type safety.
|
|
1221
|
+
*
|
|
1222
|
+
* @example
|
|
1223
|
+
* ```typescript
|
|
1224
|
+
* // izi-noir.config.ts
|
|
1225
|
+
* import { defineConfig } from '@izi-noir/sdk';
|
|
1226
|
+
*
|
|
1227
|
+
* export default defineConfig({
|
|
1228
|
+
* circuitsDir: './circuits',
|
|
1229
|
+
* outDir: './generated',
|
|
1230
|
+
* provider: 'arkworks',
|
|
1231
|
+
* });
|
|
1232
|
+
* ```
|
|
1233
|
+
*/
|
|
1234
|
+
declare function defineConfig(config: IziNoirBuildConfig): IziNoirBuildConfig;
|
|
1235
|
+
|
|
1236
|
+
export { AcornParser, ArkworksWasm, ArkworksWasmConfig, type AssertStatement, type BatchVerifyResult, type BinaryExpr, type BinaryOperator, type CircuitDefinition, type CircuitExportEntry, CircuitFunction, type CircuitInputDef, CircuitMetadata, type CircuitParam, CircuitRegistry, type CircuitRegistryExport, type CloseVkAccounts, type CreateProofDependencies, CreateProofUseCase, type DeploymentResult, type DeploymentsState, type EnsureDeployedOptions, type Expr, type GetCircuitOptions, IChainFormatter, type IParser, IProvingSystem, type IdentifierExpr, type InitAndVerifyInstructions, type InitVkAccounts, InputValue, type InstructionData, type IziNoirBuildConfig, type LiteralExpr, type MemberExpr, NETWORK_ENDPOINTS, type OffchainCircuitConfig, OffchainVerifier, type OffchainVerifierConfig, type ParsedCircuit, ProofData, ProofResult, type RegisteredCircuit, type SignerInfo, SolanaChainMetadata, SolanaFormatter, type SolanaNetwork, SolanaProofData, SolanaTransactionBuilder, type Statement, type TransactionBuilderConfig, type VerificationEndpointOptions, type VerifyProofAccounts, type VerifyRequest, type VerifyResult, type VkDeployment, VkDeploymentManager, type VkDeploymentManagerConfig, batchVerify, createArkworksWasmContainer, createDefaultContainer, createNodeVkDeploymentManager, createVerificationEndpoint, createVerifierMiddleware, defineCircuit, defineConfig, generateNoir, getGlobalRegistry };
|