{"_id":"@dashevo/dashcore-mnemonic","_rev":"19-f417bd20fc999934b8afb8b6bff245c1","name":"@dashevo/dashcore-mnemonic","dist-tags":{"latest":"1.6.1"},"versions":{"1.2.2":{"name":"@dashevo/dashcore-mnemonic","version":"1.2.2","keywords":["dash","bitcore","mnemonic","crypto","cryptography","encryption","dashcore"],"author":{"name":"BitPay","email":"dev@bitpay.com"},"license":"MIT","_id":"@dashevo/dashcore-mnemonic@1.2.2","maintainers":[{"name":"alex-werner","email":"alex@werner.fr"},{"name":"andyfreer","email":"andy@dash.org"},{"name":"antouhou","email":"antouhou@gmail.com"},{"name":"cofresi","email":"cofresi@dash.org"},{"name":"dreyacosta","email":"david.rey.acosta@gmail.com"},{"name":"kamuela","email":"kamuela.franco@gmail.com"},{"name":"nmarley","email":"nathan.marley@gmail.com"},{"name":"pierrevr","email":"pierre@dash.org"},{"name":"seigler","email":"joshua@seigler.net"},{"name":"shumkov","email":"ivan@shumkov.ru"},{"name":"snogcel","email":"ledniknoj@gmail.com"}],"contributors":[{"name":"Yemel Jardi","email":"angel.jardi@gmail.com"}],"homepage":"https://github.com/dashevo/dashcore-mnemonic#readme","bugs":{"url":"https://github.com/dashevo/dashcore-mnemonic/issues"},"dist":{"shasum":"1501f16b4e7b5fdf63dcd1341b94cf98be57edbf","tarball":"https://registry.npmjs.org/@dashevo/dashcore-mnemonic/-/dashcore-mnemonic-1.2.2.tgz","fileCount":28,"integrity":"sha512-ZOQWdDCV6qTQ74wcLmmUpsJZ83ppeCHjPfcDErVydxyGZmGlLHL79WJm9pWwvlnRqotFZkTtSATNgMSL2W6PrQ==","signatures":[{"sig":"MEUCIQDJ+QBBZmps4gpw1e/FmjHsxyNC3u0qbbE2cTB75YkFAgIgOfaBuc9SPkcUjxL8ZnRsKCLa3G2KCoJFaW9ox5AsXS4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":185853,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa0jj0CRA9TVsSAnZWagAAezAQAIH0rvyD/G7UUzLmpowa\nXaMaWRy6sIHoyXlLEX1IGeO2jlun30CGgZRJVDQgjbgnqf5fbw0rdzntt2xe\nhYKfDR2YVX90WD02qf9r5l2TurOzKL2zwt6C81YbCl+/mTjXGCZhFMa57yGE\nKol0BVsT0sa6XD8wXSkaO3xgFk4TzVl/XWoZy+AKbyOH41iNxNiHltC5hxiT\ngVhst/njCmjtytJMU7VAwTh9qgvGZSS8kOssMSit8ZynQacg615KISank1M+\nHLBO4lYqeBP9Rtk+4Q3hGRV1omaw658aMpFnQnzWgyYaf85gtAi41D3N0f96\nIC0/nZh3kEGZds0OI3Il8Acqf/k0CHzsyFRKCNxliSpAGaKAs20xcCx/uE74\nq9c0h6iegdN8XVvuEZNRGrcrt9xbF/Xuve8I9ppNI2LDrmd4YIzIp2cieAoA\nsqAGVzivXxTvS1Dlu4NotTFrUMyrUk0FM6nrzT1FwbJpovNTa97tq4JtLviz\n+CXGniOlNw0cDxh28LAQ9N8dPUUPxzov+Vu+/DmvP06AnSpZeQznhkBLKdWY\nImsqVnk38r4pzw8S8tmX4KGrsV+g+dhBF8jdVgJx9j/NgqDrohZuYUv8hZB1\nYntyiisXQmE+bQ8GGcxXe/nsTvpm48E04Txe1FwyYayX+iGu1IanVGmFlnFT\naaWp\r\n=Bja9\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"57e75939cdddeba4b11ff86403e56273e1701831","scripts":{"lint":"gulp lint","test":"gulp test","build":"gulp","coverage":"gulp coverage"},"_npmUser":{"name":"alex-werner","email":"alex@werner.fr"},"deprecated":"@dashevo/dashcore-mnemonic is superceded by the functionality in @dashevo/dashcore-lib, please use that package moving forward","repository":{"url":"git+https://github.com/dashevo/dashcore-mnemonic.git","type":"git"},"_npmVersion":"5.5.1","description":"BIP39 Mnemonics implemented for Dashcore.","directories":{},"_nodeVersion":"8.9.3","dependencies":{"unorm":"^1.3.3","bitcore-lib-dash":"^0.14.0"},"_hasShrinkwrap":false,"devDependencies":{"brfs":"^1.2.0","chai":"^1.10.0","gulp":"^3.8.10","mocha":"^2.2.5","assert":"^1.1.2","bitcore-build-dash":"github:dashpay/bitcore-build-dash"},"_npmOperationalInternal":{"tmp":"tmp/dashcore-mnemonic_1.2.2_1523726579533_0.3711379646118329","host":"s3://npm-registry-packages"}},"1.5.0":{"name":"@dashevo/dashcore-mnemonic","version":"1.5.0","keywords":["dash","bitcore","mnemonic","crypto","cryptography","encryption","dashcore"],"author":{"name":"BitPay","email":"dev@bitpay.com"},"license":"MIT","_id":"@dashevo/dashcore-mnemonic@1.5.0","maintainers":[{"name":"alex-werner","email":"alex@werner.fr"},{"name":"andyfreer","email":"andy@dash.org"},{"name":"antouhou","email":"antouhou@gmail.com"},{"name":"cofresi","email":"cofresi@dash.org"},{"name":"dreyacosta","email":"david.rey.acosta@gmail.com"},{"name":"kamuela","email":"kamuela.franco@gmail.com"},{"name":"nmarley","email":"nathan.marley@gmail.com"},{"name":"pierrevr","email":"pierre@dash.org"},{"name":"seigler","email":"joshua@seigler.net"},{"name":"shumkov","email":"ivan@shumkov.ru"},{"name":"snogcel","email":"ledniknoj@gmail.com"}],"contributors":[{"name":"Yemel Jardi","email":"angel.jardi@gmail.com"},{"name":"Matias Alejo Garcia","email":"ematiu@gmail.com"}],"homepage":"https://github.com/dashevo/dashcore-mnemonic#readme","bugs":{"url":"https://github.com/dashevo/dashcore-mnemonic/issues"},"dist":{"shasum":"c9694aeedd16d068fe9e646e5023bc98e5776b3e","tarball":"https://registry.npmjs.org/@dashevo/dashcore-mnemonic/-/dashcore-mnemonic-1.5.0.tgz","fileCount":28,"integrity":"sha512-UBy0FweaXpoX88WKuVScVM15aKf98Aiu0GE4CZaGhs2EcWBFVvkadKtCUwFL3bmt7QkN1I2XMJdu7ZvvX3F11A==","signatures":[{"sig":"MEQCIG9BK3WfDpQZtTR4Ye6c63k6eIOfNij/MGNRGGz+1+aOAiBJT2XiTNY/XoKiiI0x43M8IPmMOH3aPZ+1Dsyk1TzMtQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":186032,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa8b/NCRA9TVsSAnZWagAA+xUP/03R4zGJcJQOceCb7ykv\niuOc0I47fBOAMP3es3CtFTB98EpfyWNLA2xevTQ8ffGPMfh/uJZirwRcIRE1\nYfuXIRZL57c4icEEIwtWHxW7OcsmDuSO/ecWVZZ30eat/l48cA2iwCpNvhPF\nSE9KWDVxRTLSgd0UwwclisgmSPIo856B3E8fQsDqEPrzz3CY91tWIBAKj36B\ncAy2qlaNiKW2tVGF8D7pxc0h3fLWCZL8Zeif1dSH5f/ehE2OK473lAItxMeS\nxNU/wCx+kthzeyqQRcKv7kGsYQz9ZsFFHPxsUctDgEl0Cq3KVmL6CcGfsGRN\nk1qs1VXiK2BjG5p1oFiAGzk0QXm3+JZ1+jMbDRXR19Fd0ayLVth/y9X3BY+1\nlk0NspcYA7BpHENCoXadtgWcuJM+/maHJx2xiPkEFUB+xMQSvCMunyUhVN1q\nnZZMUrz0wrt/9dfv0gmMgvqXBGoDuC3tRAiQ/YNixB9oAhjcrXhW8dzKy211\nWEjD+ZEkW3dFQJo1bATr5K2t8XqPJngpVYi+hFdbp7etcleUFj7J/kakVJN8\n/RlrCY2S/8GFesFuLy1enZz8uiFi02XOQC2b6aUoO0c4Q+Ofd5ZLvipfCe1R\nIlG6i83rarICk9PlWJGg11rP6aN47jDMa+eko90DpvNHOL0j5XSEOMvnR9bC\nhWrH\r\n=jBO9\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"e81494a1d148aea98991ea72b9345e8d31373620","scripts":{"lint":"gulp lint","test":"gulp test","build":"gulp","coverage":"gulp coverage"},"_npmUser":{"name":"snogcel","email":"ledniknoj@gmail.com"},"deprecated":"@dashevo/dashcore-mnemonic is superceded by the functionality in @dashevo/dashcore-lib, please use that package moving forward","repository":{"url":"git+https://github.com/dashevo/dashcore-mnemonic.git","type":"git"},"_npmVersion":"5.6.0","description":"BIP39 Mnemonics implemented for Dashcore.","directories":{},"_nodeVersion":"8.9.4","dependencies":{"unorm":"^1.3.3","@dashevo/dashcore-lib":"^0.15.0"},"_hasShrinkwrap":false,"devDependencies":{"brfs":"^1.2.0","chai":"^1.10.0","gulp":"^3.8.10","mocha":"^2.2.5","assert":"^1.1.2","bitcore-build-dash":"github:dashpay/bitcore-build-dash#1437e43807d56051f4f85d5ed00d35abca8b20ca"},"_npmOperationalInternal":{"tmp":"tmp/dashcore-mnemonic_1.5.0_1525792716644_0.4228548099059992","host":"s3://npm-registry-packages"}},"1.6.0":{"name":"@dashevo/dashcore-mnemonic","version":"1.6.0","keywords":["dash","bitcore","mnemonic","crypto","cryptography","encryption","dashcore"],"author":{"name":"Dash Core Group, Inc.","email":"dev@dash.org"},"license":"MIT","_id":"@dashevo/dashcore-mnemonic@1.6.0","maintainers":[{"name":"alex-werner","email":"alex@werner.fr"},{"name":"andyfreer","email":"andy@dash.org"},{"name":"antouhou","email":"antouhou@gmail.com"},{"name":"cofresi","email":"cofresi@dash.org"},{"name":"dreyacosta","email":"david.rey.acosta@gmail.com"},{"name":"evodeploy","email":"evodeploy@blackcarrot.be"},{"name":"kamuela","email":"kamuela.franco@gmail.com"},{"name":"nmarley","email":"nathan.marley@gmail.com"},{"name":"pierrevr","email":"pierre@dash.org"},{"name":"seigler","email":"joshua@seigler.net"},{"name":"shumkov","email":"ivan@shumkov.ru"},{"name":"snogcel","email":"ledniknoj@gmail.com"}],"contributors":[{"name":"Yemel Jardi","email":"angel.jardi@gmail.com"},{"name":"Matias Alejo Garcia","email":"ematiu@gmail.com"}],"homepage":"https://github.com/dashevo/dashcore-mnemonic#readme","bugs":{"url":"https://github.com/dashevo/dashcore-mnemonic/issues"},"dist":{"shasum":"24f81a3801455a54b5069a1e8d07d2692426f928","tarball":"https://registry.npmjs.org/@dashevo/dashcore-mnemonic/-/dashcore-mnemonic-1.6.0.tgz","fileCount":21,"integrity":"sha512-Z6tpZpr6hlq2T1UrhpkMxRcog4cy1lQGeeCjcRgKuHsgGDX1S2hHckJTww3Tpa3Hd92h2lT2DCtHgP98Fcy7Kg==","signatures":[{"sig":"MEUCIC8tygwdu+3+U+V1+FEmaD2AYenDXwG24bTWMSGmO67vAiEAl8x5Mi6OYCkE1dB0JBs8IUwe9zLn+A0FfEbohmGYBXo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":182710,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb8x29CRA9TVsSAnZWagAApv8P+wWp28+/QBAhfAlC9Tvy\nthmAH3KuNnPx/JrBdBr8sdnJMaY74rE3/y9x4v8Yl9Uo4ONWV8dTDZ3z+nL1\nrVoODnDCgp7Djmxa4o480DZaijCKMjVZ9Iq0dKWuPRrxv9WPm+t9v5gksTj2\nuKrfyfrZT6R+Q0OchEYKcHNsJjTwQrRz7qcNfZ1mtD5QfvsGrEPtSrt14k+p\nvFv/wKySumIkpCgZKFLoLGyaZyDJPshc1pcAj7lb3jmFJXIWOBeyOpEmWLAq\n4TmK1NHHeSR9j1S7v6B9f/iawKLrIaH6Pf6eWbb7wTvbNAXKVv/VDH9HOsXw\n7y0uxeVuCycqZICvJ/RQmvEZPOhXM0dSH3+L6jxWv7YXr1W1062M+Gg8IgkM\nR94edfn43PB+WSkaP3IxS+LQY3f/pbGzVRK05xKE8E5XUAOe/1F3H3TnCWpM\ntGUY6GDqhxFwbljt2AVneCMB+P6PCpT2pAn7pkKu2YExBz4tdWR1+SLwgXTr\nSamTZkAHnWBAfNCI0Q1J6mhT2U0BqxW/SaOc5rNyJqISW2cwr/zN6UPLGp0O\nFzOvctCVaYM7O1hzipgJ30360F4Rg3Rrnfrl7pJbqCviuRKVY7sbGb29hGwh\nbih1nG9i5qrdq30dWFjGsR/+ZZ+qltoZXNMiZuuDoO48s2XO9sUGrbDaYVmx\nTtzL\r\n=vxJK\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"9f58b23284b37b685a25e5126bd2ece1bd54b092","scripts":{"lint":"eslint .","test":"nyc mocha","build":"webpack"},"_npmUser":{"name":"nmarley","email":"nathan.marley@gmail.com"},"deprecated":"@dashevo/dashcore-mnemonic is superceded by the functionality in @dashevo/dashcore-lib, please use that package moving forward","repository":{"url":"git+https://github.com/dashevo/dashcore-mnemonic.git","type":"git"},"_npmVersion":"6.4.1","description":"BIP39 Mnemonics for Dashcore","directories":{},"_nodeVersion":"10.13.0","dependencies":{"unorm":"^1.4.1","@dashevo/dashcore-lib":"^0.15.0"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^13.1.0","chai":"^4.2.0","mocha":"^5.2.0","assert":"^1.4.1","eslint":"^5.9.0","webpack":"^4.25.1","webpack-cli":"^3.1.2","eslint-plugin-import":"^2.14.0","eslint-config-airbnb-base":"^13.1.0"},"_npmOperationalInternal":{"tmp":"tmp/dashcore-mnemonic_1.6.0_1542659517166_0.02541596483373154","host":"s3://npm-registry-packages"}},"1.6.1":{"name":"@dashevo/dashcore-mnemonic","version":"1.6.1","keywords":["dash","bitcore","mnemonic","crypto","cryptography","encryption","dashcore"],"author":{"name":"Dash Core Group, Inc.","email":"dev@dash.org"},"license":"MIT","_id":"@dashevo/dashcore-mnemonic@1.6.1","maintainers":[{"name":"alex-werner","email":"alex@werner.fr"},{"name":"andyfreer","email":"andy@dash.org"},{"name":"antouhou","email":"antouhou@gmail.com"},{"name":"cofresi","email":"cofresi@dash.org"},{"name":"dalibran","email":"dana.alibrandi@dash.org"},{"name":"evodeploy","email":"evodeploy@blackcarrot.be"},{"name":"jawid-h","email":"djavidoff@gmail.com"},{"name":"nmarley","email":"nathan.marley@gmail.com"},{"name":"seigler","email":"joshua@seigler.net"},{"name":"shumkov","email":"ivan@shumkov.ru"},{"name":"snogcel","email":"ledniknoj@gmail.com"}],"contributors":[{"name":"Yemel Jardi","email":"angel.jardi@gmail.com"},{"name":"Matias Alejo Garcia","email":"ematiu@gmail.com"}],"homepage":"https://github.com/dashevo/dashcore-mnemonic#readme","bugs":{"url":"https://github.com/dashevo/dashcore-mnemonic/issues"},"dist":{"shasum":"6b6f0ad13ba42bc310826da274e2ee674f6b8f01","tarball":"https://registry.npmjs.org/@dashevo/dashcore-mnemonic/-/dashcore-mnemonic-1.6.1.tgz","fileCount":12,"integrity":"sha512-z89OpoCnRG18muFSmNAwtorJDRkc2cs76vesOG3NKiQ+IFN9JfTynkLEKacpfa/TVaIAaCDmwRRijU4ANpuV5A==","signatures":[{"sig":"MEUCIQDN77vtYGQ622PMiP2bu1+0yLvXPUs+zIDhSsSkEaD09gIgcLcXFoijLRjeFUG7dg3hw0scCT4h0GnDprbnYKBe570=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1005434,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcT1dwCRA9TVsSAnZWagAA2ggP/21m7cSVNomxf3ZWG0Po\nkaJhs//eqGyppYq3k436w4M3Lh2bMAW+tPdgl9KnEaJUHFLAmgof/9K1PV4E\nOETdKx4chgEJF3r1coY3SoAByf7QqppzpWRyKTgqcta7+5GXsbCGZA586aG7\neXajDWRnl0HxdI+uDWBaTRQdCxvaggrnslVLgZ4xAo3Po3jY4MK2pMD3gtuN\n4IcVdsWpZu1vCkueSntesFxlmvi6lOO8WxXIGhhgB2wM4N4VZNmHX72+Jwut\nG3Ot/W2IoPYW+5kMzqKzw+ggl0aulPJBqcfpouWnO3lsoWOrfnxNd4TuFCKA\nZ9kc7kcWU4e2sgDrtatiNzH/WAN70iURBZCyRAmmKDpLAFSNxk0RcN5WeGHZ\nxKXAJAsduO+boGrTeyTOCIuzfAtx3RLzv6pfbHeVX0QgZ4S/0Pmybi8wZr52\ntbF98bErm7gWArVodGebfCIuD8AC2PVKd928s+WXcfkW5fqZpGVF2g+zl9Ty\nYpGWdSRRECs1+tDKcw6vbmN88WH3l3+i7STwNqH6KQf7vIKUIoxacRbO+B/P\nlcWpwqDUDuH/cKfvrlXON5pDWSrB188vwGI0EVkmjTfbuqtLktLibrJiLlBE\nvLMr71tZcL0a0uTzmVjmEUFquoSyrezYbOuAxK39KJN4lB26z6mNOCXR6m7v\n+zNB\r\n=oR0K\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"7739805daa738326e7d34fc56c02cb9ec5a42d5d","scripts":{"lint":"eslint .","test":"nyc mocha","build":"webpack"},"_npmUser":{"name":"nmarley","email":"nathan.marley@gmail.com"},"deprecated":"@dashevo/dashcore-mnemonic is superceded by the functionality in @dashevo/dashcore-lib, please use that package moving forward","repository":{"url":"git+https://github.com/dashevo/dashcore-mnemonic.git","type":"git"},"_npmVersion":"6.5.0","description":"BIP39 Mnemonics for Dashcore","directories":{},"_nodeVersion":"10.13.0","dependencies":{"@dashevo/dashcore-lib":"^0.16.7"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^13.1.0","chai":"^4.2.0","mocha":"^5.2.0","assert":"^1.4.1","eslint":"^5.9.0","webpack":"^4.25.1","webpack-cli":"^3.1.2","eslint-plugin-import":"^2.14.0","eslint-config-airbnb-base":"^13.1.0"},"_npmOperationalInternal":{"tmp":"tmp/dashcore-mnemonic_1.6.1_1548703599582_0.7365276595800776","host":"s3://npm-registry-packages"}}},"time":{"created":"2018-04-14T17:22:59.532Z","modified":"2026-01-20T16:36:14.088Z","1.2.2":"2018-04-14T17:22:59.630Z","1.5.0":"2018-05-08T15:18:36.743Z","1.6.0":"2018-11-19T20:31:57.299Z","1.6.1":"2019-01-28T19:26:39.704Z"},"bugs":{"url":"https://github.com/dashevo/dashcore-mnemonic/issues"},"author":{"name":"Dash Core Group, Inc.","email":"dev@dash.org"},"license":"MIT","homepage":"https://github.com/dashevo/dashcore-mnemonic#readme","keywords":["dash","bitcore","mnemonic","crypto","cryptography","encryption","dashcore"],"repository":{"url":"git+https://github.com/dashevo/dashcore-mnemonic.git","type":"git"},"description":"BIP39 Mnemonics for Dashcore","contributors":[{"name":"Yemel Jardi","email":"angel.jardi@gmail.com"},{"name":"Matias Alejo Garcia","email":"ematiu@gmail.com"}],"maintainers":[{"email":"ivan@shumkov.ru","name":"shumkov"},{"email":"obusco@gmail.com","name":"alex-werner"},{"email":"nathan.marley@gmail.com","name":"nmarley"},{"email":"cofresi@dash.org","name":"cofresi"},{"email":"evodeploy@blackcarrot.be","name":"evodeploy"},{"email":"djavidoff@gmail.com","name":"jawid-h"}],"readme":"# dashcore-mnemonic\n\n## Note: This package has been deprecated\n\nThis module is superceded the functionality in @dashevo/dashcore-lib, please use that package moving forward.\n\n[![Build Status](https://img.shields.io/travis/dashevo/dashcore-mnemonic/master.svg)](https://travis-ci.org/dashevo/dashcore-mnemonic)\n[![NPM Package](https://img.shields.io/npm/v/@dashevo/dashcore-mnemonic.svg)](https://www.npmjs.org/package/@dashevo/dashcore-mnemonic)\n\n> BIP39 Mnemonics for Dashcore\n\nA module for [dashcore-lib](https://github.com/dashevo/dashcore-lib) that implements [Mnemonic code for generating deterministic keys](https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki).\n\n## Install\n\n```sh\nnpm install @dashevo/dashcore-mnemonic\n```\n\n## Usage\n\nThe `Mnemonic` class provides an implementation of a mnemonic code or mnemonic sentence – a group of easy to remember words – for the generation of deterministic keys. The class handles code generation and its later conversion to a [HDPrivateKey](hierarchical.md). See [the official BIP-0039](https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki) for technical background information.\n\nThere are many examples of how to use it on the developer guide [section for mnemonic](https://bitcore.io/api/mnemonic/). For example, the following code would generate a new random mnemonic code and convert it to a `HDPrivateKey`.\n\n```javascript\nvar Mnemonic = require('@dashevo/dashcore-mnemonic');\nvar code = new Mnemonic(Mnemonic.Words.SPANISH);\ncode.toString(); // natal hada sutil año sólido papel jamón combate aula flota ver esfera...\nvar xpriv = code.toHDPrivateKey();\n```\n\n### Mnemonic generation\n\nFor creating a new random mnemonic code you just create a new instance.\n\n```javascript\nvar Mnemonic = require('@dashevo/dashcore-mnemonic');\nvar code = new Mnemonic();\n\ncode.toString(); // 'select scout crash enforce riot rival spring whale hollow radar rule sentence'\n```\n\n### Multi-language support\n\nThe `Mnemonic` class can use any list of 2048 unique words to generate the mnemonic code. For convenience the class provides default word lists for the following languages: English (default), Chinese, French, Japanese and Spanish. Those word list are published under `Mnemonic.Words.LANGUAGE`, take a look at the following example:\n\n```javascript\nvar Mnemonic = require('@dashevo/dashcore-mnemonic');\nvar code = new Mnemonic(Mnemonic.Words.SPANISH);\ncode.toString(); // natal hada sutil año sólido papel jamón combate aula flota ver esfera...\n\nvar myWordList = [ 'abandon', 'ability', 'able', 'about', 'above', ... ];\nvar customCode = new Mnemonic(myWordList);\n```\n\n### Validating a mnemonic\n\nThe Mnemonic class provides a static method to check if a mnemonic string is valid. If you generated the mnemonic code using any of the default word list, the class will identify it, otherwise you must provide the word list used.\n\n```javascript\nvar Mnemonic = require('@dashevo/dashcore-mnemonic');\n\nvar code = 'select scout crash enforce riot rival spring whale hollow radar rule sentence';\nvar valid = Mnemonic.isValid(code);\n\n// using a custom word list\nvar validCutom = Mnemonic.isValid(code, customWordlist);\n```\n\n### Generating a private key\n\nA mnemonic encodes entropy that can be used for creating a seed and later a [HDPrivateKey](hierarchical.md). During the seed generation process a passphrase can be used. The code for doing so looks like this:\n\n```javascript\nvar Mnemonic = require('@dashevo/dashcore-mnemonic');\nvar code = new Mnemonic('select scout crash enforce riot rival spring whale hollow radar rule sentence');\n\nvar xpriv1 = code.toHDPrivateKey(); // no passphrase\nvar xpriv2 = code.toHDPrivateKey('my passphrase'); // using a passphrase\n```\n\n### Browser Usage\n\nA webpack config is included in order to build a browser bundle:\n\n```sh\nnpm run build\n```\n\nThis will generate a file `dist/dashcore-mnemonic.js`, which can be included into your HTML a-like so:\n\n```html\n<html lang=\"en\">\n<head>\n  <title>Tester - DashCore Mnemonic</title>\n  <script language=\"javascript\" src=\"dist/dashcore-mnemonic.js\"></script>\n</head>\n<body>\n  <script>\n    document.addEventListener(\"DOMContentLoaded\", function() {\n      var mnemonic = new dashcoreMnemonic();\n      console.log(\"MNEMONIC: \" + mnemonic.toString());\n\n      var xpriv1 = mnemonic.toHDPrivateKey(); // no passphrase\n      var xpriv2 = mnemonic.toHDPrivateKey('my passphrase'); // using a passphrase\n\n      console.log(\"xpriv1: \" + xpriv1);\n      console.log(\"xpriv2: \" + xpriv2);\n    });\n  </script>\n</body>\n</html>\n```\n\nThis test snippet is included as a file in this repo called \"example.html\", and you can test this in a browser. We'll use Docker to simplify this:\n\n```sh\ndocker run --rm --name nginx -p 127.0.0.1:80:80 -v $PWD:/usr/share/nginx/html nginx:alpine\n```\n\nNow navigate to <http://localhost/example.html> and open a console window. You should see the expected console output from the `console.log` lines in the HTML snippet above.\n\n## Contributing\n\nFeel free to dive in! [Open an issue](https://github.com/dashevo/dashcore-mnemonic/issues/new) or submit PRs.\n\n## License\n\nCode released under [the MIT license](LICENSE).\n\nCopyright 2013-2015 BitPay, Inc. Bitcore is a trademark maintained by BitPay, Inc.  \nCopyright 2015-2018 Dash Core Group, Inc.  \n","readmeFilename":"README.md"}