@sip-protocol/sdk 0.1.9 → 0.2.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/LICENSE +21 -0
- package/dist/browser.d.mts +2 -0
- package/dist/browser.d.ts +2 -0
- package/dist/browser.js +12925 -0
- package/dist/browser.mjs +1037 -0
- package/dist/chunk-4VJHI66K.mjs +12120 -0
- package/dist/chunk-O4Y2ZUDL.mjs +12721 -0
- package/dist/index.d.mts +800 -91
- package/dist/index.d.ts +800 -91
- package/dist/index.js +1137 -266
- package/dist/index.mjs +260 -11114
- package/package.json +20 -14
- package/src/adapters/near-intents.ts +138 -30
- package/src/browser.ts +35 -0
- package/src/commitment.ts +4 -4
- package/src/index.ts +72 -0
- package/src/oracle/index.ts +12 -0
- package/src/oracle/serialization.ts +237 -0
- package/src/oracle/types.ts +257 -0
- package/src/oracle/verification.ts +257 -0
- package/src/proofs/browser-utils.ts +141 -0
- package/src/proofs/browser.ts +884 -0
- package/src/proofs/index.ts +19 -1
- package/src/stealth.ts +868 -12
- package/src/validation.ts +7 -0
package/src/proofs/index.ts
CHANGED
|
@@ -47,6 +47,24 @@ export { ProofGenerationError } from './interface'
|
|
|
47
47
|
// Mock provider (testing only)
|
|
48
48
|
export { MockProofProvider } from './mock'
|
|
49
49
|
|
|
50
|
-
// Noir provider (production)
|
|
50
|
+
// Noir provider (production - Node.js only)
|
|
51
51
|
export { NoirProofProvider } from './noir'
|
|
52
52
|
export type { NoirProviderConfig } from './noir'
|
|
53
|
+
|
|
54
|
+
// Browser utilities (no WASM dependencies - safe for all environments)
|
|
55
|
+
export {
|
|
56
|
+
isBrowser,
|
|
57
|
+
supportsWebWorkers,
|
|
58
|
+
supportsSharedArrayBuffer,
|
|
59
|
+
getBrowserInfo,
|
|
60
|
+
hexToBytes as browserHexToBytes,
|
|
61
|
+
bytesToHex as browserBytesToHex,
|
|
62
|
+
} from './browser-utils'
|
|
63
|
+
|
|
64
|
+
// NOTE: BrowserNoirProvider is NOT exported from main entry to avoid bundling WASM
|
|
65
|
+
// in server-side builds. Import from '@sip-protocol/sdk/browser' instead:
|
|
66
|
+
//
|
|
67
|
+
// import { BrowserNoirProvider } from '@sip-protocol/sdk/browser'
|
|
68
|
+
//
|
|
69
|
+
// Types are safe to export (no runtime WASM dependency)
|
|
70
|
+
export type { BrowserNoirProviderConfig, ProofProgressCallback } from './browser'
|