{"_id":"@b402ai/solana-shared","_rev":"3-22b552bfd98b668c802cc22494557212","name":"@b402ai/solana-shared","dist-tags":{"latest":"0.0.3"},"versions":{"0.0.1":{"name":"@b402ai/solana-shared","version":"0.0.1","license":"Apache-2.0","_id":"@b402ai/solana-shared@0.0.1","maintainers":[{"name":"mayurc9","email":"mayur@vistara.dev"}],"homepage":"https://github.com/mmchougule/b402-solana#readme","bugs":{"url":"https://github.com/mmchougule/b402-solana/issues"},"dist":{"shasum":"632b4b3e870fe4ee2a36555c95e357df620868c4","tarball":"https://registry.npmjs.org/@b402ai/solana-shared/-/solana-shared-0.0.1.tgz","fileCount":19,"integrity":"sha512-42rZbYree67NCeI6Cc9aJ7TGb+pSNC8S3Mp9Je664mS5gFcof/qeG8qAVUhy+uLAtyldpjjmu1tM7hFFWCvVUw==","signatures":[{"sig":"MEUCIQDyT21THTyRgkxbMMNsH2c4Fg09PKX6TrKH/vhL7uqGrAIgUhLiTY5WYmUSuitmFHh/FWlNhjbXarACYL9n/VtFJdk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":33629},"main":"./dist/index.js","type":"module","_from":"file:b402ai-solana-shared-0.0.1.tgz","types":"./dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"test":"vitest run","build":"tsc -p tsconfig.build.json","typecheck":"tsc --noEmit"},"_npmUser":{"name":"mayurc9","email":"mayur@vistara.dev"},"_resolved":"/private/tmp/b402-tarballs/b402ai-solana-shared-0.0.1.tgz","_integrity":"sha512-42rZbYree67NCeI6Cc9aJ7TGb+pSNC8S3Mp9Je664mS5gFcof/qeG8qAVUhy+uLAtyldpjjmu1tM7hFFWCvVUw==","repository":{"url":"git+https://github.com/mmchougule/b402-solana.git","type":"git","directory":"packages/shared"},"_npmVersion":"11.4.2","description":"Shared protocol constants, types, and encoding helpers for the b402 Solana SDK","directories":{},"_nodeVersion":"24.4.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^2.1.4","typescript":"^5.6.3","@types/node":"^22.9.0"},"_npmOperationalInternal":{"tmp":"tmp/solana-shared_0.0.1_1777351836384_0.604181146669567","host":"s3://npm-registry-packages-npm-production"}},"0.0.2":{"name":"@b402ai/solana-shared","version":"0.0.2","license":"Apache-2.0","_id":"@b402ai/solana-shared@0.0.2","maintainers":[{"name":"mayurc9","email":"mayur@vistara.dev"}],"homepage":"https://github.com/mmchougule/b402-solana#readme","bugs":{"url":"https://github.com/mmchougule/b402-solana/issues"},"dist":{"shasum":"f410c0cf93ac5fdf887b16d9f03c6fa8623ed4b3","tarball":"https://registry.npmjs.org/@b402ai/solana-shared/-/solana-shared-0.0.2.tgz","fileCount":19,"integrity":"sha512-gR2GHU3Q9UZOFBX0f7fou+mqCaHoiz3lueHhqPS7DfpnlqJvoRSZ7fo/7l9qLQU0oqWW8zsZAs/hBefsjIS2jw==","signatures":[{"sig":"MEYCIQDufzT/1yQJrY+/O7vm+EI4QrCB2Ve/xYcCk8i8XEy0UwIhAMoOoG0WfMml/9QjOXwiiZkOE37d4sd8I5lopsc1PBq1","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":33678},"main":"./dist/index.js","type":"module","_from":"file:b402ai-solana-shared-0.0.2.tgz","types":"./dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"test":"vitest run","build":"tsc -p tsconfig.build.json","typecheck":"tsc --noEmit"},"_npmUser":{"name":"mayurc9","email":"mayur@vistara.dev"},"_resolved":"/private/tmp/b402-tarballs/b402ai-solana-shared-0.0.2.tgz","_integrity":"sha512-gR2GHU3Q9UZOFBX0f7fou+mqCaHoiz3lueHhqPS7DfpnlqJvoRSZ7fo/7l9qLQU0oqWW8zsZAs/hBefsjIS2jw==","repository":{"url":"git+https://github.com/mmchougule/b402-solana.git","type":"git","directory":"packages/shared"},"_npmVersion":"11.4.2","description":"Shared protocol constants, types, and encoding helpers for the b402 Solana SDK","directories":{},"_nodeVersion":"24.4.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^2.1.4","typescript":"^5.6.3","@types/node":"^22.9.0"},"_npmOperationalInternal":{"tmp":"tmp/solana-shared_0.0.2_1777527413916_0.36323142995129754","host":"s3://npm-registry-packages-npm-production"}},"0.0.3":{"name":"@b402ai/solana-shared","version":"0.0.3","description":"Shared protocol constants, types, and encoding helpers for the b402 Solana SDK","license":"Apache-2.0","type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"import":"./dist/index.js","types":"./dist/index.d.ts"}},"engines":{"node":">=20"},"repository":{"type":"git","url":"git+https://github.com/mmchougule/b402-solana.git","directory":"packages/shared"},"homepage":"https://github.com/mmchougule/b402-solana#readme","bugs":{"url":"https://github.com/mmchougule/b402-solana/issues"},"publishConfig":{"access":"public"},"devDependencies":{"typescript":"^5.6.3","vitest":"^2.1.4","@types/node":"^22.9.0"},"scripts":{"build":"tsc -p tsconfig.build.json","typecheck":"tsc --noEmit","test":"vitest run"},"_id":"@b402ai/solana-shared@0.0.3","_integrity":"sha512-1AsQ4hzPTQSGQvrPnbd3WpIXk5Ltf28eB3Byq6U6SjH7vZKOXTq2dvq9ueG3Gty18JqR/gmLPpvMEW3hdgUB8Q==","_resolved":"/private/var/folders/cq/7cvl90hx5nz9d9nnf45fykj00000gn/T/5a37c78f27f4f1ceb2c172c4659de026/b402ai-solana-shared-0.0.3.tgz","_from":"file:b402ai-solana-shared-0.0.3.tgz","_nodeVersion":"24.4.0","_npmVersion":"11.4.2","dist":{"integrity":"sha512-1AsQ4hzPTQSGQvrPnbd3WpIXk5Ltf28eB3Byq6U6SjH7vZKOXTq2dvq9ueG3Gty18JqR/gmLPpvMEW3hdgUB8Q==","shasum":"89a2a93ac0aae937b8287992fb1f37a9b09a97bd","tarball":"https://registry.npmjs.org/@b402ai/solana-shared/-/solana-shared-0.0.3.tgz","fileCount":19,"unpackedSize":34001,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCFENa2USFYKGYnO+Al2gFo+Us3hY37NkC1ohvmGTc2gwIgOXn5qHgV7pTIBybtgMLtPCUqjlcdSg59vnx7DHn7+fM="}]},"_npmUser":{"name":"mayurc9","email":"mayur@vistara.dev"},"directories":{},"maintainers":[{"name":"mayurc9","email":"mayur@vistara.dev"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/solana-shared_0.0.3_1777782048415_0.03180793537360893"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-28T04:50:36.297Z","modified":"2026-05-03T04:20:48.698Z","0.0.1":"2026-04-28T04:50:36.526Z","0.0.2":"2026-04-30T05:36:54.062Z","0.0.3":"2026-05-03T04:20:48.581Z"},"bugs":{"url":"https://github.com/mmchougule/b402-solana/issues"},"license":"Apache-2.0","homepage":"https://github.com/mmchougule/b402-solana#readme","repository":{"type":"git","url":"git+https://github.com/mmchougule/b402-solana.git","directory":"packages/shared"},"description":"Shared protocol constants, types, and encoding helpers for the b402 Solana SDK","maintainers":[{"name":"mayurc9","email":"mayur@vistara.dev"}],"readme":"# @b402ai/solana-shared\n\nShared protocol constants, types and encoding helpers for the b402 Solana shielded-pool SDK.\n\nUsed by `@b402ai/solana` and `@b402ai/solana-prover`. Most consumers don't depend on this directly — install `@b402ai/solana` instead.\n\n## What's in here\n\n- `FR_MODULUS` — BN254 scalar field modulus\n- `DomainTags` — domain separators for Poseidon hashes\n- `PROGRAM_IDS` — deployed b402 program IDs (devnet currently; mainnet on launch)\n- `PDA_SEEDS` — canonical seed prefixes\n- `TRANSACT_PUBLIC_INPUT_ORDER` — source-of-truth public input enumeration for the transact circuit\n- `SpendableNote`, `Note`, `Intent`, `TransactPublicInputs` — types\n- `leToFrReduced`, `frToLe`, `frFromLe` — Fr-element encoding\n\n## License\n\nApache-2.0. See [LICENSE](https://github.com/mmchougule/b402-solana/blob/main/LICENSE).\n","readmeFilename":"README.md"}