{"_id":"@bisonai/orakl-vrf","_rev":"3-4170fe985dc5d23fb0217b51f9300211","name":"@bisonai/orakl-vrf","dist-tags":{"latest":"0.2.1"},"versions":{"0.1.0":{"name":"@bisonai/orakl-vrf","version":"0.1.0","type":"module","description":"The Orakl Network VRF","engines":{"node":">=18.12"},"exports":"./dist/index.js","types":"./dist/index.d.ts","keywords":["oracle","orakl","vrf","Verifiable Random Function"],"author":{"name":"Bisonai"},"homepage":"https://github.com/Bisonai/orakl/tree/master/vrf#orakl-network-vrf","license":"MIT","scripts":{"clean":"rm -rf dist","build":"yarn clean && tsc","lint":"eslint \"{src,apps,libs,test}/**/*.ts\"","test":"node --no-warnings --experimental-vm-modules node_modules/jest/bin/jest.js"},"dependencies":{"elliptic":"^6.5.4","bn.js":"^5.2.1"},"devDependencies":{"@jest/globals":"^29.3.1","@types/node":"^18.11.9","ts-node":"^10.9.1","typescript":"^4.9.3","@typescript-eslint/eslint-plugin":"^5.0.0","@typescript-eslint/parser":"^5.0.0","eslint":"^8.0.1","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^4.0.0","jest":"^29.3.1","prettier":"^2.3.2","ts-jest":"^29.0.3"},"licenseText":"MIT License\n\nCopyright (c) 2023 Bisonai\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@bisonai/orakl-vrf@0.1.0","dist":{"shasum":"85cb403118874a11bc5ca66d626debc13c59ef48","integrity":"sha512-kZow/l/bMEU7NNXZ1w0TJkUazofgmVnlwfe53RGjk0gwAbQ3wyt+1itF5fWcpmxX4OfvyGAW1DAMmtmEyJ4cmg==","tarball":"https://registry.npmjs.org/@bisonai/orakl-vrf/-/orakl-vrf-0.1.0.tgz","fileCount":4,"unpackedSize":2815,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBNX5lyOSP3uAy5qje4U7xMx5ImruIsduKgrg0LX7zrRAiEArVUzLnb6WXXSwr6DCOylALFlvP48gvxlVFnVtRMTHRs="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkDFnIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo5Sg//U1hMWoWmkUc6OFNgGhcv/v+rO+/GasEn8N8zTKA/KDCj27jK\r\nnXPscLB1zgoTQ8+42mai/hNvZgTdlTZBM+7lkva+wWidxJ/9cc0ovIcjcXjs\r\n/AA2T8kr3UgwoyeYMPSt/DOlkNfU2GL92WtSp1ovrFRluIA8hX2ktq1JbJ42\r\nP5+TBnra0bR2bu8ZHCAKXoO2FaKUgoPWApFmORz6Epbu3+Qp4LVPhAs6LjvM\r\n9BaDym/+klG4BTItofW/H0l0TTQIkFzqIfF2OaYhNx+cyUeQca8Ab9of93SN\r\nfYW1iadsfDx+5NCLn9kJPvFvhfUwzHX+6fbzACwrtJNpt8fdBuZJ3f4H0f+X\r\n52Yf4pfabn/KyYaHKKt/24qN3g118wgMWGeTpApZ6YsPRyOfKsSJuVKEG38V\r\nhxlIo0Ffm1nOJAUhc1mWEcOclB42jwSktIgxioJBn8uZAWcxk1redRvRa3O/\r\n0qU52Y36gxUp+cCyzUbfjpiMSMHLWo/LIpP2bPITQnbeJ0nquyrrCTm4k6wZ\r\ni/Z+bBAfwD7Huf6mX/K8jA4nB/ii6c65afGVyhiKG6QjvQClVCFgGp+/frUg\r\nULWr6a/dffYsd2I4fODU6KF9L7sn/yrpuwj8ywwMs5WF+kPyW/mxAE9uPIVN\r\nPDF3kk4M7U5KtG5Siam3tsrNteXgRVtr6G8=\r\n=fid4\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"martinkersner","email":"m.kersner@gmail.com"},"directories":{},"maintainers":[{"name":"bayram98","email":"bayram.g@krustuniverse.com"},{"name":"martinkersner","email":"m.kersner@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/orakl-vrf_0.1.0_1678531015872_0.7715666125419423"},"_hasShrinkwrap":false},"0.1.1":{"name":"@bisonai/orakl-vrf","version":"0.1.1","type":"module","description":"The Orakl Network VRF","engines":{"node":">=18.12"},"exports":"./dist/index.js","types":"./dist/index.d.ts","keywords":["Oracle","Orakl","VRF","Verifiable Random Function","Klaytn"],"author":{"name":"Bisonai"},"homepage":"https://github.com/Bisonai/orakl/tree/master/vrf#orakl-network-vrf","license":"MIT","scripts":{"clean":"rm -rf dist","build":"yarn clean && tsc","lint":"eslint \"{src,apps,libs,test}/**/*.ts\"","test":"node --no-warnings --experimental-vm-modules node_modules/jest/bin/jest.js"},"dependencies":{"elliptic":"^6.5.4","bn.js":"^5.2.1"},"devDependencies":{"@jest/globals":"^29.3.1","@types/node":"^18.11.9","ts-node":"^10.9.1","typescript":"^4.9.3","@typescript-eslint/eslint-plugin":"^5.0.0","@typescript-eslint/parser":"^5.0.0","eslint":"^8.0.1","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^4.0.0","jest":"^29.3.1","prettier":"^2.3.2","ts-jest":"^29.0.3"},"licenseText":"MIT License\n\nCopyright (c) 2023 Bisonai\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@bisonai/orakl-vrf@0.1.1","dist":{"shasum":"61e90a44520a7d9abf1a20c2c863201742c0b2e2","integrity":"sha512-mz1DhGQEgKXwk78ZAe9EG1C9tat/fqAch13K7muK2r1xCSAVMoFJU0II39HbH99cC2mz6/l6I3B0szeyrMw+Zw==","tarball":"https://registry.npmjs.org/@bisonai/orakl-vrf/-/orakl-vrf-0.1.1.tgz","fileCount":9,"unpackedSize":47592,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB7iozDsHeFE0iBu7XWj1VkPNujrzqxaeF69fXk62bBzAiEA8HG09qYUXiZqkrQMr1zDZd5OuMKi0/bfpuQW4C5STqQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkDICkACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmplaA//YYsasEYIFLb+o3ZFHetbGL7hrh7VDyaXnVewMcLzlZZDs776\r\n6feXUonFaWsL8Pk/ny/o+T1ZojsBI9LOl2A3HQULu2Y62Myi7GF0epqWUJKW\r\ngTV4qZKNek86Z6+YeSa2cxcN2qvKGmxeGEJYM0P3h3AY/HxRj550dX9+18R4\r\neWynED3IE/5cjHxVIn+DuuTndV7R/iVkTvmVYr+OcGFZrDBlIb5n5Yx/zSHr\r\nPysvha87ipcaO9AJpkc9sDP+5Lpfnl7vf35eb03wUkGw1xh2p9hPYT5/4IcT\r\n4y9ZAkSTVbYRDJlxp5DGL6V5/uU9YJgXA9gbPReLQN3VIIBnd//qNzJhJ3SY\r\n5w0BxYAQcMa0flj6ZdtI8Uwbht5mG/hNV1O/b9kdFGS40n2P2nfTMmGPhWm4\r\ntQuGcyijCHynTHF3+gvoX/QUWZrizPF+SEBCH7eCCJOxkZu1KOIPU2M2bU2c\r\nl3mCSSOeHEusIsI2l+ZmJu6K7RhwETcmJbrPnS0yeTUrLi0acqgbKhLieLM5\r\nSs1cPAWS0pskrUd0vm2GT8hTsJXVrnc/hmm+iUjKUYcIruesi+AinbcHuMTD\r\nbamEeBBjWoOckCrNesWb1HNjKwS1E5AjF4oA3X0iADZ4pHEqfTH/u/a9mpw8\r\n9vsOGqzuRDWWOnFmUl/1/f/SV3yY4GEvvyY=\r\n=6dY2\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"martinkersner","email":"m.kersner@gmail.com"},"directories":{},"maintainers":[{"name":"bayram98","email":"bayram.g@krustuniverse.com"},{"name":"martinkersner","email":"m.kersner@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/orakl-vrf_0.1.1_1678540964410_0.8367495383698169"},"_hasShrinkwrap":false},"0.2.0":{"name":"@bisonai/orakl-vrf","version":"0.2.0","type":"module","description":"The Orakl Network VRF","engines":{"node":">=18.12"},"exports":"./dist/index.js","types":"./dist/index.d.ts","keywords":["Oracle","Orakl","VRF","Verifiable Random Function","Klaytn"],"author":{"name":"Bisonai"},"homepage":"https://github.com/Bisonai/orakl/tree/master/vrf#orakl-network-vrf","license":"MIT","scripts":{"clean":"rm -rf dist","build":"yarn clean && tsc","lint":"eslint \"{src,apps,libs,test}/**/*.ts\"","test":"node --no-warnings --experimental-vm-modules node_modules/jest/bin/jest.js"},"dependencies":{"elliptic":"^6.5.4","bn.js":"^5.2.1"},"devDependencies":{"@jest/globals":"^29.3.1","@types/node":"^18.11.9","ts-node":"^10.9.1","typescript":"^4.9.3","@typescript-eslint/eslint-plugin":"^5.0.0","@typescript-eslint/parser":"^5.0.0","eslint":"^8.0.1","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^4.0.0","jest":"^29.3.1","prettier":"^2.3.2","ts-jest":"^29.0.3"},"licenseText":"MIT License\n\nCopyright (c) 2023 Bisonai\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@bisonai/orakl-vrf@0.2.0","dist":{"shasum":"691e30ef57c4d7b46dbc8c904491d37b058f2c64","integrity":"sha512-P3yYOg0Yj+nENsIl0rjri8JJHc3A78pQPIVIFIiMdunu5lEGOFOZ8XBDJCPBocihHybekwsB8Y+sAAsJMNCS3w==","tarball":"https://registry.npmjs.org/@bisonai/orakl-vrf/-/orakl-vrf-0.2.0.tgz","fileCount":15,"unpackedSize":51360,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCn/jo1umZcsMm/DpkWF+Kfzlzs+JGlSMu3UdDK+a780gIgDVJwW5hBojAum3vUPgHMotgiU4gmYJ0dztjnTk4zBN8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkP0uDACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqRvA//W/XRhZFQz58txXKh7kmCOa2YaUbP7U7M5CGcK1LPcRKshGy7\r\n+NXIp11eem2/fRT4/uhLwYOo0vMPQgZZc0NFGbui2342rrUjC53OJJ7pTEJP\r\njwhg0K/dJCGvq1e2fogGK6JQdAjdqBa+1e1NV+JWhcJuwXRMOlDg2AL2OOpV\r\nd7MypEiwJ/Bg2tApZ8RF2C+9ulQ+fsuk5AQx4veubfaFs0QHzMkuV63L9dhK\r\ne3b2amnDR03N6Mprck3xafni4o0G8eLMJrf0VKVonfGZXCCunT1bavheJaVa\r\nmoO4StPfiyKX3hrSwQqhT72PVxCKnP8C+rAeXPRQMmrzPmJaojbxNH6quEVb\r\nrkEFTDyzNyvcaXUqj4wuZ/p0uMlTwsHofSDk35CDjhsJvzIy0muTKMp0r/9z\r\niHZX2m2/+uZ9wxLbuj3CnhX9gaYRoMyVLq0w/hFesjbCsaxLiNMMu6f7G+Px\r\nU7ZMh8uzaOT0mG1/DVaIOb8VpdhYwkcERswHi3QJJRCNdSF6AgFS5r3mEfHE\r\nBRiYZzYYcCH6JG6cZIy2mxtpsGMFpQXbv0z5IUg4XiZA6GYgTQpepF26ObCH\r\nXQKj6LJYOWbFbfnW0O49FlhHj2VdgFOD4sT5jxdVV7tI4+lkghfI3+bmnW/O\r\nGcOf307qRu6uDf8AHvIfzo5qq/+C2CDmNcs=\r\n=sYhM\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"martinkersner","email":"m.kersner@gmail.com"},"directories":{},"maintainers":[{"name":"bayram98","email":"bayram.g@krustuniverse.com"},{"name":"martinkersner","email":"m.kersner@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/orakl-vrf_0.2.0_1681869699129_0.23747139283128815"},"_hasShrinkwrap":false},"0.2.1":{"name":"@bisonai/orakl-vrf","version":"0.2.1","type":"module","description":"The Orakl Network VRF","engines":{"node":">=18.12"},"exports":"./dist/index.js","types":"./dist/index.d.ts","keywords":["Oracle","Orakl","VRF","Verifiable Random Function","Klaytn"],"author":{"name":"Bisonai"},"homepage":"https://github.com/Bisonai/orakl/tree/master/vrf#orakl-network-vrf","license":"MIT","scripts":{"clean":"rm -rf dist","build":"yarn clean && tsc","lint":"eslint \"{src,apps,libs,test}/**/*.ts\"","test":"node --no-warnings --experimental-vm-modules node_modules/jest/bin/jest.js"},"dependencies":{"elliptic":"^6.5.4","bn.js":"^5.2.1"},"devDependencies":{"@jest/globals":"^29.3.1","@types/node":"^18.11.9","ts-node":"^10.9.1","typescript":"^4.9.3","@typescript-eslint/eslint-plugin":"^5.0.0","@typescript-eslint/parser":"^5.0.0","eslint":"^8.0.1","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^4.0.0","jest":"^29.3.1","prettier":"^2.3.2","ts-jest":"^29.0.3"},"licenseText":"MIT License\n\nCopyright (c) 2023 Bisonai\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@bisonai/orakl-vrf@0.2.1","dist":{"shasum":"e8747f50d0b9a5e810bd1296bc8700508663735c","integrity":"sha512-HO4ULe1xLA8fcWAe8//UFL9IaWhga9mvf548saBKzxJ8bzuY75P6AePSItDy8ZyJ2QJtn1UV5BDUYaR3mnjy/g==","tarball":"https://registry.npmjs.org/@bisonai/orakl-vrf/-/orakl-vrf-0.2.1.tgz","fileCount":15,"unpackedSize":51470,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEZEJvL9hVt/TqIwC1qrkd+DZ2J67dQXNlf1WYS2TESVAiBcHYWl5tqVr9zremT627kXu7uZw8+UA5FwS8/0en1hBg=="}]},"_npmUser":{"name":"martinkersner","email":"m.kersner@gmail.com"},"directories":{},"maintainers":[{"name":"bayram98","email":"bayram.g@krustuniverse.com"},{"name":"martinkersner","email":"m.kersner@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/orakl-vrf_0.2.1_1701064401292_0.23047748907219168"},"_hasShrinkwrap":false}},"time":{"created":"2023-03-11T10:36:55.800Z","0.1.0":"2023-03-11T10:36:56.037Z","modified":"2023-11-27T05:53:21.665Z","0.1.1":"2023-03-11T13:22:44.642Z","0.2.0":"2023-04-19T02:01:39.283Z","0.2.1":"2023-11-27T05:53:21.461Z"},"maintainers":[{"name":"bayram98","email":"bayram.g@krustuniverse.com"},{"name":"martinkersner","email":"m.kersner@gmail.com"}],"description":"The Orakl Network VRF","homepage":"https://github.com/Bisonai/orakl/tree/master/vrf#orakl-network-vrf","keywords":["Oracle","Orakl","VRF","Verifiable Random Function","Klaytn"],"author":{"name":"Bisonai"},"license":"MIT","readme":"# Orakl Network VRF\n\nOrakl Network VRF is based on ECVRF that was proposed at [draft-irtf-cfrg-vrf-10](https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-vrf-10). Orakl Network VRF is used in [Orakl Network Core](https://github.com/Bisonai/orakl/tree/master/core) and [Orakl Network CLI](https://github.com/Bisonai/orakl/tree/master/cli).\n\n## Basics\n\n```\n# prover\nbeta = VRF_hash(SK, alpha)\npi = VRF_prove(SK, alpha)\n\n# verifier\nbeta = VRF_proof_to_hash(pi)\nVRF_verify(PK, alpha, pi)\n\nVRF_hash(SK, alpha) = VRF_proof_to_hash(VRF_prove(SK, alpha))\n```\n\n## Installation\n\n```shell\nyarn install\n```\n\n## Tests\n\n```shell\nyarn test\n```\n\n## Linter\n\n```shell\nyarn lint\n```\n\n## Publishing\n\n`@bisonai/orakl-vrf` is published through [Github Actions pipeline](https://github.com/Bisonai/orakl/blob/master/.github/workflows/vrf.build+publish.yaml) when package version specified in `package.json` changes.\n\n## Acknowledgements\n\nSome parts of code were inspired by or copied from\n\n- [node-ecrg](https://github.com/KenshiTech/node-ecvrf)\n- [vrf-ts-256](https://github.com/cbrpunks/vrf-ts-256)\n","readmeFilename":"README.md"}