{"_id":"nkeys.js","_rev":"23-931993e2a7fac2f47e19c671820bbeb8","name":"nkeys.js","description":"A public-key signature system based on Ed25519 for the NATS ecosystem in javascript","dist-tags":{"dev":"1.0.3-1","latest":"1.1.0","next":"1.2.0-4"},"versions":{"1.0.0-0":{"name":"nkeys.js","version":"1.0.0-0","keywords":["nats","Ed25519","javascript"],"author":{"name":"The NATS Authors"},"license":"Apache-2.0","_id":"nkeys.js@1.0.0-0","maintainers":[{"name":"aricart","email":"alberto@synadia.com"}],"ava":{"files":["./node_test/*.js"],"require":[],"failFast":true},"dist":{"shasum":"f25661fac05a400176a8004a88661c083f6327e2","tarball":"https://registry.npmjs.org/nkeys.js/-/nkeys.js-1.0.0-0.tgz","fileCount":28,"integrity":"sha512-w+t6/36saQeoZnc1+B5ZINjymwxcDkxDZP9nsFzx+tCm86oVo8oTvPWOTEA9T0aVblACBlvEIyXg9RLD3qV6yg==","signatures":[{"sig":"MEQCIDhQWS57D/Ac7JJTgBesYlOTN68+h4JNKclpAN6NLIZlAiBxoGjny0RhLE8d3JrcfwEMQKdywQJGjqqFyL1Nb4Dn9A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":202419,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfIJbtCRA9TVsSAnZWagAAn94P/j4kkaom5ob4cIAsmgay\np72kAbwjyp2ubjQuj2P0wohIOihH7Fny9bVTY862n5HFOMo/GgNBbKILFE3t\n84b9BKiS+nlHqVtTN5A+lqILe56E/3RcEZOLnLhchKieB3Tms4ux4ZDn/uW2\nL9+vXS/Z5J9yW4ioYo9W/iKIpZQs6AsgwXjivwqp+62okkHj3yQDKrsjso/p\nOD1yL00GCMYTARP/AfrTqShmFS08qSHpbdKq1W5X7+i6RibXKU73QZ4pf6rR\nixswddvoYO2/9zNkFxpv4gh0mv0NpJaKPZtOZjv3ZrN15c0EWZ0NTgSNdGzq\no4Lpji0SR1dSbX84Z5do0q5O+MUCpY3rV+76WeGyNKZRSxj8NMLIcmH7n1V+\nbT+km5z2H/C1tbI5CxUbEVwU34kdiyBb/TNXC151oTaPrnFiKTAv5tFnBQNw\n7XxiUv3X962/P2YvpUcsVil0eiOVje3stTTJr2lNXL/Qo6TzVwhTVM8uEKS8\nKeIqJJfT0WDiDoiqSClW6mRc3u5Fy4X7aPcnrF8YK3RHFZ3d6nMwgjyxsQbe\nQeN7rtBfCV6EACqZBs8+d99YTTNpqVTTY/dKcBuZXh0QEHGxZOgQCo/EUX6R\nw7mOdM8qMmAeML8KifUeZ84QLLSz0sGqggkDgwrlvnXyPBw29v7XBmhVkIeq\noEON\r\n=AaCG\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","types":"lib/index.d.ts","engines":{"node":">=10.0.0"},"gitHead":"4d68393458e7a02e5aeafdb24012d51d9fe3e081","scripts":{"cjs":"deno run --allow-all bin/cjs-fix-imports.ts -o build/ src/ modules/cjs/ node_test/","doc":"typedoc --options ./typedoc.json && touch ./docs/.nojekyll","fmt":"deno fmt src/ examples/ modules/ test/ node_test/","init":"mkdir -p build","test":"npm run prepare && ava --verbose","clean":"rm -Rf build/ lib/ nkeys.d.ts nkeys.mjs","stage":"npm run init && npm run cjs && tsc","prepare":"npm run stage && deno bundle modules/esm/mod.ts nkeys.mjs && tsc"},"_npmUser":{"name":"aricart","email":"alberto@synadia.com"},"repository":{"url":"https://github.com//nats-io/ts-nkeys","type":"git"},"_npmVersion":"6.14.5","description":"A public-key signature system based on Ed25519 for the NATS ecosystem in javascript","directories":{},"_nodeVersion":"14.4.0","dependencies":{"tweetnacl":"^1.0.3","@types/node":"^14.0.26","text-encoding":"^0.7.0","fastestsmallesttextencoderdecoder":"^1.0.22"},"_hasShrinkwrap":false,"devDependencies":{"ava":"^3.11.0","typedoc":"^0.17.6","typescript":"^4.0.0-dev.20200727"},"_npmOperationalInternal":{"tmp":"tmp/nkeys.js_1.0.0-0_1595971309273_0.6613945116938837","host":"s3://npm-registry-packages"}},"1.0.0-1":{"name":"nkeys.js","version":"1.0.0-1","keywords":["nats","Ed25519","javascript"],"author":{"name":"The NATS Authors"},"license":"Apache-2.0","_id":"nkeys.js@1.0.0-1","maintainers":[{"name":"aricart","email":"alberto@synadia.com"}],"ava":{"files":["./node_test/*.js"],"require":[],"failFast":true},"dist":{"shasum":"bf23849e8b59d03406801bb95fda3f09d02f6852","tarball":"https://registry.npmjs.org/nkeys.js/-/nkeys.js-1.0.0-1.tgz","fileCount":28,"integrity":"sha512-CADCulM/E1HiRSJ/DF8RqfPK8DEG9r2I2M0GRCLNAVsO1sAqN8f5Xw/014TJJLMtgEAKe1ht+SiaUACbJ7t29w==","signatures":[{"sig":"MEQCIFqISAT5POz8Z5ky7iHyLnqP/3yEDmiuwdZ8dBIlLzjJAiB/EZnx8Jf49lZLBcFCQ/FNtLWDhkoaKBdwkJaOBKUhhg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":202253,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfIJrPCRA9TVsSAnZWagAAgGMQAI++bfIgjYhAMXTyG+Q8\n9DYWQZUY/P8xCH48F8Ikk9yeNVt55nPA9U9As5SvFd5WG2Starls7yDZCJQq\nTQW22JN5Xp73A97Gu63v9HqStR7UM13jAtyq7F4DFJKPsx80gOMwI5SjCcWj\nE5wA0+l9mpveCHonhG90uEVPUU7AStxY+qGj3vb+UNCigBYnkXs3L5t9GU6L\nzsNL130e5i/xml733qf4g3Gsbh/xEgMKhL2yvyy1SNtWj1V9qJ+MJ1ah5c6s\neVTXcxnv7Q+vY2IFY4N9v3cmn7o6Ms1s5uyEyUtNGrMDvZS46fSo1+ZKLbdO\nuTw+rhFHc/pi/IpT9tXbDnk/zdUjqBfhKFqVx4UUxKyQcnFXKidJHG7ofXt/\nq6akJQgGLZ1jaNMGy78TmlVnZX19xpve8sGP0DEAZmmigDOq2X/NxNc4Xc1I\ncugJbdF9v47OCLDH+CKi9rvxI8irn364JPUM3dkazWyfZ6TaweuBNzdeK6hp\nmA1qZsSpoQNlkUcEhOkJv3AelZWgO/uaZsg6GxNDbRU+Dav108KXDf/gS3B2\n0/Zn2O0bWgHZ8vbXLbL7l8zJyQWkac3G+hRhLryo9m5F1WviUJ8ObSzMtR6j\nlGx3sQSL07/8rNlHp0AZrLy0X6eaZBUMMFUGini/hL8so/CD/xZr1eXXKZq8\nkp5q\r\n=7FPa\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","types":"lib/index.d.ts","engines":{"node":">=10.0.0"},"gitHead":"15c8ed2dbfa9ed8ed5e7fe659e04cc4e16b757da","scripts":{"cjs":"deno run --allow-all bin/cjs-fix-imports.ts -o build/ src/ modules/cjs/ node_test/","doc":"typedoc --options ./typedoc.json && touch ./docs/.nojekyll","fmt":"deno fmt src/ examples/ modules/ test/ node_test/","init":"mkdir -p build","test":"npm run prepare && ava --verbose","clean":"rm -Rf build/ lib/ nkeys.d.ts nkeys.mjs","stage":"npm run init && npm run cjs && tsc","prepare":"npm run stage && deno bundle modules/esm/mod.ts nkeys.mjs && tsc"},"_npmUser":{"name":"aricart","email":"alberto@synadia.com"},"repository":{"url":"https://github.com//nats-io/ts-nkeys","type":"git"},"_npmVersion":"6.14.5","description":"A public-key signature system based on Ed25519 for the NATS ecosystem in javascript","directories":{},"_nodeVersion":"14.4.0","dependencies":{"tweetnacl":"^1.0.3","@types/node":"^14.0.26","text-encoding":"^0.7.0","fastestsmallesttextencoderdecoder":"^1.0.22"},"_hasShrinkwrap":false,"devDependencies":{"ava":"^3.11.0","typedoc":"^0.17.6","typescript":"^4.0.0-dev.20200727"},"_npmOperationalInternal":{"tmp":"tmp/nkeys.js_1.0.0-1_1595972303185_0.16854567191402658","host":"s3://npm-registry-packages"}},"1.0.0-2":{"name":"nkeys.js","version":"1.0.0-2","keywords":["nats","Ed25519","javascript"],"author":{"name":"The NATS Authors"},"license":"Apache-2.0","_id":"nkeys.js@1.0.0-2","maintainers":[{"name":"aricart","email":"alberto@synadia.com"}],"ava":{"files":["./node_test/*.js"],"require":[],"failFast":true},"dist":{"shasum":"f97a77e69b49d0756d0a626088afee2f6cc3e08d","tarball":"https://registry.npmjs.org/nkeys.js/-/nkeys.js-1.0.0-2.tgz","fileCount":28,"integrity":"sha512-e3UTRbM5E9x3ReypUC7LUBIsBZrZVLVSXbFWSMaAUdOAbc3JR/hdEJMWgzAbIMWCq6C7qiahpw5YBUC69h4hgw==","signatures":[{"sig":"MEQCICHcpzYvzlIyks1cwsgIaQcwrkq0fI/v2unLqHn8MxZVAiAqcuiXqypb317Uo88wkzSdQQY8qF7GIcpG5nBvd16wWw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":202442,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfKD6gCRA9TVsSAnZWagAANroP/0rJ1SN9NUZpjpT7X/YT\nnmilJYLdCVJnqvgj4txELccGblI8mHZJaOFvSJOPxxhhnO40w5uOYQ9xMqcG\nIMqA2RtWqh7rF1baTC3cWIwGHHeASB3I2h8qthLH61Y/72y+sX9vT+2L9qnk\nxYNcqIhO8RkEsS/ICvrjspkiY7zfR2W7ItFQOXeDWqcyp0K2bCdaUPo5SyDu\nK0zQRTnkfCX1VBYA03T4s9tMo7Zw0hxymZdIJEAohSirQHlstIJMzl+pMEFg\n/awHVfohzwFssDzWzQZfBr9F6Z1v7BM9hLT8VZ0Kqk7PIbIZ4h/FMCcHAvUI\nxPeJUGB4OQRKHgRypPvDTt3Tn5J/R/jlQrU1tumL8fizupTi3JC1td5EiCw5\nA0IEx9G8QkQNggEYEPpQh90mY8HT+/U5dwgDPZveV0NdA64VC3p+vL7nqoBO\nSxwME/FUiToeWX/BruOPt0Cs2R5duWU+Y8jjQtrsc33tWG6ZyTp79sostluc\nDYdSC2TAVN5+TY76gOGbnYUYM8LCXc6b7e7CO5/VQERlRkXsHTPs0e7B1w8f\nm723d1q/FPjM6P76zme/qBhliFwBeR6BZXQKVCEeA5Le6jrxWWNgVaTPTeJu\ncAhsieHOUpnk15VGMW1Ktu862cyNd3N2nATz7d+iKIqcNts72+tMqxcAlKqf\n8+K5\r\n=4GUQ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","types":"lib/index.d.ts","engines":{"node":">=10.0.0"},"gitHead":"b8593a823303398d9f9cd5fc1f8bfd272933a98d","scripts":{"cjs":"deno run --allow-all bin/cjs-fix-imports.ts -o build/ src/ modules/cjs/ node_test/","doc":"typedoc --options ./typedoc.json && touch ./docs/.nojekyll","fmt":"deno fmt src/ examples/ modules/ test/ node_test/","init":"mkdir -p build","test":"npm run prepare && ava --verbose","clean":"rm -Rf build/ lib/ nkeys.d.ts nkeys.mjs","stage":"npm run init && npm run cjs && tsc","prepare":"npm run stage && deno bundle modules/esm/mod.ts nkeys.mjs && tsc"},"_npmUser":{"name":"aricart","email":"alberto@synadia.com"},"repository":{"url":"https://github.com//nats-io/ts-nkeys","type":"git"},"_npmVersion":"6.14.5","description":"A public-key signature system based on Ed25519 for the NATS ecosystem in javascript","directories":{},"_nodeVersion":"14.4.0","dependencies":{"tweetnacl":"^1.0.3","@types/node":"^14.0.26","text-encoding":"^0.7.0"},"_hasShrinkwrap":false,"devDependencies":{"ava":"^3.11.0","typedoc":"^0.17.6","typescript":"^4.0.0-dev.20200727"},"_npmOperationalInternal":{"tmp":"tmp/nkeys.js_1.0.0-2_1596472992059_0.4204544637204821","host":"s3://npm-registry-packages"}},"1.0.0-3":{"name":"nkeys.js","version":"1.0.0-3","keywords":["nats","Ed25519","javascript"],"author":{"name":"The NATS Authors"},"license":"Apache-2.0","_id":"nkeys.js@1.0.0-3","maintainers":[{"name":"aricart","email":"alberto@synadia.com"}],"ava":{"files":["./node_test/*.js"],"require":[],"failFast":true},"dist":{"shasum":"932b11f817091991a5914a0b6cf57b5dcee9b76d","tarball":"https://registry.npmjs.org/nkeys.js/-/nkeys.js-1.0.0-3.tgz","fileCount":28,"integrity":"sha512-hv2fe2o/Bhc28OtwSS3l063yGAegNb+dws18j+wtWByBMoKF4dabMKPg3KZsVUF3l/j/r7uH9zxqR7BM/JtypQ==","signatures":[{"sig":"MEQCIEik3fY4vLh3+yLb78Trc9Xpu0S9bnmavXKpgwcKQRErAiBbcslSPJBVq9zHIay7S4U9NAHE9DnhhsIdtCovVJbLFA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":204569,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfKXGnCRA9TVsSAnZWagAAyREP/2fo3Y45IXxDvp88RrhT\nAVpGy0mrqphp/v221CcjGu9c7H+B/8yhx3K4sBTJWrw90LESiQe1IA8eC9Uz\n9hriA1lpYFgjV1M3AwNlrN/u8o+FCW+yey9JkKO2sg0gUdjpzFV1vEXA2wa8\nk57PiIAu/Oc2D5t9rEaefpjisrVPHQIR0bshz+Grb0RYfmIrd1Wqpva7+TES\nlMQWylD/Bcj9HDaFC9UKks3fyD8DbqHIkLgUkGma+O1AtS06dwoZNiSKmV9v\njn6CiwoZ1E4XhwsOi39tYVdoqFzcwNKy3g7sPGyaMDkjX0fVpvbIefCUGuzz\n96o27fePG3fzjXssirz4iq7lQ8T1hR1q5g8F1+luXeff7Rm9ap25KzducfPA\nYXD7k7EkkYvD/KWFyBbGu7uu5sRCcaQlUsR9O5XPQ0789DaA2bhC48/4E/CN\n7V253Sn+TOpOMBQ/boScX3uqFyMSka0lvhM3cOzy30jMTDDYnNNoQWV+OBEV\nCmlz3D6Da7ok38C4Z0ttsFcGIIGJ+JdskA4dWoqlEsH9Pa7HyiaWCJWHXryQ\ngbBej+le6u+Y1mbMGnWTEdTFYNfPvsLRB3NdZZ3y1GJAnA2grcEQsPM7NZ4V\nHzWPhfKzvUgmdlmVOdQ8eV+FsIsin81UiGO9QSDZ3Drp97D5n92pXiW+7o9D\nJUhN\r\n=+pix\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","types":"lib/index.d.ts","engines":{"node":">=10.0.0"},"gitHead":"a0ccfe077784790e3a78df83497f47cde4a99134","scripts":{"cjs":"deno run --allow-all bin/cjs-fix-imports.ts -o build/ src/ modules/cjs/ node_test/","doc":"typedoc --options ./typedoc.json && touch ./docs/.nojekyll","fmt":"deno fmt src/ examples/ modules/ test/ node_test/","init":"mkdir -p build","test":"npm run prepare && ava --verbose","clean":"rm -Rf build/ lib/ nkeys.d.ts nkeys.mjs","stage":"npm run init && npm run cjs && tsc","prepare":"npm run stage && deno bundle modules/esm/mod.ts nkeys.mjs && tsc"},"_npmUser":{"name":"aricart","email":"alberto@synadia.com"},"repository":{"url":"https://github.com//nats-io/ts-nkeys","type":"git"},"_npmVersion":"6.14.5","description":"A public-key signature system based on Ed25519 for the NATS ecosystem in javascript","directories":{},"_nodeVersion":"14.4.0","dependencies":{"tweetnacl":"^1.0.3","@types/node":"^14.0.26","text-encoding":"^0.7.0"},"_hasShrinkwrap":false,"devDependencies":{"ava":"^3.11.0","typedoc":"^0.17.6","typescript":"^4.0.0-dev.20200727"},"_npmOperationalInternal":{"tmp":"tmp/nkeys.js_1.0.0-3_1596551590625_0.8659401978263321","host":"s3://npm-registry-packages"}},"1.0.0-5":{"name":"nkeys.js","version":"1.0.0-5","keywords":["nats","Ed25519","javascript"],"author":{"name":"The NATS Authors"},"license":"Apache-2.0","_id":"nkeys.js@1.0.0-5","maintainers":[{"name":"aricart","email":"alberto@synadia.com"}],"ava":{"files":["./node_test/*.js"],"require":[],"failFast":true},"dist":{"shasum":"0b0093225190302172116e0fc367698d269f7706","tarball":"https://registry.npmjs.org/nkeys.js/-/nkeys.js-1.0.0-5.tgz","fileCount":28,"integrity":"sha512-x6mSvxcjtz8SC0hrzYeOXnY7Sj//8t+KgpTzCcLAx+hm+1Sts4kmdGm7sq7jyYbauR9YKQ1utiA3/PDJ/lHFdw==","signatures":[{"sig":"MEUCIQDVQ4r20u1vjPCXpNHCYet7+ZBffcqC89TU/Zh5W9BOKgIgI9gCROUhdGUoU7euHGC7ire6J5m7v4K7qIKdxpWrfaw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":204508,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfKzERCRA9TVsSAnZWagAASzQP/19n98P2Q62edgAewLFn\nk01bZYek9g7rhcSW99Rg+74OnCYaXkul++aVABsfzclXDnQ/M+Z9fat2DX7m\nYawWyKWsWbH1/pt4CcXxWt9EmvVYK7Z2XhedAjK0FWNn1PIef1WHcV1jjKmZ\nUn8P9Ne1Esf2BsL7LonG/wh+BRcZLqgX1x0EezF49oIaqjLIzjmLf9UBAkW0\nD4VJMWcBNAHTIs0dx5+47zOkCPj2iia6sJ+qXnPL7RL/FBfFDIzGB74U3KLO\nvFV73++1GWKXsWG4ckveMlultHiitTa9FZfPvYi2LytQdSH9Ll+tQ9QJW1YQ\nEokMQyVMyks54gTgKfcNdZYCY7S47gSnLJQ0rz/u1DZtfirqmhQxjWWYA6aZ\nnJLbDk/R2hJc8g3Bm09/qJNjyy7tXCocLfozreLZD9InhjBo/2MJqBPmNR3X\nIEIXEnH+cJPkX88lD3jir/t54rw2ysHdyUhdxlgUDWDyWz9wOUu27KKTgpM2\niR2bFZGEw4GogcdufpJR7aj1eQdTGfXpPgtN7FpnfGhq7GlnASn2CtsZOIax\nyN8KTt2EGTbboHGM9rkfXM7TXzWC4/vNYFo6pmOpKoMyvTmhdpO3gDfjUj7e\nJiuBgmTFszVpZKbk4CglD/Mw4exG7U9FrilhFjgL8P57wPJUqSNMngGUsdBi\njCIb\r\n=DIWu\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","types":"lib/index.d.ts","engines":{"node":">=10.0.0"},"gitHead":"93d8e5dbaea9b01378ac67f4332fdeaf2f9cc17d","scripts":{"cjs":"deno run --allow-all bin/cjs-fix-imports.ts -o build/ src/ modules/cjs/ node_test/","doc":"typedoc --options ./typedoc.json && touch ./docs/.nojekyll","fmt":"deno fmt src/ examples/ modules/ test/ node_test/","init":"mkdir -p build","test":"npm run prepare && ava --verbose","clean":"rm -Rf build/ lib/ nkeys.d.ts nkeys.mjs","stage":"npm run init && npm run cjs && tsc","prepare":"npm run stage && deno bundle modules/esm/mod.ts nkeys.mjs && tsc"},"_npmUser":{"name":"aricart","email":"alberto@synadia.com"},"repository":{"url":"https://github.com//nats-io/ts-nkeys","type":"git"},"_npmVersion":"6.14.5","description":"A public-key signature system based on Ed25519 for the NATS ecosystem in javascript","directories":{},"_nodeVersion":"14.4.0","dependencies":{"tweetnacl":"^1.0.3","@types/node":"^14.0.26","text-encoding":"^0.7.0"},"_hasShrinkwrap":false,"devDependencies":{"ava":"^3.11.0","typedoc":"^0.17.6","typescript":"^4.0.0-dev.20200727"},"_npmOperationalInternal":{"tmp":"tmp/nkeys.js_1.0.0-5_1596666129042_0.7987339226459342","host":"s3://npm-registry-packages"}},"1.0.0-6":{"name":"nkeys.js","version":"1.0.0-6","keywords":["nats","Ed25519","javascript"],"author":{"name":"The NATS Authors"},"license":"Apache-2.0","_id":"nkeys.js@1.0.0-6","maintainers":[{"name":"aricart","email":"alberto@synadia.com"}],"ava":{"files":["./node_test/*.js"],"require":[],"failFast":true},"dist":{"shasum":"bbc0b3d88a640b0b36d20e19fbe8fa86db17072c","tarball":"https://registry.npmjs.org/nkeys.js/-/nkeys.js-1.0.0-6.tgz","fileCount":28,"integrity":"sha512-DctD6XECr3NYfWs2CvcwoerY6zo3pWG83JiPaLjjDLZg+CnQOd1AXYCFBxMcSEZyypHh+M7GBFgP0He8QC/ndw==","signatures":[{"sig":"MEQCIBor2FwAkzeIf4E7lPVa5PyxSs2Be7Yz/pUWLCEdlMHlAiB7jPomaDsyAERRdLJ/RYFzVjq3o9yDa/LwnzvK+V1PFA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":204173,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfUBpACRA9TVsSAnZWagAA4qcP/3GJsZX4SqWyuLrTFcyd\n2twMOPF7v577lkDmycjszrNYd3EhjFfi6bIzbXKtOrFa3vr241VZkkhfGUQi\nBRUA4nibp9y3jS+bUVc17HrJmBnp/8523JeaFm2X32enJMzZsxa9pJa1K+fu\noJ63ky8JHHYFXan38QTdN2yYqEYJTOGYf9fLUu+6lFXdqt5/2bPqHK06Uce5\naCY3B6fzjP2AWe21DUQjiNY+7iqxOTVfCNY2EWJVi21nkXqXwnVmXuNoUTig\nA0/K0L8e0+4wxXTK/ToD2oS+r2lR5cJaReIWWWUZYse8KPqUEniH1sp17GN4\nwaoKask+Ge00Lq7Nlq2rEqo2fTRGuXKEXn3xxDvugUt7iLBZ55Ft6UVALSwG\nZwlupT6VvKbMaf/ROw94Yu3Bu4VoXT0/WIhcfh+k8mdp467GMbTNqNXgIsui\nSN0Zi5uBb4bsq9ZXjS7+0BmtEyBb8TiQPRPg3idUXd5yPDJmrAix62uDUrMx\nlnSWM7uUyZDrM0KMWQ4nVO74l4uhY0Xe6ruRB+J3JpXFUDQWg9J7hvOKrfhE\nDH45pMEml300+FtTiWwHa7SnTMTAQ25L2B+X9RZAoCKuAoJ5vHZFC8mX6PC9\nBEkp3G9omsoI9zZ79ZBof8DvO05qIiyEN7Dy0LMOaytNLXnkOC50UPKOS+WX\nm6sO\r\n=pIre\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","types":"lib/index.d.ts","engines":{"node":">=10.0.0"},"gitHead":"f1052fe4609137f4357f932279b466026c480023","scripts":{"cjs":"deno run --allow-all bin/cjs-fix-imports.ts -o build/ src/ modules/cjs/ node_test/","doc":"typedoc --options ./typedoc.json && touch ./docs/.nojekyll","fmt":"deno fmt src/ examples/ modules/ test/ node_test/","init":"mkdir -p build","test":"npm run prepare && ava --verbose","clean":"rm -Rf build/ lib/ nkeys.d.ts nkeys.mjs","stage":"npm run init && npm run cjs && tsc","prepare":"npm run stage && deno bundle modules/esm/mod.ts nkeys.mjs && tsc"},"_npmUser":{"name":"aricart","email":"alberto@synadia.com"},"repository":{"url":"https://github.com//nats-io/ts-nkeys","type":"git"},"_npmVersion":"6.14.8","description":"A public-key signature system based on Ed25519 for the NATS ecosystem in javascript","directories":{},"_nodeVersion":"14.8.0","dependencies":{"tweetnacl":"^1.0.3","@types/node":"^14.0.26"},"_hasShrinkwrap":false,"devDependencies":{"ava":"^3.11.0","typedoc":"^0.17.6","typescript":"^4.0.0-dev.20200727"},"_npmOperationalInternal":{"tmp":"tmp/nkeys.js_1.0.0-6_1599085119504_0.4872441963110268","host":"s3://npm-registry-packages"}},"1.0.0-8":{"name":"nkeys.js","version":"1.0.0-8","keywords":["nats","Ed25519","javascript"],"author":{"name":"The NATS Authors"},"license":"Apache-2.0","_id":"nkeys.js@1.0.0-8","maintainers":[{"name":"aricart","email":"alberto@synadia.com"}],"ava":{"files":["./node_test/*.js"],"require":[],"failFast":true},"dist":{"shasum":"09f9b0485170c308c33813b61c0ff25488d6e716","tarball":"https://registry.npmjs.org/nkeys.js/-/nkeys.js-1.0.0-8.tgz","fileCount":28,"integrity":"sha512-2kX+I02YGE5Mvswxn9cpbFL2LBb7Pm1ixsxGGBL4LupJyfvOqCfcu0Eka5j8aJ6hvg0pGUKQz77Q0EJSRalgIg==","signatures":[{"sig":"MEUCIQCEFNG5LqIttsx1u1n7zzBoZRaTGSHZfLgFw48pn3gdhwIgf1O0c4GjSZIjdmqnSr0rG9SywcOsw1FNOdrhZQRm0vY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":204723,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfpXkECRA9TVsSAnZWagAAFSsP/3q/yengM3joUpdbFcjZ\nDO28E8kMtiZilyETo4j7La7U4mHJr1WKnkLsVjH71ZClmqcBCZcXmccgT7fk\nowJXjq8/LOAx9ee9EM1TlZKEqsS+iLUCd2p8qzq9JPdEBxzns1b+wpphgMqD\nOihcjtjckynx0vUfYhCrIBA8g/joB+j3Cz5P2KnFFeuyhxg6pkR/OA8zvhXy\no39XWb8fuNKC/oeJ0Mu5uXUCS26ugUwbo3SvxB72wtmcGQVidJM7NMZi/d8i\nIjz8bfvSw1vKjcNkp5jzYBpAz6fgY/2FNPpxWZPgmXQtFDF8W5sGmZYvV+Q1\nUNsFMM+qrwmOa/cBZW3VWL8DWdJWKb90gWdx/FoL17QTT28SrobNjxuzYzFk\n7ha+adNKTrRnZX2Qy0etU+DC6GvlsfPvwzjfBujvws7RNqwJAKtr+FT7ctF/\n/ip/7PQ98ttyrErQV6pVB4ibaa1V23kgemzwq3KUUqUItiZloXBAZdmwwVC8\nq28ewFILQPWYmkDAlZ3xMlhWaDZ3ZkJ9jLyFqH/Jm4pLyzbBadXKm6n3nfb+\nShkr5DfyD4LmPZo/MpUkXUDXUKY/Niip4nETQelGrryVzO5jxIHEqB8IvuRV\neNtotEXKDJ8I1oFE8l6rnPG2J10PdMXZxc/2S7IpbvrlL5+OxBpa+jNbBVIk\niVXK\r\n=Gy70\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","types":"lib/index.d.ts","engines":{"node":">=10.0.0"},"gitHead":"5bd8ee74a069d2d9ae0c49cbe632d935e9733171","scripts":{"cjs":"deno run --allow-all bin/cjs-fix-imports.ts -o build/ src/ modules/cjs/ node_test/","doc":"typedoc --options ./typedoc.json && touch ./docs/.nojekyll","fmt":"deno fmt src/ examples/ modules/ test/ node_test/","init":"mkdir -p build","test":"npm run prepare && ava --verbose && deno test test/","clean":"rm -Rf build/ lib/ nkeys.d.ts nkeys.mjs","stage":"npm run init && npm run cjs && tsc","prepare":"npm run stage && deno bundle modules/esm/mod.ts nkeys.mjs && tsc"},"_npmUser":{"name":"aricart","email":"alberto@synadia.com"},"repository":{"url":"https://github.com//nats-io/ts-nkeys","type":"git"},"_npmVersion":"6.14.8","description":"A public-key signature system based on Ed25519 for the NATS ecosystem in javascript","directories":{},"_nodeVersion":"14.8.0","dependencies":{"tweetnacl":"^1.0.3","@types/node":"^14.0.26"},"_hasShrinkwrap":false,"devDependencies":{"ava":"^3.12.1","typedoc":"^0.19.1","typescript":"^4.0.2"},"_npmOperationalInternal":{"tmp":"tmp/nkeys.js_1.0.0-8_1604679939963_0.0612950121938014","host":"s3://npm-registry-packages"}},"1.0.0-9":{"name":"nkeys.js","version":"1.0.0-9","keywords":["nats","Ed25519","javascript"],"author":{"name":"The NATS Authors"},"license":"Apache-2.0","_id":"nkeys.js@1.0.0-9","maintainers":[{"name":"aricart","email":"alberto@synadia.com"}],"ava":{"files":["./node_test/*.js"],"require":[],"failFast":true},"dist":{"shasum":"c804acb061a5c4a61e8667adbf15bfd2978285ad","tarball":"https://registry.npmjs.org/nkeys.js/-/nkeys.js-1.0.0-9.tgz","fileCount":28,"integrity":"sha512-m9O0NQT+3rUe1om6MWpxV77EuHql/LdorDH+FYQkoeARcM2V0sQ89kM36fArWaHWq/25EmNmQUW0MhLTcbqW1A==","signatures":[{"sig":"MEUCIB2UFdt+naLyBHNltqPJFRNfDUAFcoCCbL39Cvv/uVsEAiEAlMb64PC49bKsoIa3g9j3JFwFIFM/d9yIvAyJxkhOB30=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":147021,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf9j5ACRA9TVsSAnZWagAAU8QP/0UPml4lFpD84+Vwd1dd\n0Zkeeh/6yXd6aHAnaDpv63ogynyvOEzveEmLJNs5+Z/Sr+yS6E9220EroTEf\n5FLgu0LzBzXBdt9X0edNYeAIIeYLDSBk7Ay2luRiTxRMYlbSYVTh7aLkRpTg\n4ZYyTHw+9VHMagYCrYTcNZMnvsYqmvpyTpty4LMpCU0P4sI2IkJkwGTsNub+\nQ2P+T3iIGt6nZeS5qHAG7TZK1HQu+w54ih/KXM/SlyHiH06knAoW6UZM13qN\n2Ksx/x80wlNNEJcFVGllSjhIuXq/vEiVsxoQFSK+AuSnVfpVnggxgzBiyKZ/\nO07xo1+TGsugPPP58++cCpD3xjBtKT2uD33VsweXxCkP6jtjn5z/AK5+HUmT\nC9x8m2hdmHb033jSQQf+lfPx2KsGYAQAh1i5HnHHd/2rutiIXozJI5Lq4PFN\nXj44EuJVBSqs1FxlZb8p4E7kS+4B1htvownJs3kYehvnPmRy0Eai+yerCJax\n8iTgwNYp2FodBx0YJyFjOpM9S3idNGaMBFhhfla5zKgWJRGN1/Q01W6/kMZQ\n2JeoHOr5/KddRQ/kFxEVdksMatIwAZYPKtcngrpMmYV7KkMr+yq1Gb52/GOv\nKcB+imn4ZyLHI0SFrs+1bxmeIfaG6yuS5G4ikJ9vnUdW851QPRYBgjx/A5Yj\n/LLj\r\n=P6UL\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","types":"lib/index.d.ts","engines":{"node":">=10.0.0"},"gitHead":"720a63d1930d5900f616f08f92f2aca665337022","scripts":{"cjs":"deno run --allow-all bin/cjs-fix-imports.ts -o build/ src/ modules/cjs/ node_test/","doc":"typedoc --options ./typedoc.json && touch ./docs/.nojekyll","fmt":"deno fmt src/ examples/ modules/ test/ node_test/","init":"mkdir -p build","test":"npm run prepare && ava --verbose && deno test test/","clean":"rm -Rf build/ lib/ nkeys.d.ts nkeys.mjs","stage":"npm run init && npm run cjs && tsc","prepare":"npm run stage && deno bundle modules/esm/mod.ts nkeys.mjs && tsc"},"_npmUser":{"name":"aricart","email":"alberto@synadia.com"},"repository":{"url":"https://github.com//nats-io/ts-nkeys","type":"git"},"_npmVersion":"6.14.8","description":"A public-key signature system based on Ed25519 for the NATS ecosystem in javascript","directories":{},"_nodeVersion":"14.8.0","dependencies":{"tweetnacl":"^1.0.3","@types/node":"^14.0.26"},"_hasShrinkwrap":false,"devDependencies":{"ava":"^3.12.1","typedoc":"^0.19.1","typescript":"^4.0.2"},"_npmOperationalInternal":{"tmp":"tmp/nkeys.js_1.0.0-9_1609973311343_0.7457329980258594","host":"s3://npm-registry-packages"}},"1.0.1-1":{"name":"nkeys.js","version":"1.0.1-1","keywords":["nats","Ed25519","javascript"],"author":{"name":"The NATS Authors"},"license":"Apache-2.0","_id":"nkeys.js@1.0.1-1","maintainers":[{"name":"aricart","email":"alberto@synadia.com"}],"ava":{"files":["./node_test/*.js"],"require":[],"failFast":true},"dist":{"shasum":"3a4a045bb2f396b2fbc4c9d5d1a7d0181947aba4","tarball":"https://registry.npmjs.org/nkeys.js/-/nkeys.js-1.0.1-1.tgz","fileCount":269,"integrity":"sha512-tQ99X9bDyriESNo657HYFouHgFqwZ2xL0nh2HKkTvo4aVw94ich0EOaP3RJbm/872NOC2Zfpw8dInmwt5aWR6Q==","signatures":[{"sig":"MEUCIQCavf9/IGqX1WkLsLFtQSKm5pbjWSoxlqQmVfCRjqJFfQIgeIvRaHMhgOnyVNoCLrygW5jTKELH6ZnJR6OST31oj9U=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1475639,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiztcSACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqIRg//ZowIRbdUlcPReuEaMUVH131XNfHGXc+BbpkMh+JKZ7B9pHQG\r\nhOi1zsR/bbvZtHRi4qetq/sfp6ZHFj2t+rgSYUEWayocMc/bWnwV+g12kX1a\r\nfpuSuA6lH7IrOUWPMu6hGVzIymEfhX6UMk69UaKYjV8dKq28Syr6tsucoyp4\r\n1fHJAnkW50WkZMU10QZVhMqv8KlCUUhOv4vjBXtV8voG8hAG24GTFzyA+XjV\r\nxnnypvFDTESDCWbLZXQXcbVvEWIxZ6MwH47GOzpg/sa6c+y96rqbu4T5Kzty\r\nkO69czzLR5N6L9ppjFemMEKBRRnMGjUfHArvkT8YLpKdvONSTTCZ3a1y0B9e\r\njkIOiePBCGd/LfcEIbkcpVGddz4e5jbikbR1OF2CakLOtYUsnwkmU2d0ZHTm\r\nZOC1bN+fzS2U3dSM5vtMGhiw8iQNIgi4UCxV3zkhPlc5tG1jcBC+huJn84cm\r\nF0ronZhTbQJuPjffcqaj5yw2159UxkjLUDjH9+1en6iC5i+FGIgHnZsM0qP7\r\nkdb0OzDHeo5igdJuka7jMOSjKJHkYBjAtl9OEp3Ugll8qTFCN8xZ5hWh1BY5\r\nQgMFs+VcFHVhLuyYAVaGLW/TUeuNaMk3mc5JZsnAuy3eWkVMX2ukFAc4I2eg\r\nPldso03qfvast497sh3olfGBQcgIP3cAnOM=\r\n=QJkD\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","types":"lib/index.d.ts","readme":"# nkeys.js\n\n\nA public-key signature system based on Ed25519 for the [NATS ecosystem system](https://nats.io) for JavaScript.\n\n[![license](https://img.shields.io/github/license/nats-io/ts-nats.svg)](https://www.apache.org/licenses/LICENSE-2.0)\n[![nkeys.js](https://github.com/aricart/nkeys.js/workflows/nkeys.js/badge.svg)](https://github.com/aricart/nkeys.js/actions)\n[![npm](https://img.shields.io/npm/v/nkeys.js.svg)](https://www.npmjs.com/package/nkeys.js)\n[![npm](https://img.shields.io/npm/dt/nkeys.js.svg)](https://www.npmjs.com/package/nkeys.js)\n\nThe nkeys.js library works in Deno, Node.js, and the browser!\n\n## Installation\nFor your Deno projects:\n```javascript\nimport { createUser, fromPublic, fromSeed } from \"https://deno.land/x/nkeys.js/modules/esm/mod.ts\";\n```\n\nOn node, and browsers you can get a build from npm:\n```bash\nnpm install nkeys.js\n```\n\nIn your node projects:\n```javascript\n  const {createUser, fromSeed, fromPublic} = require(\"nkeys.js\");\n\n```\n\nOn your browser projects, make available the `node/nkeys.js/nkeys.mjs`, and then\n```javascript\nimport {\n  createUser,\n  fromPublic,\n  fromSeed,\n} from \"https://host/path/nkeys.mjs\";\n```\n\n\n## Basic Usage\nThe [documentation is here](https://nats-io.github.io/nkeys.js/)\n\n```typescript\n// create an user nkey KeyPair (can also create accounts, operators, etc).\nconst user = createUser();\n\n// A seed is the public and private keys together.\nconst seed: Uint8Array = user.getSeed();\n\n// Seeds are encoded into Uint8Array, and start with\n// the letter 'S'. Seeds need to be kept safe and never shared\nconsole.log(`seeds start with s: ${seed[0] === \"S\".charCodeAt(0)}`);\n\n// A seed's second letter encodes it's type:\n// `U` for user,\n// `A` for account,\n// `O` for operators\nconsole.log(`nkey is for a user? ${seed[1] === \"U\".charCodeAt(0)}`);\n\n// To view a seed, simply decode it:\nconsole.log(new TextDecoder().decode(seed));\n\n// you can recreate the keypair with its seed:\nconst priv = fromSeed(seed);\n\n// Using the KeyPair, you can cryptographically sign content:\nconst data = new TextEncoder().encode(\"Hello World!\");\nconst sig = priv.sign(data);\n\n// and verify a signature:\nconst valid = user.verify(data, sig);\nif (!valid) {\n  console.error(\"couldn't validate the data/signature against my key\");\n} else {\n  console.error(\"data was verified by my key\");\n}\n\n// others can validate using your public key:\nconst publicKey = user.getPublicKey();\nconst pub = fromPublic(publicKey);\nif (!pub.verify(data, sig)) {\n  console.error(`couldn't validate the data/signature with ${publicKey}`);\n} else {\n  console.info(`data was verified by ${publicKey}`);\n}\n\n// when extracting with seeds or private keys\n// you should clear them when done:\nseed.fill(0);\n\n// you should also clear the keypairs:\nuser.clear();\npriv.clear();\n```\n\n## Supported Node Versions\n\nOur support policy for Nodejs versions follows [Nodejs release support](https://github.com/nodejs/Release).\nWe will support and build nkeys.js on even-numbered Nodejs versions that are current or in LTS.\n\n## License\n\nUnless otherwise noted, the NATS source files are distributed under the Apache Version 2.0 license found in the LICENSE file.\n","engines":{"node":">=10.0.0"},"gitHead":"bf6fde900036e4ff7fc64945b124dd6ed7950b58","scripts":{"cjs":"deno run --allow-all bin/cjs-fix-imports.ts -o build/ src/ modules/cjs/ node_test/","doc":"npm run clean && rm -Rf docs && npm run stage && node_modules/.bin/typedoc --out docs/ && touch ./docs/.nojekyll","fmt":"deno fmt src/ examples/ modules/ test/ node_test/","init":"mkdir -p build","test":"npm run prepare && ava --verbose && deno test --allow-env test/","clean":"rm -Rf build/ lib/ nkeys.d.ts nkeys.mjs","stage":"npm run init && npm run cjs && npm run generate && tsc","prepare":"npm run stage && deno bundle modules/esm/mod.ts nkeys.mjs && tsc","generate":"deno run -A --unstable ./bin/tweetnacl-esm.ts"},"_npmUser":{"name":"aricart","email":"alberto@synadia.com"},"repository":{"url":"https://github.com//nats-io/nkeys.js","type":"git"},"_npmVersion":"8.1.4","description":"A public-key signature system based on Ed25519 for the NATS ecosystem in javascript","directories":{},"_nodeVersion":"16.5.0","dependencies":{"tweetnacl":"1.0.3"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"ava":"^4.2.0","typedoc":"^0.23.x","typescript":"^4.7.x","@types/node":"^18.0.0"},"_npmOperationalInternal":{"tmp":"tmp/nkeys.js_1.0.1-1_1657722642492_0.44041312411383715","host":"s3://npm-registry-packages"}},"1.0.1-2":{"name":"nkeys.js","version":"1.0.1-2","keywords":["nats","Ed25519","javascript"],"author":{"name":"The NATS Authors"},"license":"Apache-2.0","_id":"nkeys.js@1.0.1-2","maintainers":[{"name":"aricart","email":"alberto@synadia.com"}],"ava":{"files":["./node_test/*.js"],"require":[],"failFast":true},"dist":{"shasum":"fd83e523c7d2e6acb623f6802a8c68176fb06148","tarball":"https://registry.npmjs.org/nkeys.js/-/nkeys.js-1.0.1-2.tgz","fileCount":29,"integrity":"sha512-p+XHzd122aO1kZQFcgEhcDNXSPZB2hP9f55LewrR0DcqNNk0dQZZaJmTN38XGKGApj0wsOaIOn/AqSRIPoDXUg==","signatures":[{"sig":"MEYCIQDM990WQD2lU923U01t5xPvkgAZhS3jXxpvcBc8o+c5EAIhAJjmNEG2TvbeEWXPcA2xg574C52fikI5BJTDBBFQMB/n","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":895331,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJizuLMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqf9w/9FRz2Y4RN6xye5OKuFq3w7Ro7zszXaAyXXLHgP06MososgHCI\r\nr8vgYUcaKVHcxgyE9fQHw4o7kyUGAd00Lu5xIb1wpUaRi8naB64nvtfslf+4\r\ng6I6OLphWGNF1PFVpr3q0pLmBbZr2nsxhJfFoNX712aCbuiUs1wGwaQDVoni\r\nyUIdZjC2oEXIJf6Rm+SYyZSXbINx8OiRgw8Y9sfQMdTl8m//Ksd4CP4xbMvc\r\n+Cu2Dx6K67+lDtJ6rCj+wCRAg/AljwuiMkPsCjx2qDUz1MTWrMm8bLT4FY6Q\r\nfpAjvClLEYNSjZadvvWTPUMNSa7eZX5p3B2afLrLq/eUfjV+GW9OnE2EZSfs\r\n10M+jsHqXT+ghBwXyE8N4BX5+j/jbmjIYVIimidXL6/+P40B18yafq8QUspk\r\nVtgFCZNKGhrCnTYiAVAZVxQJWzKiAkCMmLKfnntKqlsFcHz5yOL9D7empm5t\r\nDA9I3RsY9uSzqEaZNXZm1VwjvfPmkGYyGNMbUk+5N+k2FJvVfVxXQbHbIXMy\r\nJUE+JmgfCANJ2IOs1ciSZApXkDb9cjVU+fRq2og7YX1x6N9GSY3sEUFU+jvp\r\np4fgCUmWDZkr0kE0jvWs6fJcA6uLC3lFTpgx1XV8gYkPEKAJxcYFB3vvh7AO\r\nGBiW30morE15m+iqO43fXbo44AdM+OKIqMQ=\r\n=XP7D\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","types":"lib/index.d.ts","readme":"# nkeys.js\n\n\nA public-key signature system based on Ed25519 for the [NATS ecosystem system](https://nats.io) for JavaScript.\n\n[![license](https://img.shields.io/github/license/nats-io/ts-nats.svg)](https://www.apache.org/licenses/LICENSE-2.0)\n[![nkeys.js](https://github.com/aricart/nkeys.js/workflows/nkeys.js/badge.svg)](https://github.com/aricart/nkeys.js/actions)\n[![npm](https://img.shields.io/npm/v/nkeys.js.svg)](https://www.npmjs.com/package/nkeys.js)\n[![npm](https://img.shields.io/npm/dt/nkeys.js.svg)](https://www.npmjs.com/package/nkeys.js)\n\nThe nkeys.js library works in Deno, Node.js, and the browser!\n\n## Installation\nFor your Deno projects:\n```javascript\nimport { createUser, fromPublic, fromSeed } from \"https://deno.land/x/nkeys.js/modules/esm/mod.ts\";\n```\n\nOn node, and browsers you can get a build from npm:\n```bash\nnpm install nkeys.js\n```\n\nIn your node projects:\n```javascript\n  const {createUser, fromSeed, fromPublic} = require(\"nkeys.js\");\n\n```\n\nOn your browser projects, make available the `node/nkeys.js/nkeys.mjs`, and then\n```javascript\nimport {\n  createUser,\n  fromPublic,\n  fromSeed,\n} from \"https://host/path/nkeys.mjs\";\n```\n\n\n## Basic Usage\nThe [documentation is here](https://nats-io.github.io/nkeys.js/)\n\n```typescript\n// create an user nkey KeyPair (can also create accounts, operators, etc).\nconst user = createUser();\n\n// A seed is the public and private keys together.\nconst seed: Uint8Array = user.getSeed();\n\n// Seeds are encoded into Uint8Array, and start with\n// the letter 'S'. Seeds need to be kept safe and never shared\nconsole.log(`seeds start with s: ${seed[0] === \"S\".charCodeAt(0)}`);\n\n// A seed's second letter encodes it's type:\n// `U` for user,\n// `A` for account,\n// `O` for operators\nconsole.log(`nkey is for a user? ${seed[1] === \"U\".charCodeAt(0)}`);\n\n// To view a seed, simply decode it:\nconsole.log(new TextDecoder().decode(seed));\n\n// you can recreate the keypair with its seed:\nconst priv = fromSeed(seed);\n\n// Using the KeyPair, you can cryptographically sign content:\nconst data = new TextEncoder().encode(\"Hello World!\");\nconst sig = priv.sign(data);\n\n// and verify a signature:\nconst valid = user.verify(data, sig);\nif (!valid) {\n  console.error(\"couldn't validate the data/signature against my key\");\n} else {\n  console.error(\"data was verified by my key\");\n}\n\n// others can validate using your public key:\nconst publicKey = user.getPublicKey();\nconst pub = fromPublic(publicKey);\nif (!pub.verify(data, sig)) {\n  console.error(`couldn't validate the data/signature with ${publicKey}`);\n} else {\n  console.info(`data was verified by ${publicKey}`);\n}\n\n// when extracting with seeds or private keys\n// you should clear them when done:\nseed.fill(0);\n\n// you should also clear the keypairs:\nuser.clear();\npriv.clear();\n```\n\n## Supported Node Versions\n\nOur support policy for Nodejs versions follows [Nodejs release support](https://github.com/nodejs/Release).\nWe will support and build nkeys.js on even-numbered Nodejs versions that are current or in LTS.\n\n## License\n\nUnless otherwise noted, the NATS source files are distributed under the Apache Version 2.0 license found in the LICENSE file.\n","engines":{"node":">=10.0.0"},"gitHead":"d1a7ff5221848cedcd192d1ce6228cb54020fcd4","scripts":{"cjs":"deno run --allow-all bin/cjs-fix-imports.ts -o build/ src/ modules/cjs/ node_test/","doc":"npm run clean && rm -Rf docs && npm run stage && node_modules/.bin/typedoc --out docs/ && touch ./docs/.nojekyll","fmt":"deno fmt src/ examples/ modules/ test/ node_test/","init":"mkdir -p build","test":"npm run prepare && ava --verbose && deno test --allow-env test/","clean":"rm -Rf build/ lib/ nkeys.d.ts nkeys.mjs","stage":"npm run init && npm run cjs && npm run generate && tsc","prepare":"npm run stage && deno bundle modules/esm/mod.ts nkeys.mjs && tsc","generate":"deno run -A --unstable ./bin/tweetnacl-esm.ts"},"_npmUser":{"name":"aricart","email":"alberto@synadia.com"},"repository":{"url":"https://github.com//nats-io/nkeys.js","type":"git"},"_npmVersion":"8.1.4","description":"A public-key signature system based on Ed25519 for the NATS ecosystem in javascript","directories":{},"_nodeVersion":"16.5.0","dependencies":{"tweetnacl":"1.0.3"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"ava":"^4.2.0","typedoc":"^0.23.x","typescript":"^4.7.x","@types/node":"^18.0.0"},"_npmOperationalInternal":{"tmp":"tmp/nkeys.js_1.0.1-2_1657725644257_0.7067719182985164","host":"s3://npm-registry-packages"}},"1.0.1-3":{"name":"nkeys.js","version":"1.0.1-3","keywords":["nats","Ed25519","javascript"],"author":{"name":"The NATS Authors"},"license":"Apache-2.0","_id":"nkeys.js@1.0.1-3","maintainers":[{"name":"aricart","email":"alberto@synadia.com"}],"ava":{"files":["./node_test/*.js"],"require":[],"failFast":true},"dist":{"shasum":"3896fc8e349052b8542037b233575cf99163b3f5","tarball":"https://registry.npmjs.org/nkeys.js/-/nkeys.js-1.0.1-3.tgz","fileCount":27,"integrity":"sha512-AY6SMZ+Rc+FH5IOHvSqGa9fDnDtPKknkiult/hKRTeHhdbzVxC99W1Me7q5gh8xGRo8c2xYKbXnHGgvDsxCZLQ==","signatures":[{"sig":"MEUCIQCtaN4NlY3j1n/DKURl8hGc1yLDpUEcSo1XS65CrDze+AIgFHn18ATKmtRb7tuqMHL4ZMxc5jLyA8qTjRiVmCwlqpw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":893365,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJizuSlACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmphzA/9GxJTGN75gK5PaQL6mXjMO5dJ370uhnWUkivBwWvjAlLf4wC7\r\nAlgPxCeAOfIuyTa1FJgA2rO+y2VDKVp0/+l1mT5jwalPLiE/je1k0ZQ6U33r\r\nQDzynFlvMbRqj3dO4TvGgzeBUgCg5KGuo7bf6gEs33Me2RZ3EB1rejNPz7v3\r\nejfQwnQOawtNuhg0lb/jW5v+egSTMMDy5ELTyJ4kC1PV0Q+pxFV00NZ2qrp8\r\nSnZIhI4ZhvFMkHLlhi8gbNuM1SfOu6czhSPA8ov547+SGVV86V7hu+RdEXTE\r\nA3fV1+Pm60JBxkoA3rpLjyfiY23lhS4aQKuxfYaDWh4yD2CC3mILO/bHcnvt\r\nVtDs1kb5iKL6+RbieWePJ2Z4RYJypC17pARQLiykeYfWI36AB7MK13m4SIfM\r\nu4NkkIJGMajOq9JPTAseVs44SPeN9hW0kvft+B0UAqFHloN9Au5CqjGQxTG9\r\nuWqDA8I9IDAnt8sjgLJdT3Icwq8Jk3kQKPDlYWiEqOwNo2+y/q8AxrcROBIO\r\necOEDaoDsomlNhk3JtiD3/PLpC3JIpYO54+3oJ8sxXHRqB6vfSEYEyWb0oz9\r\nm1wiixKnB1A8+T+MHcp0MxOvV/C3u7opmZvm86d96ms76+RiSg1jIdei9gd8\r\nXVxZRDmC+FUQTaADTjOF2BROLzCcsrkUtok=\r\n=0kqP\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","types":"lib/index.d.ts","readme":"# nkeys.js\n\n\nA public-key signature system based on Ed25519 for the [NATS ecosystem system](https://nats.io) for JavaScript.\n\n[![license](https://img.shields.io/github/license/nats-io/ts-nats.svg)](https://www.apache.org/licenses/LICENSE-2.0)\n[![nkeys.js](https://github.com/aricart/nkeys.js/workflows/nkeys.js/badge.svg)](https://github.com/aricart/nkeys.js/actions)\n[![npm](https://img.shields.io/npm/v/nkeys.js.svg)](https://www.npmjs.com/package/nkeys.js)\n[![npm](https://img.shields.io/npm/dt/nkeys.js.svg)](https://www.npmjs.com/package/nkeys.js)\n\nThe nkeys.js library works in Deno, Node.js, and the browser!\n\n## Installation\nFor your Deno projects:\n```javascript\nimport { createUser, fromPublic, fromSeed } from \"https://deno.land/x/nkeys.js/modules/esm/mod.ts\";\n```\n\nOn node, and browsers you can get a build from npm:\n```bash\nnpm install nkeys.js\n```\n\nIn your node projects:\n```javascript\n  const {createUser, fromSeed, fromPublic} = require(\"nkeys.js\");\n\n```\n\nOn your browser projects, make available the `node/nkeys.js/nkeys.mjs`, and then\n```javascript\nimport {\n  createUser,\n  fromPublic,\n  fromSeed,\n} from \"https://host/path/nkeys.mjs\";\n```\n\n\n## Basic Usage\nThe [documentation is here](https://nats-io.github.io/nkeys.js/)\n\n```typescript\n// create an user nkey KeyPair (can also create accounts, operators, etc).\nconst user = createUser();\n\n// A seed is the public and private keys together.\nconst seed: Uint8Array = user.getSeed();\n\n// Seeds are encoded into Uint8Array, and start with\n// the letter 'S'. Seeds need to be kept safe and never shared\nconsole.log(`seeds start with s: ${seed[0] === \"S\".charCodeAt(0)}`);\n\n// A seed's second letter encodes it's type:\n// `U` for user,\n// `A` for account,\n// `O` for operators\nconsole.log(`nkey is for a user? ${seed[1] === \"U\".charCodeAt(0)}`);\n\n// To view a seed, simply decode it:\nconsole.log(new TextDecoder().decode(seed));\n\n// you can recreate the keypair with its seed:\nconst priv = fromSeed(seed);\n\n// Using the KeyPair, you can cryptographically sign content:\nconst data = new TextEncoder().encode(\"Hello World!\");\nconst sig = priv.sign(data);\n\n// and verify a signature:\nconst valid = user.verify(data, sig);\nif (!valid) {\n  console.error(\"couldn't validate the data/signature against my key\");\n} else {\n  console.error(\"data was verified by my key\");\n}\n\n// others can validate using your public key:\nconst publicKey = user.getPublicKey();\nconst pub = fromPublic(publicKey);\nif (!pub.verify(data, sig)) {\n  console.error(`couldn't validate the data/signature with ${publicKey}`);\n} else {\n  console.info(`data was verified by ${publicKey}`);\n}\n\n// when extracting with seeds or private keys\n// you should clear them when done:\nseed.fill(0);\n\n// you should also clear the keypairs:\nuser.clear();\npriv.clear();\n```\n\n## Supported Node Versions\n\nOur support policy for Nodejs versions follows [Nodejs release support](https://github.com/nodejs/Release).\nWe will support and build nkeys.js on even-numbered Nodejs versions that are current or in LTS.\n\n## License\n\nUnless otherwise noted, the NATS source files are distributed under the Apache Version 2.0 license found in the LICENSE file.\n","engines":{"node":">=10.0.0"},"gitHead":"d1a7ff5221848cedcd192d1ce6228cb54020fcd4","scripts":{"cjs":"deno run --allow-all bin/cjs-fix-imports.ts -o build/ src/ modules/cjs/ node_test/","doc":"npm run clean && rm -Rf docs && npm run stage && node_modules/.bin/typedoc --out docs/ && touch ./docs/.nojekyll","fmt":"deno fmt src/ examples/ modules/ test/ node_test/","init":"mkdir -p build","test":"npm run prepare && ava --verbose && deno test --allow-env test/","clean":"rm -Rf build/ lib/ nkeys.d.ts nkeys.mjs","stage":"npm run init && npm run cjs && npm run generate && tsc","prepare":"npm run stage && deno bundle modules/esm/mod.ts nkeys.mjs && tsc","generate":"deno run -A --unstable ./bin/tweetnacl-esm.ts"},"_npmUser":{"name":"aricart","email":"alberto@synadia.com"},"repository":{"url":"https://github.com//nats-io/nkeys.js","type":"git"},"_npmVersion":"8.1.4","description":"A public-key signature system based on Ed25519 for the NATS ecosystem in javascript","directories":{},"_nodeVersion":"16.5.0","dependencies":{"tweetnacl":"1.0.3"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"ava":"^4.2.0","typedoc":"^0.23.x","typescript":"^4.7.x","@types/node":"^18.0.0"},"_npmOperationalInternal":{"tmp":"tmp/nkeys.js_1.0.1-3_1657726116989_0.15472474691220195","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"nkeys.js","version":"1.0.2","keywords":["nats","Ed25519","javascript"],"author":{"name":"The NATS Authors"},"license":"Apache-2.0","_id":"nkeys.js@1.0.2","maintainers":[{"name":"aricart","email":"alberto@synadia.com"}],"ava":{"files":["./node_test/*.js"],"require":[],"failFast":true},"dist":{"shasum":"df1eee2461d9ac54597efa4c20299fa5413e16d2","tarball":"https://registry.npmjs.org/nkeys.js/-/nkeys.js-1.0.2.tgz","fileCount":27,"integrity":"sha512-nZtevWyaaayB5fDtmRbpvmgur8vi45yjrnzY1NAB0F2aMHZtTGyZ+NhiErjTtb0cb8dBaNh/+98A49vufvI04Q==","signatures":[{"sig":"MEUCIHhKUli3WUBgQ06KZxVF+oPf9uWMuAqm8zbBbBRpHt4PAiEA0s+0qyHfmBD6U99appZke3b9MWRyQ7JpJSx8/vD5FO8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":893365,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJizwlnACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqAZQ/9Gm02pOxDiTi19fR/88Y4lzULt7E/H27Ql/k7kphgF9W401PB\r\n3zirAmxgclALN7ggUpUkMCVJbyUYWQl2c3sCGIQPVVSTcF7Wpzc0qQY4AGY8\r\neJIjz9lYfm9/ZRU/JqdVWVDhiiXYRuIlpuZpJtIrU5wo5D2xDnaoBxJzFLIH\r\nwDAyti5VHRCoXqOWdiKdnQ1ZEOTrRDIB2ZuAFUcpHWLzfluVhZH5zAhd8361\r\n8J17m8u7kQZmGz8ULVkfEbrixIRdEy0I6OfF3eGUp+M7uerWX5PaXwoonm5y\r\nDkrgK1cv2j6YXtKrmRrAI4CqDd0GxwdfV8Mehwb/VAJgNsQ8h5Nu+aSdTU9Y\r\neorAi50WATEpja1GafOSo0Ede0d89/cHYz5pMk2txxFa0MLKvzGI6TW86c83\r\n8Voa8CsMgM4XkViXIFkAfvL0RnmlLr3MCvnisVld2o3gocT8iZhJolsUmq6v\r\ngVgevlBAXfnV9WZ/CDNkm7TmKxzRioLDls2DtwrlqwkUFunLkyBfo6jGJOsw\r\nqcDY0lJV/+nbI6smQtltin13yUNmJ1W2C6YAyOeoRP5Z3cn43segQe0e+7Y9\r\nn84TGfswCPQeI3Y3uIahoyWsa8crKmYXIscbXf/XTOxJC5XDa95et/H1K/BX\r\n+tgAWljvSdcblsWPEEXwdiltH7JhVmbX7o4=\r\n=oZat\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","types":"lib/index.d.ts","engines":{"node":">=10.0.0"},"gitHead":"4ce8f7986a7276e676ecbd919e9cee7ae233dd0a","scripts":{"cjs":"deno run --allow-all bin/cjs-fix-imports.ts -o build/ src/ modules/cjs/ node_test/","doc":"npm run clean && rm -Rf docs && npm run stage && node_modules/.bin/typedoc --out docs/ && touch ./docs/.nojekyll","fmt":"deno fmt src/ examples/ modules/ test/ node_test/","init":"mkdir -p build","test":"npm run prepare && ava --verbose && deno test -A --unstable test/","clean":"rm -Rf build/ lib/ nkeys.d.ts nkeys.mjs","stage":"npm run init && npm run cjs && npm run generate && tsc","prepare":"npm run stage && deno bundle modules/esm/mod.ts nkeys.mjs && tsc","generate":"deno run -A --unstable ./bin/tweetnacl-esm.ts"},"_npmUser":{"name":"aricart","email":"alberto@synadia.com"},"repository":{"url":"https://github.com//nats-io/nkeys.js","type":"git"},"_npmVersion":"8.1.4","description":"A public-key signature system based on Ed25519 for the NATS ecosystem in javascript","directories":{},"_nodeVersion":"16.5.0","dependencies":{"tweetnacl":"1.0.3"},"_hasShrinkwrap":false,"devDependencies":{"ava":"^4.2.0","typedoc":"^0.23.x","typescript":"^4.7.x","@types/node":"^18.0.0"},"_npmOperationalInternal":{"tmp":"tmp/nkeys.js_1.0.2_1657735527514_0.9723246298754642","host":"s3://npm-registry-packages"}},"1.0.3-1":{"name":"nkeys.js","version":"1.0.3-1","keywords":["nats","Ed25519","javascript"],"author":{"name":"The NATS Authors"},"license":"Apache-2.0","_id":"nkeys.js@1.0.3-1","maintainers":[{"name":"aricart","email":"alberto@synadia.com"}],"ava":{"files":["./node_test/*.js"],"require":[],"failFast":true},"dist":{"shasum":"e85f7a3696f0b2d07e0814fa9241ef2201fbff86","tarball":"https://registry.npmjs.org/nkeys.js/-/nkeys.js-1.0.3-1.tgz","fileCount":27,"integrity":"sha512-DfLXYKJ8YfhbCYJIMwhZmKkXlQDnMjed2qc4YDjBtZoPIT5lotOH/ceqKNjob17AwYdPIWq7rcbW3TPSxfkQbQ==","signatures":[{"sig":"MEUCIA+cLPKfuEoVHbsllke3MjWDkL8yPVofCw+ZpOBH/GbUAiEA1oZ5XlYI0BdinzyUnJiIdJssCmdqHsiK8pBfDa+0TM4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":108677,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJizz91ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqCFA/+MxdMLYDTTtKj1BG3+Efk4VFquEKu76UYBQxqp9K/saruYu4q\r\naj13EhqnogMGWcI8S2ttDhKW20Msj1IJiQOC4jAVDhmpntjJTzmcF+JREijm\r\ndsGwva4iAC/Ohi8DMo1NJheBR2bBkAtXu+tZQ6LEcqA1mrpMnwM52j9B9iAH\r\nYaoDkjhb1N/P/G0yQx6Ue9BJTttcBhgHeXqoaVbLwYt9bq2htb0a+Rl+bBoX\r\nW4JNnc1j4TpA1VKbNkDGLz5Vu1qMNCgVAzw/UgmTNeEdLXJK8z27PlJ0/BDj\r\n8pu/nDmR6zb0dW6y6FlKnwR7hOqnSelydEqDPtV3b/dFQKBpNeMciFfrI0mB\r\nMMFhIzhVH8Qp69PCVY0Gvl9O5MQL5rAr6H2OBXELdSSjxxVTJ525WLK8+3AF\r\necpMrgJf6JKj0k/1VIMSpRj+uAz0jbtzbXqFT0/10uuP14NGZcOsUWAR6o8u\r\nJRC8ffGpCBMfe/1cJiOA27Kh4I14PWwkBbJtuxzQ1V24Z1vRn6PZAUebTuel\r\nyIhhTWJW8DcUbXs3VEzTnkIZ8STKLjUc8c/j4VBAW4CQFlttO69PT3f9SGTL\r\nDkpN+gRCqFRo/c8EoaVOfSynBlH6h5jMzc/f0H6ViGxp8IKw2WOkOVqIjyk0\r\ngIZ4jCDjBQ0LzvE7wAHGSz8Mztqx5i2JckE=\r\n=TyqH\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","types":"lib/index.d.ts","readme":"# nkeys.js\n\n\nA public-key signature system based on Ed25519 for the [NATS ecosystem system](https://nats.io) for JavaScript.\n\n[![license](https://img.shields.io/github/license/nats-io/ts-nats.svg)](https://www.apache.org/licenses/LICENSE-2.0)\n[![nkeys.js](https://github.com/aricart/nkeys.js/workflows/nkeys.js/badge.svg)](https://github.com/aricart/nkeys.js/actions)\n[![npm](https://img.shields.io/npm/v/nkeys.js.svg)](https://www.npmjs.com/package/nkeys.js)\n[![npm](https://img.shields.io/npm/dt/nkeys.js.svg)](https://www.npmjs.com/package/nkeys.js)\n\nThe nkeys.js library works in Deno, Node.js, and the browser!\n\n## Installation\nFor your Deno projects:\n```javascript\nimport { createUser, fromPublic, fromSeed } from \"https://deno.land/x/nkeys.js/modules/esm/mod.ts\";\n```\n\nOn node, and browsers you can get a build from npm:\n```bash\nnpm install nkeys.js\n```\n\nIn your node projects:\n```javascript\n  const {createUser, fromSeed, fromPublic} = require(\"nkeys.js\");\n\n```\n\nOn your browser projects, make available the `node/nkeys.js/nkeys.mjs`, and then\n```javascript\nimport {\n  createUser,\n  fromPublic,\n  fromSeed,\n} from \"https://host/path/nkeys.mjs\";\n```\n\n\n## Basic Usage\nThe [documentation is here](https://nats-io.github.io/nkeys.js/)\n\n```typescript\n// create an user nkey KeyPair (can also create accounts, operators, etc).\nconst user = createUser();\n\n// A seed is the public and private keys together.\nconst seed: Uint8Array = user.getSeed();\n\n// Seeds are encoded into Uint8Array, and start with\n// the letter 'S'. Seeds need to be kept safe and never shared\nconsole.log(`seeds start with s: ${seed[0] === \"S\".charCodeAt(0)}`);\n\n// A seed's second letter encodes it's type:\n// `U` for user,\n// `A` for account,\n// `O` for operators\nconsole.log(`nkey is for a user? ${seed[1] === \"U\".charCodeAt(0)}`);\n\n// To view a seed, simply decode it:\nconsole.log(new TextDecoder().decode(seed));\n\n// you can recreate the keypair with its seed:\nconst priv = fromSeed(seed);\n\n// Using the KeyPair, you can cryptographically sign content:\nconst data = new TextEncoder().encode(\"Hello World!\");\nconst sig = priv.sign(data);\n\n// and verify a signature:\nconst valid = user.verify(data, sig);\nif (!valid) {\n  console.error(\"couldn't validate the data/signature against my key\");\n} else {\n  console.error(\"data was verified by my key\");\n}\n\n// others can validate using your public key:\nconst publicKey = user.getPublicKey();\nconst pub = fromPublic(publicKey);\nif (!pub.verify(data, sig)) {\n  console.error(`couldn't validate the data/signature with ${publicKey}`);\n} else {\n  console.info(`data was verified by ${publicKey}`);\n}\n\n// when extracting with seeds or private keys\n// you should clear them when done:\nseed.fill(0);\n\n// you should also clear the keypairs:\nuser.clear();\npriv.clear();\n```\n\n## Supported Node Versions\n\nOur support policy for Nodejs versions follows [Nodejs release support](https://github.com/nodejs/Release).\nWe will support and build nkeys.js on even-numbered Nodejs versions that are current or in LTS.\n\n## License\n\nUnless otherwise noted, the NATS source files are distributed under the Apache Version 2.0 license found in the LICENSE file.\n","engines":{"node":">=10.0.0"},"gitHead":"4ce8f7986a7276e676ecbd919e9cee7ae233dd0a","scripts":{"cjs":"deno run --allow-all bin/cjs-fix-imports.ts -o build/ src/ modules/cjs/ node_test/","doc":"npm run clean && rm -Rf docs && npm run stage && node_modules/.bin/typedoc --out docs/ && touch ./docs/.nojekyll","fmt":"deno fmt src/ examples/ modules/ test/ node_test/","init":"mkdir -p build","test":"npm run prepare && ava --verbose && deno test -A --unstable test/","clean":"rm -Rf build/ lib/ nkeys.d.ts nkeys.mjs","stage":"npm run init && npm run cjs && npm run generate && tsc","prepare":"npm run stage && deno bundle modules/esm/mod.ts nkeys.mjs && tsc","generate":"deno run -A --unstable ./bin/tweetnacl-esm.ts"},"_npmUser":{"name":"aricart","email":"alberto@synadia.com"},"repository":{"url":"https://github.com//nats-io/nkeys.js","type":"git"},"_npmVersion":"8.1.4","description":"A public-key signature system based on Ed25519 for the NATS ecosystem in javascript","directories":{},"_nodeVersion":"16.5.0","dependencies":{"tweetnacl":"1.0.3"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"ava":"^4.2.0","typedoc":"^0.23.x","typescript":"^4.7.x","@types/node":"^18.0.0"},"_npmOperationalInternal":{"tmp":"tmp/nkeys.js_1.0.3-1_1657749365784_0.8144495056822751","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"nkeys.js","version":"1.0.3","keywords":["nats","Ed25519","javascript"],"author":{"name":"The NATS Authors"},"license":"Apache-2.0","_id":"nkeys.js@1.0.3","maintainers":[{"name":"aricart","email":"alberto@synadia.com"}],"ava":{"files":["./node_test/*.js"],"require":[],"failFast":true},"dist":{"shasum":"487688a6f4f36f4a2796eee000cc6e54e122cb08","tarball":"https://registry.npmjs.org/nkeys.js/-/nkeys.js-1.0.3.tgz","fileCount":27,"integrity":"sha512-p5Bpb/acPaQmCrbe4gNmMBY/naZJV8Q7m2B9UkXT8BQRC6wjX8zqD2ya8eZu9mpSXQffodV46HCP9OckmxcwYA==","signatures":[{"sig":"MEUCIQDejhXI6O1izeuRq0p9GZaojmbblyYSsyf+v61ui3cW6wIgON5xsN3rHdXTVK+ZblgSEdlZxaaAwDcRpw+9+G6F/lo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":108731,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi0G/xACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmom4w//ShVrbSuJuSX1l3iTt1pMye/+jFtCqQ/ORA6GGuy1ZGObnK3A\r\nZcH8U65ONRalymp3DbBi6t0TMqUhvazbFwutQZDFm7/qMwBX+Fnve+c0kVT3\r\nP9uQ1+6WCroZp+MYd/xEvMf/gQOgIdGmnFDjtNMJjYytKe4rBBCAK1mDwLF3\r\n+9uBw6hMrnWNAoGvPdZriMVpxVgg41Q/gwnjtub4wVM2lTfltAXHlrIosaaK\r\nkPmyC3WjxH1TRjDO7TaDcEDHd7D6KpSrC6mIG46lIs/LV9IVl1Aq8zwpMDtm\r\nrQUPH7xCJAH0JK7svp8u7NU120+kZZwLEhKtxQ5TPf//qeV8X5b1TIettq1n\r\nsA51tZssP4L1coDFNGgkQ2xFPje3/4BUboMJPjLcSvuc0agEOoh7AsjbRvZd\r\nU+Siium8AftBqlx+Wz+KcYmat9ug9cbEVgI8Z65dq0UYxhJQATAkcY/HE+3W\r\nhXAqR+6/EqPIfVunNREwHB/7bGkdMmqVTc2bUqQ/arigiCEoL617OP97VYer\r\nL9zuE/TqXATmZJaPVRvUgBMB7/hVp2Ec9xQ0vzKourfDTlsff58GQnTGWLpE\r\nr/sgfvK4WLjJvthmv0meWZL64GhRqlQv+MXgsnKt2tySqT09WntPV0FHG+4I\r\nix0n1nQPw1iyXPq8lHdnjwmL7RsQZEwQoDQ=\r\n=X99L\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","types":"lib/index.d.ts","engines":{"node":">=10.0.0"},"gitHead":"ebb4e0b11def4629022a632e8f963578094d2175","scripts":{"cjs":"deno run --allow-all bin/cjs-fix-imports.ts -o build/ src/ modules/cjs/ node_test/","doc":"npm run clean && rm -Rf docs && npm run stage && node_modules/.bin/typedoc --out docs/ && touch ./docs/.nojekyll","fmt":"deno fmt src/ examples/ modules/ test/ node_test/","init":"mkdir -p build","test":"npm run prepare && ava --verbose && deno test -A --unstable test/","clean":"rm -Rf build/ lib/ nkeys.d.ts nkeys.mjs","stage":"npm run init && npm run cjs && npm run generate && tsc","prepare":"npm run stage && npm run generate && deno bundle modules/esm/mod.ts nkeys.mjs && tsc","generate":"deno run -A --unstable ./bin/tweetnacl-esm.ts"},"_npmUser":{"name":"aricart","email":"alberto@synadia.com"},"repository":{"url":"https://github.com//nats-io/nkeys.js","type":"git"},"_npmVersion":"8.1.4","description":"A public-key signature system based on Ed25519 for the NATS ecosystem in javascript","directories":{},"_nodeVersion":"16.5.0","dependencies":{"tweetnacl":"1.0.3"},"_hasShrinkwrap":false,"devDependencies":{"ava":"^4.2.0","typedoc":"^0.23.x","typescript":"^4.7.x","@types/node":"^18.0.0"},"_npmOperationalInternal":{"tmp":"tmp/nkeys.js_1.0.3_1657827312854_0.597497870362983","host":"s3://npm-registry-packages"}},"1.0.4":{"name":"nkeys.js","version":"1.0.4","keywords":["nats","Ed25519","javascript"],"author":{"name":"The NATS Authors"},"license":"Apache-2.0","_id":"nkeys.js@1.0.4","maintainers":[{"name":"aricart","email":"alberto@synadia.com"}],"ava":{"files":["./node_test/*.js"],"require":[],"failFast":true},"dist":{"shasum":"0902bd44129569c4bd3857ce87d8b69f1c0e7253","tarball":"https://registry.npmjs.org/nkeys.js/-/nkeys.js-1.0.4.tgz","fileCount":27,"integrity":"sha512-xeNDE6Ha5I3b3PnlHyT9AbmBxq3Vb9KHzmaI/h4IXYg0PUVZSUXNHNhTfU20oBsubw2ZdV/1AdC6hnRuMiZfMQ==","signatures":[{"sig":"MEQCIFSOiRnHIUd1FIqNFv/jWa4eVO8jHvm8B1sMUi02twB/AiBYz5JOFhPlE75X7B3P9nqUcs7PphfewvYfHzP4UWbj8w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":108723,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjowl+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoXPg//SAEe/XyhOQDPwzBshCa247fIwj19TKcforjvAO/v2d+9im6o\r\n1L38yEDr2F3J0dVF3/alWM0Tzbc2vE15bPhsOg3/ePIsfAQNWO9iVIwXyAOQ\r\nEzz2sRFCHDXqMwOlKgIwMM8njZhC7fchRonnC5An9plbJlje4TY1SWFJH3x5\r\n352De5q8TujWQHrYsXjYwwoGDd9fzOSXNn3XRqetBElaVo9K1Y5raBM0kNhg\r\nMUnL6iHS7IpOUpDX9pFGDpKiWln/i2guLNvI51gUW/336lJvClv3slLpgFLL\r\nea03/Z9ZrAt3hkJvxLaX1h0HNPkEHTKB3JnFduC3/eIJ7GwN7LTDMj6GCDk1\r\ncNK3tC2bpYEmvds8h85P1tRhBblDvNkMCAhXYxs30st1MsOmqGWRGBrmdBQp\r\nP+kIMon+uy08vqx1KzTFRjZBgbaw6VBgFZVoobaaWkk6xNRpUPW8e2PdXqsz\r\nAq7qbyeb4MQLw9Sd/MH99nIKFOQeTKxLy4nhW+imHOOR0VNbBbsovG9CC8Yc\r\n2ru3L/QC96JTZYV+n9YQGjkWQJBNu7lvyq0Bh2TqSfvo/4del/rcYuF1ugwC\r\nyY9I9JNIqUsr/1E8LVG4kv5FCKvt+pKPoUgabBIYTJGIzJ6/nNDQVMKEsmUC\r\nkEEdj5DqAa6HueMfCohkEa6vtQevxAC4FP4=\r\n=jgXe\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","types":"lib/index.d.ts","engines":{"node":">=10.0.0"},"gitHead":"21db1eaa7d232ea7eaba06c537e2e54ceea37667","scripts":{"cjs":"deno run --allow-all bin/cjs-fix-imports.ts -o build/ src/ modules/cjs/ node_test/","doc":"npm run clean && rm -Rf docs && npm run stage && node_modules/.bin/typedoc --out docs/ && touch ./docs/.nojekyll","fmt":"deno fmt src/ examples/ modules/ test/ node_test/","init":"mkdir -p build","test":"npm run prepare && ava --verbose && deno test -A --unstable test/","clean":"rm -Rf build/ lib/ nkeys.d.ts nkeys.mjs","stage":"npm run init && npm run cjs && npm run generate && tsc","prepare":"npm run stage && npm run generate && deno bundle modules/esm/mod.ts nkeys.mjs && tsc","generate":"deno run -A --unstable ./bin/tweetnacl-esm.ts"},"_npmUser":{"name":"aricart","email":"alberto@synadia.com"},"repository":{"url":"https://github.com//nats-io/nkeys.js","type":"git"},"_npmVersion":"8.19.2","description":"A public-key signature system based on Ed25519 for the NATS ecosystem in javascript","directories":{},"_nodeVersion":"19.2.0","dependencies":{"tweetnacl":"1.0.3"},"_hasShrinkwrap":false,"devDependencies":{"ava":"^5.1.0","typedoc":"^0.23.23","typescript":"^4.9.x","@types/node":"^18.11.17"},"_npmOperationalInternal":{"tmp":"tmp/nkeys.js_1.0.4_1671629182699_0.8224734686890607","host":"s3://npm-registry-packages"}},"1.0.5":{"name":"nkeys.js","version":"1.0.5","keywords":["nats","Ed25519","javascript"],"author":{"name":"The NATS Authors"},"license":"Apache-2.0","_id":"nkeys.js@1.0.5","maintainers":[{"name":"aricart","email":"alberto@synadia.com"}],"ava":{"files":["./node_test/*.js"],"require":[],"failFast":true},"dist":{"shasum":"3024bde671eb33be0316ff2d5abe8b8cec960158","tarball":"https://registry.npmjs.org/nkeys.js/-/nkeys.js-1.0.5.tgz","fileCount":27,"integrity":"sha512-u25YnRPHiGVsNzwyHnn+PT90sgAhnS8jUJ1nxmkHMFYCJ6+Ic0lv291w7uhRBpJVJ3PH2GWbYqA151lGCRrB5g==","signatures":[{"sig":"MEUCIQCwE2s8KMNVlwcrAUxeloGuWoPJ1zNdUdMVGnNE8cwevAIgLV/wnN3vEOTpX94fLhY28nVxGwOrd9zdc/2iEN1nK3E=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":109577,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj29b6ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpUIg//Zffw16//4EfWMbbWyOa9Mu0uqKsDfCBG+pnxWZ019reOVAv0\r\ngu8UWhoIX0a4DfFsSOAyI5/WFJo8L9ZsQfGkWc4gRFk7yD7iUMUetltIvaHO\r\nj8Dkw9gBSk1h/eSSjSvdjjJHuaIwDGfUHCwv+kgzm8BKgVgwTqtokGWd6E+Y\r\nLRTpR7Md8w3XUF9bQtwPG64yCE/SxGiPv2UAjd0rddFgMg+JlueTjffwNflg\r\n1vu2yUY6+DZSgARjXm7XVtVXXgy6/Pi+NrRrruPkRelvuwS06ia1cSkgx4J9\r\n2OtSkSlzx+Jv2eewvpoUmK+hIGjSOasWp1ABTobLFHEiLgbvoEb1a8bkBo7y\r\nZxHjtx9gsp03lCtNQ2Kxt+sWRQnAl3c+kBgVRXpfupukDefR0i7mbZsH6Hd5\r\nhDal3s1LBxN+ER0CKALMPMZM3RLIR5Xl3SSovw39ZzlpGCOYaUVKIdNd7gF0\r\nQMr54yC4QOqIZIKYrwJo8hDpQnmMtYtLaRWiyhnDaxqclwEqPNS9YbmwbIQ1\r\nILtJ1U4PcVrbwi7ubsc6TLg8T3sKwbDx7TENzpQ9jCPY4abyfs+88yE92bWb\r\nMnaXshYKfPJ122HGDjwco9hUUQQMbb5NkgOJEN5nD0fcRuKDsEGyYN/DdZJV\r\nBNhhmaL6wRZACGC2ityy8Fg+7NpxTmB81R8=\r\n=F07V\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","types":"lib/index.d.ts","engines":{"node":">=10.0.0"},"gitHead":"9b08b6f038480607e0cbaac2d6a71b8beff58f35","scripts":{"cjs":"deno run --allow-all bin/cjs-fix-imports.ts -o build/ src/ modules/cjs/ node_test/","doc":"npm run clean && rm -Rf docs && npm run stage && node_modules/.bin/typedoc --out docs/ && touch ./docs/.nojekyll","fmt":"deno fmt src/ examples/ modules/ test/ node_test/","init":"mkdir -p build","test":"npm run prepare && ava --verbose && deno test -A --unstable test/","clean":"rm -Rf build/ lib/ nkeys.d.ts nkeys.mjs","stage":"npm run init && npm run cjs && npm run generate && tsc","prepare":"npm run stage && npm run generate && deno bundle modules/esm/mod.ts nkeys.mjs && tsc","generate":"deno run -A --unstable ./bin/tweetnacl-esm.ts"},"_npmUser":{"name":"aricart","email":"alberto@synadia.com"},"repository":{"url":"https://github.com//nats-io/nkeys.js","type":"git"},"_npmVersion":"9.2.0","description":"A public-key signature system based on Ed25519 for the NATS ecosystem in javascript","directories":{},"_nodeVersion":"19.4.0","dependencies":{"tweetnacl":"1.0.3"},"_hasShrinkwrap":false,"devDependencies":{"ava":"^5.1.x","typedoc":"^0.23.x","typescript":"^4.9.x","@types/node":"^18.11.x"},"_npmOperationalInternal":{"tmp":"tmp/nkeys.js_1.0.5_1675351802061_0.3800921160109838","host":"s3://npm-registry-packages"}},"1.0.6-1":{"name":"nkeys.js","version":"1.0.6-1","keywords":["nats","Ed25519","javascript"],"author":{"name":"The NATS Authors"},"license":"Apache-2.0","_id":"nkeys.js@1.0.6-1","maintainers":[{"name":"aricart","email":"alberto@synadia.com"}],"homepage":"https://github.com/nats-io/nkeys.js#readme","bugs":{"url":"https://github.com/nats-io/nkeys.js/issues"},"ava":{"files":["./node_test/*.js"],"require":[],"failFast":true},"dist":{"shasum":"461acc8b3a9469770dcc93876dfbbecdfe1a8b76","tarball":"https://registry.npmjs.org/nkeys.js/-/nkeys.js-1.0.6-1.tgz","fileCount":27,"integrity":"sha512-dW5sWS7n9QKdJwxwTjj36YAkMysgQzRNNBqVgSoeQP8tQGWsNKWV2NQHgQ5TalI4lkhjB3cGGchT9z0zT13ZeQ==","signatures":[{"sig":"MEUCIQCY6h1EOfmKAYMHoBY18/1ObXLU5gXVZIiixnFxQvxRCgIgRPxssCzZYD0puOjhLKTuMb0kDQWatT9L1EtqSCe+bC0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/nkeys.js@1.0.6-1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":109961},"main":"lib/index.js","types":"lib/index.d.ts","readme":"# nkeys.js\n\nA public-key signature system based on Ed25519 for the\n[NATS ecosystem system](https://nats.io) for JavaScript.\n\n[![license](https://img.shields.io/github/license/nats-io/ts-nats.svg)](https://www.apache.org/licenses/LICENSE-2.0)\n[![nkeys.js](https://github.com/aricart/nkeys.js/workflows/nkeys.js/badge.svg)](https://github.com/aricart/nkeys.js/actions)\n[![npm](https://img.shields.io/npm/v/nkeys.js.svg)](https://www.npmjs.com/package/nkeys.js)\n[![npm](https://img.shields.io/npm/dt/nkeys.js.svg)](https://www.npmjs.com/package/nkeys.js)\n\nThe nkeys.js library works in Deno, Node.js, and the browser!\n\n## Installation\n\nFor your Deno projects:\n\n```javascript\nimport {\n  createUser,\n  fromPublic,\n  fromSeed,\n} from \"https://deno.land/x/nkeys.js/modules/esm/mod.ts\";\n```\n\nOn node, and browsers you can get a build from npm:\n\n```bash\nnpm install nkeys.js\n```\n\nIn your node projects:\n\n```javascript\nconst { createUser, fromSeed, fromPublic } = require(\"nkeys.js\");\n```\n\nOn your browser projects, make available the `node/nkeys.js/nkeys.mjs`, and then\n\n```javascript\nimport { createUser, fromPublic, fromSeed } from \"https://host/path/nkeys.mjs\";\n```\n\n## Basic Usage\n\nThe [documentation is here](https://nats-io.github.io/nkeys.js/)\n\n```typescript\n// create an user nkey KeyPair (can also create accounts, operators, etc).\nconst user = createUser();\n\n// A seed is the public and private keys together.\nconst seed: Uint8Array = user.getSeed();\n\n// Seeds are encoded into Uint8Array, and start with\n// the letter 'S'. Seeds need to be kept safe and never shared\nconsole.log(`seeds start with s: ${seed[0] === \"S\".charCodeAt(0)}`);\n\n// A seed's second letter encodes it's type:\n// `U` for user,\n// `A` for account,\n// `O` for operators\nconsole.log(`nkey is for a user? ${seed[1] === \"U\".charCodeAt(0)}`);\n\n// To view a seed, simply decode it:\nconsole.log(new TextDecoder().decode(seed));\n\n// you can recreate the keypair with its seed:\nconst priv = fromSeed(seed);\n\n// Using the KeyPair, you can cryptographically sign content:\nconst data = new TextEncoder().encode(\"Hello World!\");\nconst sig = priv.sign(data);\n\n// and verify a signature:\nconst valid = user.verify(data, sig);\nif (!valid) {\n  console.error(\"couldn't validate the data/signature against my key\");\n} else {\n  console.error(\"data was verified by my key\");\n}\n\n// others can validate using your public key:\nconst publicKey = user.getPublicKey();\nconst pub = fromPublic(publicKey);\nif (!pub.verify(data, sig)) {\n  console.error(`couldn't validate the data/signature with ${publicKey}`);\n} else {\n  console.info(`data was verified by ${publicKey}`);\n}\n\n// when extracting with seeds or private keys\n// you should clear them when done:\nseed.fill(0);\n\n// you should also clear the keypairs:\nuser.clear();\npriv.clear();\n```\n\n## Supported Node Versions\n\nOur support policy for Nodejs versions follows\n[Nodejs release support](https://github.com/nodejs/Release). We will support and\nbuild nkeys.js on even-numbered Nodejs versions that are current or in LTS.\n\n## License\n\nUnless otherwise noted, the NATS source files are distributed under the Apache\nVersion 2.0 license found in the LICENSE file.\n","engines":{"node":">=10.0.0"},"gitHead":"6446d2a9513f4103789a9e1cb83562598921acad","scripts":{"cjs":"deno run --allow-all bin/cjs-fix-imports.ts -o build/ src/ modules/cjs/ node_test/","doc":"npm run clean && rm -Rf docs && npm run stage && node_modules/.bin/typedoc --out docs/ && touch ./docs/.nojekyll","fmt":"deno fmt src/ examples/ modules/ test/ node_test/","init":"mkdir -p build","test":"npm run prepare && ava --verbose && deno test -A --unstable test/","clean":"rm -Rf build/ lib/ nkeys.d.ts nkeys.mjs","stage":"npm run init && npm run cjs && npm run generate && tsc","prepare":"npm run stage && npm run generate && deno bundle modules/esm/mod.ts nkeys.mjs && tsc","generate":"deno run -A --unstable ./bin/tweetnacl-esm.ts","bump-release":"npm version patch --no-commit-hooks --no-git-tag-version","check-package":"deno run --allow-all bin/check-bundle-version.ts","bump-qualifier":"npm version prerelease --no-commit-hooks --no-git-tag-version"},"_npmUser":{"name":"aricart","email":"alberto@synadia.com"},"repository":{"url":"git+https://github.com/nats-io/nkeys.js.git","type":"git"},"_npmVersion":"10.2.3","description":"A public-key signature system based on Ed25519 for the NATS ecosystem in javascript","directories":{},"_nodeVersion":"20.9.0","dependencies":{"tweetnacl":"1.0.3"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"ava":"^5.2.x","typedoc":"^0.25.x","typescript":"^5.2.x","@types/node":"^20.8.x"},"_npmOperationalInternal":{"tmp":"tmp/nkeys.js_1.0.6-1_1699992706994_0.16646274272891026","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"nkeys.js","version":"1.1.0","keywords":["nats","Ed25519","javascript"],"author":{"name":"The NATS Authors"},"license":"Apache-2.0","_id":"nkeys.js@1.1.0","maintainers":[{"name":"aricart","email":"alberto@synadia.com"}],"homepage":"https://github.com/nats-io/nkeys.js#readme","bugs":{"url":"https://github.com/nats-io/nkeys.js/issues"},"ava":{"files":["./node_test/*.js"],"require":[],"failFast":true},"dist":{"shasum":"de83a9a13f396c5b6d7c412788f4b9f7f35d4c18","tarball":"https://registry.npmjs.org/nkeys.js/-/nkeys.js-1.1.0.tgz","fileCount":29,"integrity":"sha512-tB/a0shZL5UZWSwsoeyqfTszONTt4k2YS0tuQioMOD180+MbombYVgzDUYHlx+gejYK6rgf08n/2Df99WY0Sxg==","signatures":[{"sig":"MEYCIQC5rTiYbkxi6YX1Hw6X3P3lQewiHRpb4eMUVKNVXQRtMAIhAL/AGyWiRr7mI7JbNt7ZvuaGUHoLymLlLA6/NLRKpvWg","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/nkeys.js@1.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":124722},"main":"lib/index.js","types":"lib/index.d.ts","engines":{"node":">=10.0.0"},"gitHead":"88d9d1c6479755ab4a215a7d5265b9d01990c57e","scripts":{"cjs":"deno run --allow-all bin/cjs-fix-imports.ts -o build/ src/ modules/cjs/ node_test/","doc":"npm run clean && rm -Rf docs && npm run stage && node_modules/.bin/typedoc --out docs/ && touch ./docs/.nojekyll","fmt":"deno fmt src/ examples/ modules/ test/ node_test/","init":"mkdir -p build","test":"npm run prepare && ava --verbose && deno test -A test/","clean":"rm -Rf build/ lib/ nkeys.d.ts nkeys.mjs ./coverage","cover":"npm run clean && npm run prepare && deno test --coverage=coverage -A test/ && deno coverage ./coverage --lcov > ./coverage/out.lcov && genhtml -o ./coverage/html ./coverage/out.lcov && open ./coverage/html/index.html","stage":"npm run init && npm run cjs && npm run generate && tsc","prepare":"npm run stage && npm run generate && deno bundle modules/esm/mod.ts nkeys.mjs && tsc","generate":"deno run -A ./bin/tweetnacl-esm.ts","bump-release":"npm version patch --no-commit-hooks --no-git-tag-version","check-package":"deno run --allow-all bin/check-bundle-version.ts","bump-qualifier":"npm version prerelease --no-commit-hooks --no-git-tag-version"},"_npmUser":{"name":"aricart","email":"alberto@synadia.com"},"repository":{"url":"git+https://github.com/nats-io/nkeys.js.git","type":"git"},"_npmVersion":"10.4.0","description":"A public-key signature system based on Ed25519 for the NATS ecosystem in javascript","directories":{},"_nodeVersion":"20.11.1","dependencies":{"tweetnacl":"1.0.3"},"_hasShrinkwrap":false,"devDependencies":{"ava":"^6.1.x","typedoc":"^0.25.8","typescript":"^5.3.3","@types/node":"^20.11.x"},"_npmOperationalInternal":{"tmp":"tmp/nkeys.js_1.1.0_1708548126361_0.10278259912597743","host":"s3://npm-registry-packages"}},"1.2.0-1":{"name":"nkeys.js","version":"1.2.0-1","keywords":["nats","Ed25519","javascript"],"author":{"name":"The NATS Authors"},"license":"Apache-2.0","_id":"nkeys.js@1.2.0-1","maintainers":[{"name":"aricart","email":"alberto@synadia.com"}],"homepage":"https://github.com/nats-io/nkeys.js#readme","bugs":{"url":"https://github.com/nats-io/nkeys.js/issues"},"dist":{"shasum":"f968e6961afedc447afbf2e49c15bf0af70c2abd","tarball":"https://registry.npmjs.org/nkeys.js/-/nkeys.js-1.2.0-1.tgz","fileCount":45,"integrity":"sha512-hJyqD2El1AOpIfRd/RgWrCZQ4D1rdyeTFUShjbysbeTf6FgkxaIWaZNN0mN1a6ftyv7No7lsrTxKBCOz8vrZig==","signatures":[{"sig":"MEUCIQCAiK5VrOzZrmvWhmAPeJsUOrkDFtrj9a4CuACYM51AVAIgYx+sq4aodHpDW80DVhWNWbGeqm4h3VbXDfvSYKzW3+8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":171527},"main":"lib/index.js","types":"lib/index.d.ts","engines":{"node":">=18.0.0"},"gitHead":"fc0f77dc2918cbd55bfbc31b634726ce65c03d9c","scripts":{"cjs":"deno run --allow-all bin/cjs-fix-imports.ts -o build/ src/ modules/cjs/ node_test/","doc":"npm run clean && rm -Rf docs && npm run stage && node_modules/.bin/typedoc --out docs/ && touch ./docs/.nojekyll","fmt":"deno fmt src/ examples/ modules/ test/ node_test/","init":"mkdir -p build","test":"npm run prepare && node --test && deno test -A test/","clean":"rm -Rf build/ lib/ nkeys.d.ts nkeys.mjs ./coverage","cover":"npm run clean && npm run prepare && deno test --coverage=coverage -A test/ && deno coverage ./coverage --lcov > ./coverage/out.lcov && genhtml -o ./coverage/html ./coverage/out.lcov && open ./coverage/html/index.html","stage":"npm run init && npm run cjs && npm run generate && tsc","prepare":"npm run stage && npm run generate && deno bundle modules/esm/mod.ts nkeys.mjs","generate":"deno run -A ./bin/tweetnacl-esm.ts","bump-release":"npm version patch --no-commit-hooks --no-git-tag-version","check-package":"deno run --allow-all bin/check-bundle-version.ts","bump-qualifier":"npm version prerelease --no-commit-hooks --no-git-tag-version"},"_npmUser":{"name":"aricart","email":"alberto@synadia.com"},"repository":{"url":"git+https://github.com/nats-io/nkeys.js.git","type":"git"},"_npmVersion":"10.7.0","description":"A public-key signature system based on Ed25519 for the NATS ecosystem in javascript","directories":{},"_nodeVersion":"22.2.0","dependencies":{"tweetnacl":"1.0.3"},"_hasShrinkwrap":false,"devDependencies":{"typedoc":"^0.25.13","typescript":"^5.4.5","@types/node":"^20.12.10"},"_npmOperationalInternal":{"tmp":"tmp/nkeys.js_1.2.0-1_1718048083533_0.2805574268668152","host":"s3://npm-registry-packages"}},"1.2.0-2":{"name":"nkeys.js","version":"1.2.0-2","keywords":["nats","Ed25519","javascript"],"author":{"name":"The NATS Authors"},"license":"Apache-2.0","_id":"nkeys.js@1.2.0-2","maintainers":[{"name":"aricart","email":"alberto@synadia.com"}],"homepage":"https://github.com/nats-io/nkeys.js#readme","bugs":{"url":"https://github.com/nats-io/nkeys.js/issues"},"dist":{"shasum":"d6dd51e326a37006bfe6d55020c758a10a4e8458","tarball":"https://registry.npmjs.org/nkeys.js/-/nkeys.js-1.2.0-2.tgz","fileCount":45,"integrity":"sha512-GqbrmCqSt825p0AA/m6rI2pKilcZ9SV80xCmbCmmvOGs+fKfNRKO9zMIoL/Y3aBoavQKoJkcfCCQJLPnKrqWRg==","signatures":[{"sig":"MEQCIBqTMCV3YewCf4gESP4oFE7roEe9pJplk5gb3xOrBjQEAiAlQFEQGgo6GSis64f18zGbMchxRtFTaxSMVAJ3AuM11Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/nkeys.js@1.2.0-2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":166439},"main":"lib/index.js","types":"lib/index.d.ts","readme":"# nkeys.js\n\nA public-key signature system based on Ed25519 for the\n[NATS ecosystem system](https://nats.io) for JavaScript.\n\n[![license](https://img.shields.io/github/license/nats-io/ts-nats.svg)](https://www.apache.org/licenses/LICENSE-2.0)\n[![nkeys.js](https://github.com/aricart/nkeys.js/workflows/nkeys.js/badge.svg)](https://github.com/aricart/nkeys.js/actions)\n[![npm](https://img.shields.io/npm/v/nkeys.js.svg)](https://www.npmjs.com/package/nkeys.js)\n[![npm](https://img.shields.io/npm/dt/nkeys.js.svg)](https://www.npmjs.com/package/nkeys.js)\n\nThe nkeys.js library works in Deno, Node.js, and the browser!\n\n## Installation\n\nThe nkeys library is available on both\n[npm](https://www.npmjs.com/package/nkeys.js) and\n[jsr.io](https://jsr.io/@nats-io/nkeys)\n\nIn Deno:\n\n```bash\ndeno add @nats-io/nkeys\n```\n\n```javascript\nimport { createUser, fromPublic, fromSeed } from \"@nats-io/nkeys\";\n```\n\nIn Node:\n\n```bash\nnpm install nkeys.js\n```\n\n```javascript\nconst { createUser, fromSeed, fromPublic } = require(\"nkeys.js\");\n// or\nimport { createUser, fromPublic, fromSeed } from \"nkeys.js\";\n```\n\nOn your browser projects copy `node_modules/nkeys.js/nkeys.mjs` to your document\nroot, and then\n\n```javascript\nimport { createUser, fromPublic, fromSeed } from \"https://host/path/nkeys.mjs\";\n```\n\n## Basic Usage\n\nThe [documentation is here](https://nats-io.github.io/nkeys.js/)\n\n```typescript\n// create an user nkey KeyPair (can also create accounts, operators, etc).\nconst user = createUser();\n\n// A seed is the public and private keys together.\nconst seed: Uint8Array = user.getSeed();\n\n// Seeds are encoded into Uint8Array, and start with\n// the letter 'S'. Seeds need to be kept safe and never shared\nconsole.log(`seeds start with s: ${seed[0] === \"S\".charCodeAt(0)}`);\n\n// A seed's second letter encodes it's type:\n// `U` for user,\n// `A` for account,\n// `O` for operators\nconsole.log(`nkey is for a user? ${seed[1] === \"U\".charCodeAt(0)}`);\n\n// To view a seed, simply decode it:\nconsole.log(new TextDecoder().decode(seed));\n\n// you can recreate the keypair with its seed:\nconst priv = fromSeed(seed);\n\n// Using the KeyPair, you can cryptographically sign content:\nconst data = new TextEncoder().encode(\"Hello World!\");\nconst sig = priv.sign(data);\n\n// and verify a signature:\nconst valid = user.verify(data, sig);\nif (!valid) {\n  console.error(\"couldn't validate the data/signature against my key\");\n} else {\n  console.error(\"data was verified by my key\");\n}\n\n// others can validate using your public key:\nconst publicKey = user.getPublicKey();\nconst pub = fromPublic(publicKey);\nif (!pub.verify(data, sig)) {\n  console.error(`couldn't validate the data/signature with ${publicKey}`);\n} else {\n  console.info(`data was verified by ${publicKey}`);\n}\n\n// when extracting with seeds or private keys\n// you should clear them when done:\nseed.fill(0);\n\n// you should also clear the keypairs:\nuser.clear();\npriv.clear();\n```\n\n## Supported Node Versions\n\nOur support policy for Nodejs versions follows\n[Nodejs release support](https://github.com/nodejs/Release). We will support and\nbuild nkeys.js on even-numbered Nodejs versions that are current or in LTS.\n\nNote that this library no longer shims `atob`, `btoa`, `TextEncoder`, nor\n`TextDecoder`. These should be available in fairly old node builds going as far\nback as Node 16. If you need to run on an older environment, use one of the\nolder versions on npm.\n\n## License\n\nUnless otherwise noted, the NATS source files are distributed under the Apache\nVersion 2.0 license found in the LICENSE file.\n","engines":{"node":">=16.0.0"},"gitHead":"0c2947a8d74941b562155d4b5a9ba6120500d837","scripts":{"cjs":"deno run --allow-all bin/cjs-fix-imports.ts -o build/ src/ modules/cjs/ node_test/","doc":"npm run clean && rm -Rf docs && npm run stage && node_modules/.bin/typedoc --out docs/ && touch ./docs/.nojekyll","fmt":"deno fmt src/ examples/ modules/ test/ node_test/","init":"mkdir -p build","test":"npm run clean && npm run prepare && node --test && deno test -A test/","clean":"rm -Rf build/ lib/ nkeys.d.ts nkeys.mjs ./coverage","cover":"npm run clean && npm run prepare && deno test --coverage=coverage -A test/ && deno coverage ./coverage --lcov > ./coverage/out.lcov && genhtml -o ./coverage/html ./coverage/out.lcov && open ./coverage/html/index.html","stage":"npm run init && npm run cjs && npm run generate && tsc","prepare":"npm run stage && npm run generate && deno bundle modules/esm/mod.ts nkeys.mjs","generate":"deno run -A ./bin/tweetnacl-esm.ts","bump-release":"npm version patch --no-commit-hooks --no-git-tag-version","check-package":"deno run --allow-all bin/check-bundle-version.ts","bump-qualifier":"npm version prerelease --no-commit-hooks --no-git-tag-version"},"_npmUser":{"name":"aricart","email":"alberto@synadia.com"},"repository":{"url":"git+https://github.com/nats-io/nkeys.js.git","type":"git"},"_npmVersion":"10.8.1","description":"A public-key signature system based on Ed25519 for the NATS ecosystem in javascript","directories":{},"_nodeVersion":"22.2.0","dependencies":{"tweetnacl":"1.0.3"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typedoc":"^0.25.13","typescript":"^5.4.5","@types/node":"^20.12.10"},"_npmOperationalInternal":{"tmp":"tmp/nkeys.js_1.2.0-2_1718056945780_0.11695028944638453","host":"s3://npm-registry-packages"}},"1.2.0-4":{"name":"nkeys.js","version":"1.2.0-4","description":"A public-key signature system based on Ed25519 for the NATS ecosystem in javascript","main":"lib/index.js","types":"lib/index.d.ts","scripts":{"init":"mkdir -p build","clean":"rm -Rf build/ lib/ nkeys.d.ts nkeys.mjs ./coverage","fmt":"deno fmt src/ examples/ modules/ test/ node_test/","cjs":"deno run --allow-all bin/cjs-fix-imports.ts -o build/ src/ modules/cjs/ node_test/","generate":"deno run -A bin/generate_version.ts && deno run -A ./bin/tweetnacl-esm.ts","stage":"npm run init && npm run generate && npm run cjs && tsc","prepare":"npm run clean && npm run stage && npm run generate && deno bundle modules/esm/mod.ts nkeys.mjs","test":"npm run clean && npm run prepare && node --test && deno test -A test/","cover":"npm run clean && npm run prepare && deno test --coverage=coverage -A test/ && deno coverage ./coverage --lcov > ./coverage/out.lcov && genhtml -o ./coverage/html ./coverage/out.lcov && open ./coverage/html/index.html","doc":"npm run clean && rm -Rf docs && npm run stage && node_modules/.bin/typedoc --out docs/ && touch ./docs/.nojekyll","bump-qualifier":"npm version prerelease --no-commit-hooks --no-git-tag-version","bump-release":"npm version patch --no-commit-hooks --no-git-tag-version","check-package":"deno run --allow-all bin/check-bundle-version.ts"},"engines":{"node":">=16.0.0"},"repository":{"type":"git","url":"git+https://github.com/nats-io/nkeys.js.git"},"keywords":["nats","Ed25519","javascript"],"author":{"name":"The NATS Authors"},"license":"Apache-2.0","dependencies":{"tweetnacl":"1.0.3"},"devDependencies":{"@types/node":"^20.12.10","typedoc":"^0.25.13","typescript":"^5.4.5"},"_id":"nkeys.js@1.2.0-4","readme":"# nkeys.js\n\nA public-key signature system based on Ed25519 for the\n[NATS ecosystem system](https://nats.io) for JavaScript.\n\n[![license](https://img.shields.io/github/license/nats-io/ts-nats.svg)](https://www.apache.org/licenses/LICENSE-2.0)\n[![nkeys.js](https://github.com/aricart/nkeys.js/workflows/nkeys.js/badge.svg)](https://github.com/aricart/nkeys.js/actions)\n[![npm](https://img.shields.io/npm/v/nkeys.js.svg)](https://www.npmjs.com/package/nkeys.js)\n[![npm](https://img.shields.io/npm/dt/nkeys.js.svg)](https://www.npmjs.com/package/nkeys.js)\n\nThe nkeys.js library works in Deno, Node.js, and the browser!\n\n## Installation\n\nThe nkeys library is available on both\n[npm](https://www.npmjs.com/package/nkeys.js) and\n[jsr.io](https://jsr.io/@nats-io/nkeys)\n\nIn Deno:\n\n```bash\ndeno add @nats-io/nkeys\n```\n\n```javascript\nimport { createUser, fromPublic, fromSeed } from \"@nats-io/nkeys\";\n```\n\nIn Node:\n\n```bash\nnpm install nkeys.js\n```\n\n```javascript\nconst { createUser, fromSeed, fromPublic } = require(\"nkeys.js\");\n// or\nimport { createUser, fromPublic, fromSeed } from \"nkeys.js\";\n```\n\nOn your browser projects copy `node_modules/nkeys.js/nkeys.mjs` to your document\nroot, and then\n\n```javascript\nimport { createUser, fromPublic, fromSeed } from \"https://host/path/nkeys.mjs\";\n```\n\n## Basic Usage\n\nThe [documentation is here](https://nats-io.github.io/nkeys.js/)\n\n```typescript\n// create an user nkey KeyPair (can also create accounts, operators, etc).\nconst user = createUser();\n\n// A seed is the public and private keys together.\nconst seed: Uint8Array = user.getSeed();\n\n// Seeds are encoded into Uint8Array, and start with\n// the letter 'S'. Seeds need to be kept safe and never shared\nconsole.log(`seeds start with s: ${seed[0] === \"S\".charCodeAt(0)}`);\n\n// A seed's second letter encodes it's type:\n// `U` for user,\n// `A` for account,\n// `O` for operators\nconsole.log(`nkey is for a user? ${seed[1] === \"U\".charCodeAt(0)}`);\n\n// To view a seed, simply decode it:\nconsole.log(new TextDecoder().decode(seed));\n\n// you can recreate the keypair with its seed:\nconst priv = fromSeed(seed);\n\n// Using the KeyPair, you can cryptographically sign content:\nconst data = new TextEncoder().encode(\"Hello World!\");\nconst sig = priv.sign(data);\n\n// and verify a signature:\nconst valid = user.verify(data, sig);\nif (!valid) {\n  console.error(\"couldn't validate the data/signature against my key\");\n} else {\n  console.error(\"data was verified by my key\");\n}\n\n// others can validate using your public key:\nconst publicKey = user.getPublicKey();\nconst pub = fromPublic(publicKey);\nif (!pub.verify(data, sig)) {\n  console.error(`couldn't validate the data/signature with ${publicKey}`);\n} else {\n  console.info(`data was verified by ${publicKey}`);\n}\n\n// when extracting with seeds or private keys\n// you should clear them when done:\nseed.fill(0);\n\n// you should also clear the keypairs:\nuser.clear();\npriv.clear();\n```\n\n## Supported Node Versions\n\nOur support policy for Nodejs versions follows\n[Nodejs release support](https://github.com/nodejs/Release). We will support and\nbuild nkeys.js on even-numbered Nodejs versions that are current or in LTS.\n\nNote that this library no longer shims `atob`, `btoa`, `TextEncoder`, nor\n`TextDecoder`. These should be available in fairly old node builds going as far\nback as Node 16. If you need to run on an older environment, use one of the\nolder versions on npm.\n\n## License\n\nUnless otherwise noted, the NATS source files are distributed under the Apache\nVersion 2.0 license found in the LICENSE file.\n","readmeFilename":"README.md","gitHead":"d66cf7ab9c99d22c94de9cba95337d536bed4c16","bugs":{"url":"https://github.com/nats-io/nkeys.js/issues"},"homepage":"https://github.com/nats-io/nkeys.js#readme","_nodeVersion":"22.2.0","_npmVersion":"10.8.1","dist":{"integrity":"sha512-VLyOcyhYrQ7LN8jZhSaGtSVIy25h/Y+PFaKDbODW8nDgMcGyyjeUm7H02cssVqOVzmsEDh0Bq6BS9zXTXpKPUg==","shasum":"ab5da20d1ed8d11c421b048a1430f99a321a27bc","tarball":"https://registry.npmjs.org/nkeys.js/-/nkeys.js-1.2.0-4.tgz","fileCount":48,"unpackedSize":167200,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/nkeys.js@1.2.0-4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFQB1FR2+thug1Yc9vEf0gRDv8t1EwXOR75IfRcbsMEqAiEAxirkL6/1KfW7Ipqq20fFMXurjF997eUwp0LUGVbSDPE="}]},"_npmUser":{"name":"aricart","email":"alberto@synadia.com"},"directories":{},"maintainers":[{"name":"aricart","email":"alberto@synadia.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nkeys.js_1.2.0-4_1718118078353_0.373287664851244"},"_hasShrinkwrap":false}},"time":{"created":"2020-07-28T21:21:49.272Z","modified":"2024-06-11T15:01:18.967Z","1.0.0-0":"2020-07-28T21:21:49.409Z","1.0.0-1":"2020-07-28T21:38:23.376Z","1.0.0-2":"2020-08-03T16:43:12.215Z","1.0.0-3":"2020-08-04T14:33:10.729Z","1.0.0-5":"2020-08-05T22:22:09.254Z","1.0.0-6":"2020-09-02T22:18:39.661Z","1.0.0-8":"2020-11-06T16:25:40.292Z","1.0.0-9":"2021-01-06T22:48:31.521Z","1.0.1-1":"2022-07-13T14:30:42.764Z","1.0.1-2":"2022-07-13T15:20:44.759Z","1.0.1-3":"2022-07-13T15:28:37.226Z","1.0.2":"2022-07-13T18:05:27.774Z","1.0.3-1":"2022-07-13T21:56:05.923Z","1.0.3":"2022-07-14T19:35:13.029Z","1.0.4":"2022-12-21T13:26:22.892Z","1.0.5":"2023-02-02T15:30:02.371Z","1.0.6-1":"2023-11-14T20:11:47.213Z","1.1.0":"2024-02-21T20:42:06.532Z","1.2.0-1":"2024-06-10T19:34:43.715Z","1.2.0-2":"2024-06-10T22:02:25.950Z","1.2.0-4":"2024-06-11T15:01:18.524Z"},"maintainers":[{"name":"aricart","email":"alberto@synadia.com"}],"author":{"name":"The NATS Authors"},"repository":{"url":"git+https://github.com/nats-io/nkeys.js.git","type":"git"},"keywords":["nats","Ed25519","javascript"],"license":"Apache-2.0","homepage":"https://github.com/nats-io/nkeys.js#readme","bugs":{"url":"https://github.com/nats-io/nkeys.js/issues"},"readme":"# nkeys.js\n\nA public-key signature system based on Ed25519 for the\n[NATS ecosystem system](https://nats.io) for JavaScript.\n\n[![license](https://img.shields.io/github/license/nats-io/ts-nats.svg)](https://www.apache.org/licenses/LICENSE-2.0)\n[![nkeys.js](https://github.com/aricart/nkeys.js/workflows/nkeys.js/badge.svg)](https://github.com/aricart/nkeys.js/actions)\n[![npm](https://img.shields.io/npm/v/nkeys.js.svg)](https://www.npmjs.com/package/nkeys.js)\n[![npm](https://img.shields.io/npm/dt/nkeys.js.svg)](https://www.npmjs.com/package/nkeys.js)\n\nThe nkeys.js library works in Deno, Node.js, and the browser!\n\n## Installation\n\nFor your Deno projects:\n\n```javascript\nimport {\n  createUser,\n  fromPublic,\n  fromSeed,\n} from \"https://deno.land/x/nkeys.js/modules/esm/mod.ts\";\n```\n\nOn node, and browsers you can get a build from npm:\n\n```bash\nnpm install nkeys.js\n```\n\nIn your node projects:\n\n```javascript\nconst { createUser, fromSeed, fromPublic } = require(\"nkeys.js\");\n```\n\nOn your browser projects, make available the `node/nkeys.js/nkeys.mjs`, and then\n\n```javascript\nimport { createUser, fromPublic, fromSeed } from \"https://host/path/nkeys.mjs\";\n```\n\n## Basic Usage\n\nThe [documentation is here](https://nats-io.github.io/nkeys.js/)\n\n```typescript\n// create an user nkey KeyPair (can also create accounts, operators, etc).\nconst user = createUser();\n\n// A seed is the public and private keys together.\nconst seed: Uint8Array = user.getSeed();\n\n// Seeds are encoded into Uint8Array, and start with\n// the letter 'S'. Seeds need to be kept safe and never shared\nconsole.log(`seeds start with s: ${seed[0] === \"S\".charCodeAt(0)}`);\n\n// A seed's second letter encodes it's type:\n// `U` for user,\n// `A` for account,\n// `O` for operators\nconsole.log(`nkey is for a user? ${seed[1] === \"U\".charCodeAt(0)}`);\n\n// To view a seed, simply decode it:\nconsole.log(new TextDecoder().decode(seed));\n\n// you can recreate the keypair with its seed:\nconst priv = fromSeed(seed);\n\n// Using the KeyPair, you can cryptographically sign content:\nconst data = new TextEncoder().encode(\"Hello World!\");\nconst sig = priv.sign(data);\n\n// and verify a signature:\nconst valid = user.verify(data, sig);\nif (!valid) {\n  console.error(\"couldn't validate the data/signature against my key\");\n} else {\n  console.error(\"data was verified by my key\");\n}\n\n// others can validate using your public key:\nconst publicKey = user.getPublicKey();\nconst pub = fromPublic(publicKey);\nif (!pub.verify(data, sig)) {\n  console.error(`couldn't validate the data/signature with ${publicKey}`);\n} else {\n  console.info(`data was verified by ${publicKey}`);\n}\n\n// when extracting with seeds or private keys\n// you should clear them when done:\nseed.fill(0);\n\n// you should also clear the keypairs:\nuser.clear();\npriv.clear();\n```\n\n## Supported Node Versions\n\nOur support policy for Nodejs versions follows\n[Nodejs release support](https://github.com/nodejs/Release). We will support and\nbuild nkeys.js on even-numbered Nodejs versions that are current or in LTS.\n\n## License\n\nUnless otherwise noted, the NATS source files are distributed under the Apache\nVersion 2.0 license found in the LICENSE file.\n","readmeFilename":"README.md"}