{"_id":"@code-wallet/keys","_rev":"1-acade2586473f980d55a1d53eabcc86e","name":"@code-wallet/keys","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"@code-wallet/keys","version":"1.0.0","license":"MIT","repository":{"type":"git","url":"git+https://github.com/code-payments/code-sdk.git"},"source":"src/index.ts","main":"dist/cjs/index.js","module":"dist/esm/index.js","types":"dist/esm/index.d.ts","scripts":{"test":"TS_NODE_COMPILER_OPTIONS='{ \"module\": \"commonjs\", \"target\": \"es2019\" }' ts-mocha --require esm './test/**/*.test.ts'","clean":"rm -rf ./dist","build":"npm run clean && tsc && tsc -p tsconfig.cjs.json"},"browserslist":["supports bigint and not dead","maintained node versions"],"dependencies":{"@noble/curves":"^1.2.0","@noble/hashes":"^1.3.0","bs58":"^5.0.0","buffer":"6.0.3"},"devDependencies":{"@types/chai":"^4.3.5","@types/mocha":"^10.0.1","@types/node":"^20.5.7","chai":"^4.3.8","ts-mocha":"^10.0.0","ts-node":"^10.9.1","typescript":"^5.1.6","esm":"^3.2.25"},"gitHead":"b72034d86c14d6ed0c186eda17379a0e8e7db93a","description":"[![npm][npm-image]][npm-url] [![npm-downloads][npm-downloads-image]][npm-url]","bugs":{"url":"https://github.com/code-payments/code-sdk/issues"},"homepage":"https://github.com/code-payments/code-sdk#readme","_id":"@code-wallet/keys@1.0.0","_nodeVersion":"18.12.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-pRB/3AJln5qI7E5og073vNauV7K/0Y9eHl6DJLrv0tj9+vB2w7mrdf4kJsKTGmR+IfGDYMnbx+jVSIbACwzruA==","shasum":"d91043b4834e5f051c882dd79fd566851239be5d","tarball":"https://registry.npmjs.org/@code-wallet/keys/-/keys-1.0.0.tgz","fileCount":26,"unpackedSize":29631,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICZ0VnnFusHS4qpUwkODzkOgFxVxo0nWncXZaDtaXhKiAiBGNxyGlf4dzUPUS/rnPuPZCWXrJLoLZJfPDw5IoH34eA=="}]},"_npmUser":{"name":"zfedoran","email":"zelimir.fedoran@gmail.com"},"directories":{},"maintainers":[{"name":"jeffatcode","email":"jeff@getcode.com"},{"name":"zfedoran","email":"zelimir.fedoran@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/keys_1.0.0_1709068722453_0.4158754000871505"},"_hasShrinkwrap":false},"1.1.0":{"name":"@code-wallet/keys","version":"1.1.0","license":"MIT","repository":{"type":"git","url":"git+https://github.com/code-payments/code-sdk.git"},"source":"src/index.ts","main":"dist/cjs/index.js","module":"dist/esm/index.js","types":"dist/esm/index.d.ts","scripts":{"test":"TS_NODE_COMPILER_OPTIONS='{ \"module\": \"commonjs\", \"target\": \"es2019\" }' ts-mocha --require esm './test/**/*.test.ts'","clean":"rm -rf ./dist","build":"npm run clean && tsc && tsc -p tsconfig.cjs.json"},"browserslist":["supports bigint and not dead","maintained node versions"],"dependencies":{"@noble/curves":"^1.2.0","@noble/hashes":"^1.3.0","bs58":"^5.0.0","buffer":"6.0.3"},"devDependencies":{"@types/chai":"^4.3.5","@types/mocha":"^10.0.1","@types/node":"^20.5.7","chai":"^4.3.8","ts-mocha":"^10.0.0","ts-node":"^10.9.1","typescript":"^5.1.6","esm":"^3.2.25"},"gitHead":"0cbd3d3bba9c2cdcf71c589680d0257e3a2747f8","description":"[![npm][npm-image]][npm-url] [![npm-downloads][npm-downloads-image]][npm-url]","bugs":{"url":"https://github.com/code-payments/code-sdk/issues"},"homepage":"https://github.com/code-payments/code-sdk#readme","_id":"@code-wallet/keys@1.1.0","_nodeVersion":"18.12.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-G0pJVqBjpdbMe5e+2u2boyP3jJlRjLfwliHByp223pyHps+wwfANTC80Uy+8nRnPZq3xx3aLK7K9hP2VH9TJwA==","shasum":"0f4fcba8f3375859add4bad56eff2b04e3a4a251","tarball":"https://registry.npmjs.org/@code-wallet/keys/-/keys-1.1.0.tgz","fileCount":32,"unpackedSize":42827,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD/aJAEXGB1Dvvfq+QQEB0wYUvNQOQn2tWSki7oMVKtnAIhAMvk67RdnEkK5isKKk6A+/HoWSHj8/2nXxsozn35bak5"}]},"_npmUser":{"name":"zfedoran","email":"zelimir.fedoran@gmail.com"},"directories":{},"maintainers":[{"name":"jeffatcode","email":"jeff@getcode.com"},{"name":"zfedoran","email":"zelimir.fedoran@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/keys_1.1.0_1712774172323_0.15146469939412288"},"_hasShrinkwrap":false}},"time":{"created":"2024-02-27T21:18:42.317Z","1.0.0":"2024-02-27T21:18:42.616Z","modified":"2024-04-10T18:36:12.786Z","1.1.0":"2024-04-10T18:36:12.512Z"},"maintainers":[{"name":"jeffatcode","email":"jeff@getcode.com"},{"name":"zfedoran","email":"zelimir.fedoran@gmail.com"}],"description":"[![npm][npm-image]][npm-url] [![npm-downloads][npm-downloads-image]][npm-url]","homepage":"https://github.com/code-payments/code-sdk#readme","repository":{"type":"git","url":"git+https://github.com/code-payments/code-sdk.git"},"bugs":{"url":"https://github.com/code-payments/code-sdk/issues"},"license":"MIT","readme":"[![npm][npm-image]][npm-url]\n[![npm-downloads][npm-downloads-image]][npm-url]\n\n[npm-downloads-image]: https://img.shields.io/npm/dt/@code-wallet/keys?style=flat\n[npm-image]: https://img.shields.io/npm/v/@code-wallet/keys?style=flat\n[npm-url]: https://www.npmjs.com/package/@code-wallet/keys\n\n# @code-wallet/keys\nManage ED25519 cryptographic keys, including public keys and key pairs, crucial\nfor the security and verification mechanisms of the platform. This package is\npart of the Code SDK, a collection of packages that provide a comprehensive set\nof tools for developers to integrate Code into their websites and applications. \n\nIf you're looking for key phrases, check out the `@code-wallet/mnemonic` package.\n\nLearn more about Code at https://getcode.com. See the [docs](https://code-wallet.github.io/code-sdk/docs) for more information.\n\n## Quick Start\n\n```bash\nnpm install @code-wallet/keys\n``` \n\n## Examples\nGenerating a Keypair\n\n```typescript\nimport { Keypair } from '@code-wallet/keys';\n\nconst keypair = Keypair.generate();\nconsole.log(\"Public value:\", keypair.getPublicValue());\nconsole.log(\"Private value:\", keypair.getPrivateValue());\n// console.log(\"Signature:\", keypair.sign(...));\n\nconst pubkey = keypair.getPublicKey();\nconsole.log(\"Public key:\", pubkey.toBase58());\n\nconst address = PublicKey.fromBase58(\"kinXdEcpDQeHPEuQnqmUgtYykqKGVFq6CeVX5iAHJq6\");\n// console.log(\"Address:\", address.verify(...));\n```\n\n## Getting Started\nAs an internal package, `@code-wallet/keys` is tailored for developers within\nthe Code team. For detailed information on each module and its functionalities,\nplease refer to the [documentation](https://code-wallet.github.io/code-sdk).\n\n## Need Help?\nIf you have any questions or need help integrating Code into your website or\napplication, please reach out to us on [Discord](https://discord.gg/T8Tpj8DBFp) or\n[Twitter](https://twitter.com/getcode).\n","readmeFilename":"README.md"}