{"_id":"@archmagelive/aleohq-wasm","_rev":"1-61232b8145bcb23de2d13ace19339aba","name":"@archmagelive/aleohq-wasm","dist-tags":{"latest":"0.6.3"},"versions":{"0.6.2":{"name":"@archmagelive/aleohq-wasm","version":"0.6.2","description":"Wasm build for the SDK","collaborators":["The Aleo Team <hello@aleo.org>"],"license":"GPL-3.0","type":"module","main":"./dist/index.js","browser":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":"./dist/index.js","./worker.js":"./dist/worker.js"},"repository":{"type":"git","url":"git+https://github.com/AleoHQ/sdk.git"},"keywords":["Aleo","Blockchain","Zero Knowledge","ZK"],"bugs":{"url":"https://github.com/AleoHQ/sdk/issues"},"homepage":"https://github.com/AleoHQ/sdk#readme","scripts":{"build":"rimraf dist && rollup -c rollup.config.js && cpr js/types dist && rimraf --glob dist/wasm*","hack":"sh hack.sh","test":"node test.js"},"devDependencies":{"@wasm-tool/rollup-plugin-rust":"^2.4.2","cpr":"^3.0.1","rimraf":"^5.0.1","rollup":"^3.27.2"},"gitHead":"28c96ca1e5315aaa92ee0495ecdf97de57723486","_id":"@archmagelive/aleohq-wasm@0.6.2","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"integrity":"sha512-eal0ns6d7iDNL0iyzJC127/jD5Ji+nG4ySuBe34WxElr3IFJScApHkA6tri3ppzoB5RoHumEV2mIVKISUqNMCg==","shasum":"004f6c2298bda6a64657724a603a70a472069162","tarball":"https://registry.npmjs.org/@archmagelive/aleohq-wasm/-/aleohq-wasm-0.6.2.tgz","fileCount":12,"unpackedSize":18066627,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAUoptbwHLnIrXjhGkqm6fkidRUla4X90ALB0Z0lO/LdAiEAw/oTjxLWQCFOMDv5aITmx5L/Dqox9RWHO8i3ca1Eb2w="}]},"_npmUser":{"name":"deckard1982","email":"xsnpk6zyk@mozmail.com"},"directories":{},"maintainers":[{"name":"deckard1982","email":"xsnpk6zyk@mozmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/aleohq-wasm_0.6.2_1698034037456_0.27316027488556793"},"_hasShrinkwrap":false},"0.6.3":{"name":"@archmagelive/aleohq-wasm","version":"0.6.3","description":"Wasm build for the SDK","collaborators":["The Aleo Team <hello@aleo.org>"],"license":"GPL-3.0","type":"module","main":"./dist/index.js","browser":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":"./dist/index.js","./worker.js":"./dist/worker.js"},"repository":{"type":"git","url":"git+https://github.com/AleoHQ/sdk.git"},"keywords":["Aleo","Blockchain","Zero Knowledge","ZK"],"bugs":{"url":"https://github.com/AleoHQ/sdk/issues"},"homepage":"https://github.com/AleoHQ/sdk#readme","scripts":{"build":"rimraf dist && rollup -c rollup.config.js && cpr js/types dist && rimraf --glob dist/wasm*","hack":"sh hack.sh","test":"node test.js"},"devDependencies":{"@wasm-tool/rollup-plugin-rust":"^2.4.2","cpr":"^3.0.1","rimraf":"^5.0.1","rollup":"^3.27.2"},"gitHead":"6b12ceb5e1681740f40d58dfbb6c4597560f0936","_id":"@archmagelive/aleohq-wasm@0.6.3","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"integrity":"sha512-NKcorHrsJvpPlxGHE2EaCaclYVSH+FJWSrA8iLkzuTGGA1Aniw88OGljmN15TcUuE3gHfMQpVosYrUsXncoyrg==","shasum":"cc031056a3af5e17040716c01f35beb59d147366","tarball":"https://registry.npmjs.org/@archmagelive/aleohq-wasm/-/aleohq-wasm-0.6.3.tgz","fileCount":12,"unpackedSize":18066627,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDD9TihsFJhjlfFrYNCRr2cMLoNmOeh6UtsNdWanJkaTAiAAoIJsy0Twsr2Fcj3VF+YV+03gipr+5Mwmjk/+ITbMig=="}]},"_npmUser":{"name":"deckard1982","email":"xsnpk6zyk@mozmail.com"},"directories":{},"maintainers":[{"name":"deckard1982","email":"xsnpk6zyk@mozmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/aleohq-wasm_0.6.3_1698035067999_0.7365628980194892"},"_hasShrinkwrap":false}},"time":{"created":"2023-10-23T04:07:17.355Z","0.6.2":"2023-10-23T04:07:17.926Z","modified":"2023-10-23T04:24:28.551Z","0.6.3":"2023-10-23T04:24:28.329Z"},"maintainers":[{"name":"deckard1982","email":"xsnpk6zyk@mozmail.com"}],"description":"Wasm build for the SDK","homepage":"https://github.com/AleoHQ/sdk#readme","keywords":["Aleo","Blockchain","Zero Knowledge","ZK"],"repository":{"type":"git","url":"git+https://github.com/AleoHQ/sdk.git"},"bugs":{"url":"https://github.com/AleoHQ/sdk/issues"},"license":"GPL-3.0","readme":"[![Crates.io](https://img.shields.io/crates/v/aleo-wasm.svg?color=neon)](https://crates.io/crates/aleo-wasm)\n[![Authors](https://img.shields.io/badge/authors-Aleo-orange.svg)](https://aleo.org)\n[![License](https://img.shields.io/badge/License-GPLv3-blue.svg)](./LICENSE.md)\n\n[![github]](https://github.com/AleoHQ/sdk)&ensp;[![crates-io]](https://crates.io/crates/aleo-wasm)&ensp;[![docs-rs]](https://docs.rs/aleo-wasm/latest/aleo-wasm/)\n\n[github]: https://img.shields.io/badge/github-8da0cb?style=for-the-badge&labelColor=555555&logo=github\n[crates-io]: https://img.shields.io/badge/crates.io-fc8d62?style=for-the-badge&labelColor=555555&logo=rust\n[docs-rs]: https://img.shields.io/badge/docs.rs-66c2a5?style=for-the-badge&labelColor=555555&logo=docs.rs\n\n# Aleo Wasm\n\nAleo JavaScript and WebAssembly bindings for building zero-knowledge web applications.\n\n`Rust` compiles easily to `WebAssembly` but creating the glue code necessary to use compiled WebAssembly binaries \nfrom other languages such as JavaScript is a challenging task. `wasm-bindgen` is a tool that simplifies this process by \nauto-generating JavaScript bindings to Rust code that has been compiled into WebAssembly. \n\nThis crate uses `wasm-bindgen` to create JavaScript bindings to Aleo source code so that it can be used to create zero \nknowledge proofs directly within `web browsers` and `NodeJS`.\n\nFunctionality exposed by this crate includes:\n* Aleo account management objects\n* Aleo primitives such as `Records`, `Programs`, and `Transactions` and their associated helper methods\n* A `ProgramManager` object that contains methods for authoring, deploying, and interacting with Aleo programs\n\nMore information on these concepts can be found at the [Aleo Developer Hub](https://developer.aleo.org/concepts).\n\n## Usage\n\nThe [rollup-plugin-rust](https://github.com/wasm-tool/rollup-plugin-rust/) tool is used to compile the Rust code in this crate into JavaScript\nmodules which can be imported into other JavaScript projects.\n\n#### Installation\n\nFollow the [installation instructions](https://github.com/wasm-tool/rollup-plugin-rust/#installation) on the rollup-plugin-rust README.\n\n### Build Instructions\n\n```bash\nyarn build\n```\n\nThis will produce `.js` and `.wasm` files inside of the `dist` folder.\n\n## Testing\n\nRun tests in NodeJS\n```bash\nwasm-pack test --node\n```\n\nRun tests in a browser\n```bash\nwasm-pack test --[firefox/chrome/safari]\n```\n\n## Building Web Apps\n\nFurther documentation and tutorials as to how to use the modules built from this crate to build web apps  will be built \nin the future. However - in the meantime, the [aleo.tools](https://aleo.tools) website is a good\nexample of how to use these modules to build a web app. Its source code can be found in the \n[Aleo SDK](https://github.com/AleoHQ/sdk) repo in the `website` folder.\n","readmeFilename":"README.md"}