{"name":"ripple-keypairs","version":"1.1.2","license":"ISC","_id":"ripple-keypairs@1.1.2","maintainers":[{"name":"shekenahglory","email":"matthew@ripple.com"},{"name":"intelliot","email":"github.public@intelliot.com"},{"name":"mvadari","email":"mvadari@ripple.com"},{"name":"ledhed2222","email":"greg.weisbrod@gmail.com"},{"name":"jst5000","email":"aim4math@gmail.com"}],"homepage":"https://github.com/XRPLF/xrpl.js#readme","bugs":{"url":"https://github.com/XRPLF/xrpl.js/issues"},"dist":{"shasum":"bb3e846d61e7f91707f011ef4d1cf96eea29cf9d","tarball":"http://registry-npm.ywwl.com/ripple-keypairs/download/ripple-keypairs-1.1.2.tgz","fileCount":19,"integrity":"sha512-8qIQTdTDGmCjMOnqKuRo1eD3tq/s5prTuGXktcE33DteB6928VHD00IyGFV81JFjGwJlejco1yWSvB5Du4+Owg==","signatures":[{"sig":"MEYCIQD5iHnQjQ+X/BYZ5XCNiFUTGQo0RCgd3i3oGrxc1glu+wIhAOferUE67xalG7Hqrr1OxcnMNukxN+kDJKGHddW87CnI","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":24369,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhqSY9CRA9TVsSAnZWagAASAUP/068sX8GPmiuJK9Y6xYP\n7OvTYSc9iF4S5c6gBuOQRWrsBQKh/SQymLL/5YR7vq9wEa9SOtBmV1lLtp6f\nquEp6jhSNOJFIQeqqxfIb6O/4ztaAeLbMWo4nOXh2Y/UgM62Y/k+H/l47HrR\nRX2aqMU6ssOTre6xTnArpLQNC9CjPShBmVPg/bDi1njWxlgwqqN5ppHywMcH\na9c0yDKItCTOMRpX7XqKAhcsYCnZxkaAb7bSZVMBENiFvJtnPzNWqnYpHoEd\nxSUc+JTqYoQKb+EnqHQUSUnArv1V67+KbDQU386RKmPXzDUzcvDXSMX9FYlo\ndgDCRAGNEw6rUfNca6l+1PdCEla58lBliLwSi2tKhsNwdfG0U/zTfwR2EnEK\nn6aiPw9szNwYAwHm9j2KGE7oxe3yqaY9NCws6oB7a1rAmzzWkg4U64+GXRKq\ncoN8KC66JBujG88nWHeN9LNSfJWiVFv7qkE4AIXrYs3hl0qD4gt7zQRg0HqN\nW2JXHy30UOfpPL9ZW3EOzO81q/3Kf+Pp2HekOUNQXrGjyC1HGNq1FaKYgXJo\nEvIZ8mr2JTsHU9VbMfpqLBBdfvWJpGNu6NxcsO6Kc/aNqP4eAuktELvNsVqN\n/YzpFVwOZAGfNaCoLClphJJkVhpvOledt7B4S1N1uK8iKNPDkCvBcrYKAf/x\nv6r+\r\n=Cgy0\r\n-----END PGP SIGNATURE-----\r\n","size":7803,"noattachment":false,"key":"/ripple-keypairs/-/ripple-keypairs-1.1.2.tgz"},"main":"dist/","engines":{"node":">= 10"},"gitHead":"78d9b117941cd9ce06d6f1291eb24e882482ceab","scripts":{"lint":"eslint . --ext .ts","test":"tsc -b && nyc mocha","build":"tsc -b","clean":"rm -rf ./dist && rm -rf tsconfig.tsbuildinfo","prepublish":"npm run lint && npm test"},"_npmUser":{"name":"mvadari","email":"mvadari@ripple.com"},"prettier":"@xrplf/prettier-config","repository":{"url":"git+ssh://git@github.com/XRPLF/xrpl.js.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.17.1+x64 (darwin)","description":"Cryptographic key pairs for the XRP Ledger","directories":{"test":"test"},"_nodeVersion":"14.17.1","dependencies":{"bn.js":"^5.1.1","brorand":"^1.0.5","hash.js":"^1.0.3","elliptic":"^6.5.4","ripple-address-codec":"^4.2.2"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/ripple-keypairs_1.1.2_1638475325214_0.34854136515510126","host":"s3://npm-registry-packages"},"readme":"# ripple-keypairs [![NPM](https://img.shields.io/npm/v/ripple-keypairs.svg)](https://npmjs.org/package/ripple-keypairs) [![Build Status](https://img.shields.io/travis/ripple/ripple-keypairs/master.svg)](https://travis-ci.org/ripple/ripple-keypairs) ![Codecov](https://img.shields.io/codecov/c/github/ripple/ripple-keypairs)\n\nAn implementation of XRP Ledger keypairs & wallet generation using\n[elliptic](https://github.com/indutny/elliptic) which supports rfc6979 and\neddsa deterministic signatures.\n\n[![NPM](https://nodei.co/npm/ripple-keypairs.png)](https://www.npmjs.org/package/ripple-keypairs)\n\n## API Methods\n\n```\ngenerateSeed({entropy?: Array<integer>, algorithm?: string}) -> string\n```\nGenerate a seed that can be used to generate keypairs. Entropy can be provided as an array of bytes expressed as integers in the range 0-255. If provided, it must be 16 bytes long (additional bytes are ignored). If not provided, entropy will be automatically generated. The \"algorithm\" defaults to \"ecdsa-secp256k1\", but can also be set to \"ed25519\". The result is a seed encoded in base58, starting with \"s\".\n\n```\nderiveKeypair(seed: string) -> {privateKey: string, publicKey: string}\n```\nDerive a public and private key from a seed. The keys are represented as 33-byte hexadecimal strings.\n\n```\nsign(messageHex: string, privateKey: string) -> string\n```\nSign an arbitrary hex-encoded message with a private key. Returns the signature as a hexadecimal string.\n\n```\nverify(messageHex: string, signature: string, publicKey: string) -> boolean\n```\nVerify a signature for a given hex-encoded message and public key. Returns true if the signature is valid, false otherwise.\n\n```\nderiveAddress(publicKey: string) -> string\n```\nDerive an XRP Ledger classic address from a public key.\n\n```\nderiveNodeAddress(publicKey: string) -> string\n```\nDerive a node address from a public key.\n\n\n## Generate a random XRP Ledger address\n\n```\nconst seed = generateSeed();\nconst keypair = deriveKeypair(seed);\nconst address = deriveAddress(keypair.publicKey);\n```\n","publish_time":1638475325353,"_cnpm_publish_time":1638475325353,"dist-tags":{"beta":"2.0.0-beta.1","entropy-2.x-experimental":"1.4.0","entropy-4.x-experimental":"2.1.0","latest":"3.1.0","storm":"1.0.4-storm.2"}}