@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,5 +1,5 @@
|
|
|
1
1
|
import { CompiledCircuit, InputMap } from '@noir-lang/types';
|
|
2
|
-
import { P as ProofData } from './types-
|
|
2
|
+
import { P as ProofData } from './types-CxkI04bP.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Chain types for multi-chain proof formatting
|
|
@@ -56,6 +56,30 @@ interface EthereumChainMetadata extends ChainMetadata {
|
|
|
56
56
|
*/
|
|
57
57
|
type ChainMetadataFor<T extends ChainId> = T extends 'solana' ? SolanaChainMetadata : T extends 'ethereum' ? EthereumChainMetadata : ChainMetadata;
|
|
58
58
|
|
|
59
|
+
/**
|
|
60
|
+
* Network configuration for Solana deployments.
|
|
61
|
+
*/
|
|
62
|
+
declare enum Network {
|
|
63
|
+
Devnet = "devnet",
|
|
64
|
+
Testnet = "testnet",
|
|
65
|
+
Mainnet = "mainnet-beta",
|
|
66
|
+
Localnet = "localnet"
|
|
67
|
+
}
|
|
68
|
+
interface NetworkConfig {
|
|
69
|
+
rpcUrl: string;
|
|
70
|
+
programId: string;
|
|
71
|
+
explorerUrl: string;
|
|
72
|
+
}
|
|
73
|
+
declare const NETWORK_CONFIG: Record<Network, NetworkConfig>;
|
|
74
|
+
/**
|
|
75
|
+
* Get the explorer URL for a transaction.
|
|
76
|
+
*/
|
|
77
|
+
declare function getExplorerTxUrl(network: Network, signature: string): string;
|
|
78
|
+
/**
|
|
79
|
+
* Get the explorer URL for an account.
|
|
80
|
+
*/
|
|
81
|
+
declare function getExplorerAccountUrl(network: Network, address: string): string;
|
|
82
|
+
|
|
59
83
|
/**
|
|
60
84
|
* Available proving system providers
|
|
61
85
|
*/
|
|
@@ -89,6 +113,12 @@ interface IziNoirConfig {
|
|
|
89
113
|
* If omitted, operates in offchain mode (raw proofs, no chain formatting).
|
|
90
114
|
*/
|
|
91
115
|
chain?: Chain;
|
|
116
|
+
/**
|
|
117
|
+
* Solana network for deploy/verify operations.
|
|
118
|
+
* Only used when chain is Chain.Solana.
|
|
119
|
+
* Default: Network.Devnet
|
|
120
|
+
*/
|
|
121
|
+
network?: Network;
|
|
92
122
|
/** Circuit paths - required for Sunspot provider */
|
|
93
123
|
circuitPaths?: CircuitPaths;
|
|
94
124
|
}
|
|
@@ -137,4 +167,4 @@ interface IVerifier {
|
|
|
137
167
|
interface IProvingSystem extends ICompiler, IProver, IVerifier {
|
|
138
168
|
}
|
|
139
169
|
|
|
140
|
-
export { type
|
|
170
|
+
export { type CircuitPaths as C, type EthereumChainMetadata as E, type IProvingSystem as I, Network as N, Provider as P, type SolanaChainMetadata as S, type IziNoirConfig as a, type ChainId as b, type CircuitMetadata as c, type ChainMetadataFor as d, Chain as e, type ChainMetadata as f, type ICompiler as g, type IProver as h, type IVerifier as i, NETWORK_CONFIG as j, getExplorerTxUrl as k, getExplorerAccountUrl as l, type NetworkConfig as m };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CompiledCircuit, InputMap } from '@noir-lang/types';
|
|
2
|
-
import { P as ProofData } from './types-
|
|
2
|
+
import { P as ProofData } from './types-CxkI04bP.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Chain types for multi-chain proof formatting
|
|
@@ -56,6 +56,30 @@ interface EthereumChainMetadata extends ChainMetadata {
|
|
|
56
56
|
*/
|
|
57
57
|
type ChainMetadataFor<T extends ChainId> = T extends 'solana' ? SolanaChainMetadata : T extends 'ethereum' ? EthereumChainMetadata : ChainMetadata;
|
|
58
58
|
|
|
59
|
+
/**
|
|
60
|
+
* Network configuration for Solana deployments.
|
|
61
|
+
*/
|
|
62
|
+
declare enum Network {
|
|
63
|
+
Devnet = "devnet",
|
|
64
|
+
Testnet = "testnet",
|
|
65
|
+
Mainnet = "mainnet-beta",
|
|
66
|
+
Localnet = "localnet"
|
|
67
|
+
}
|
|
68
|
+
interface NetworkConfig {
|
|
69
|
+
rpcUrl: string;
|
|
70
|
+
programId: string;
|
|
71
|
+
explorerUrl: string;
|
|
72
|
+
}
|
|
73
|
+
declare const NETWORK_CONFIG: Record<Network, NetworkConfig>;
|
|
74
|
+
/**
|
|
75
|
+
* Get the explorer URL for a transaction.
|
|
76
|
+
*/
|
|
77
|
+
declare function getExplorerTxUrl(network: Network, signature: string): string;
|
|
78
|
+
/**
|
|
79
|
+
* Get the explorer URL for an account.
|
|
80
|
+
*/
|
|
81
|
+
declare function getExplorerAccountUrl(network: Network, address: string): string;
|
|
82
|
+
|
|
59
83
|
/**
|
|
60
84
|
* Available proving system providers
|
|
61
85
|
*/
|
|
@@ -89,6 +113,12 @@ interface IziNoirConfig {
|
|
|
89
113
|
* If omitted, operates in offchain mode (raw proofs, no chain formatting).
|
|
90
114
|
*/
|
|
91
115
|
chain?: Chain;
|
|
116
|
+
/**
|
|
117
|
+
* Solana network for deploy/verify operations.
|
|
118
|
+
* Only used when chain is Chain.Solana.
|
|
119
|
+
* Default: Network.Devnet
|
|
120
|
+
*/
|
|
121
|
+
network?: Network;
|
|
92
122
|
/** Circuit paths - required for Sunspot provider */
|
|
93
123
|
circuitPaths?: CircuitPaths;
|
|
94
124
|
}
|
|
@@ -137,4 +167,4 @@ interface IVerifier {
|
|
|
137
167
|
interface IProvingSystem extends ICompiler, IProver, IVerifier {
|
|
138
168
|
}
|
|
139
169
|
|
|
140
|
-
export { type
|
|
170
|
+
export { type CircuitPaths as C, type EthereumChainMetadata as E, type IProvingSystem as I, Network as N, Provider as P, type SolanaChainMetadata as S, type IziNoirConfig as a, type ChainId as b, type CircuitMetadata as c, type ChainMetadataFor as d, Chain as e, type ChainMetadata as f, type ICompiler as g, type IProver as h, type IVerifier as i, NETWORK_CONFIG as j, getExplorerTxUrl as k, getExplorerAccountUrl as l, type NetworkConfig as m };
|