X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FProjets%2FCryptomonnaies%2FBIP39.git;a=blobdiff_plain;f=bip39-standalone.html;h=35a88d71528b1fe8469de6123046b6942fe023a5;hp=d3a8d339f6f7ae3bbfb570b0f617a9320edea910;hb=7733ac322b60127fa8d845f90e7605625996c9d1;hpb=f1e5d48491562ae58926467da4e4c4b81b62a0f3 diff --git a/bip39-standalone.html b/bip39-standalone.html index d3a8d33..35a88d7 100644 --- a/bip39-standalone.html +++ b/bip39-standalone.html @@ -4,19976 +4,26863 @@ BIP39 - Mnemonic Code - - - - - - - - - -
- -

Mnemonic Code Converter

-

v0.1.1

-
-
-
-

Mnemonic

-
-
-
-
-

You can enter an existing BIP39 mnemonic, or generate a new random one. Typing your own twelve words will probably not work how you expect, since the words require a particular structure (the last word is a checksum).

-

- For more info see the - BIP39 spec. -

-
-
-
- -
-
-
- Generate a random mnemonic, or enter your own below: - - - words -
-
-
-
- -
-
-
- -
-
- -
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
-
-
- -
- -
-
-

Derivation Path

- -
-
-
-
-
-
-

- For more info see the - BIP44 spec. -

-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
-

The account extended keys can be used for importing to most BIP44 compatible wallets, such as mycelium or electrum.

-
-
-
- -
- -
-
-
- -
- -
-
-
- -
-

The BIP32 derivation path and extended keys are the basis for the derived addresses.

-
-
-
- -
- -
-
-
-
-
-
-
-
-
-

- For more info see the - BIP32 spec -

-
-
- -
- -
-
-
- -
- -
-
-
-
- -
-
- -
-

- Use path m/0'/0' with hardened addresses. -

-

- For more info see the - Bitcoin Core BIP32 implementation -

-
-
-
- -
-

- Use path m/0'/0. -

-

- For more info see - MultiBit HD -

-
-
-
- -
-

- Use path m/44'/0'/0'. - Only enter the xpub extended key into block explorer search fields, never the xprv key. -

-

- Can be used with: - blockchain.info -

-
-
-
-
-
-
-
- -
- -
-
-
- -
- -
-
-
-
-
- -
- -
-
-

Derived Addresses

-

Note these addreses are derived from the BIP32 Extended Key

- - - - - - - - - - - - - - -
-
- Path   - -
-
-
- Address   - -
-
-
- Public Key   - -
-
-
- Private Key   - -
-
    
    
    
    
    
-
-
- Show more rows: - - - -
- -
-
-

More info

-

BIP39 Mnemonic code for generating deterministic keys

-

- Read more at the - official BIP39 spec -

-

BIP32 Hierarchical Deterministic Wallets

-

- Read more at the - official BIP32 spec -

-

- See the demo at - bip32.org -

-

BIP44 Multi-Account Hierarchy for Deterministic Wallets

-

- Read more at the - official BIP44 spec -

-

Private Keys

-

- - Use private keys at - brainwallet.org. - - Be careful - it can be easy to make mistakes if you don't know what you're doing. -

-

Entropy

-

- - Entropy values must be sourced from a - strong source of randomness. - - This means flipping a fair coin, rolling a fair dice, noise measurements etc. - - Do NOT use phrases from books, lyrics from songs, your birthday or steet address, - keyboard mashing, or anything you think is random, because chances are overwhelming it isn't - random enough for the needs of this tool. - -

-

- Do not store entropy. -

-

- Storing entropy (such as keeping a deck of cards in a specific shuffled order) is unreliable compared to storing a mnemonic. - Instead of storing entropy, store the mnemonic generated from the entropy. - Steganography may be beneficial when storing the mnemonic. -

-

- - The random mnemonic generator on this page uses a - cryptographically secure random number generator. - - The built in random generator can generally be trusted more than your own intuition about randomness. - If cryptographic randomness isn't available in your browser, this page will show a warning and the generate button will not work. - In that case you might choose to use your own source of entropy. -

-

- You are not a good source of entropy. -

-

License

-

- Please refer to the software license for more detail. - -

-

The software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software.

-
-
- -
- -
-
- -

Offline Usage

- -

- You can use this tool without having to be online. -

-

- In your browser, select file save-as, and save this page - as a file. -

-

- Double-click that file to open it in a browser - on any offline computer. -

-

- Alternatively, download the file from the repository - - - https://github.com/iancoleman/bip39 -

- -
-
- -
- -
-
- -

This project is 100% open-source code

- -

- Get the source code from the repository - - - - https://github.com/iancoleman/bip39 - -

- -

Libraries

- -

- BitcoinJS - - - https://github.com/bitcoinjs/bitcoinjs-lib - -

- -

- jsBIP39 - - - https://github.com/iancoleman/jsbip39 - -

- -

- sjcl - - - https://github.com/bitwiseshiftleft/sjcl - -

- -

- jQuery - - - https://jquery.com/ - -

- -

- Twitter Bootstrap - - - http://getbootstrap.com/ - -

- -
-
- -
- - - -
-
Loading...
-
- - - + - + - - - - - - + + + + - - + + + + + + + - +/** + * Returns a boolean indicating whether the address is in bitpay format. + * @static + * @param {string} address - A valid Bitcoin Cash address in any format. + * @returns {boolean} + * @throws {InvalidAddressError} + */ +function isBitpayAddress (address) { + return detectAddressFormat(address) === Format.Bitpay +} + +/** + * Returns a boolean indicating whether the address is in cashaddr format. + * @static + * @param {string} address - A valid Bitcoin Cash address in any format. + * @returns {boolean} + * @throws {InvalidAddressError} + */ +function isCashAddress (address) { + return detectAddressFormat(address) === Format.Cashaddr +} + +/** + * Returns a boolean indicating whether the address is a mainnet address. + * @static + * @param {string} address - A valid Bitcoin Cash address in any format. + * @returns {boolean} + * @throws {InvalidAddressError} + */ +function isMainnetAddress (address) { + return detectAddressNetwork(address) === Network.Mainnet +} + +/** + * Returns a boolean indicating whether the address is a testnet address. + * @static + * @param {string} address - A valid Bitcoin Cash address in any format. + * @returns {boolean} + * @throws {InvalidAddressError} + */ +function isTestnetAddress (address) { + return detectAddressNetwork(address) === Network.Testnet +} + +/** + * Returns a boolean indicating whether the address is a p2pkh address. + * @static + * @param {string} address - A valid Bitcoin Cash address in any format. + * @returns {boolean} + * @throws {InvalidAddressError} + */ +function isP2PKHAddress (address) { + return detectAddressType(address) === Type.P2PKH +} + +/** + * Returns a boolean indicating whether the address is a p2sh address. + * @static + * @param {string} address - A valid Bitcoin Cash address in any format. + * @returns {boolean} + * @throws {InvalidAddressError} + */ +function isP2SHAddress (address) { + return detectAddressType(address) === Type.P2SH +} + +/** + * Error thrown when the address given as input is not a valid Bitcoin Cash address. + * @constructor + * InvalidAddressError + */ +function InvalidAddressError () { + var error = new Error() + this.name = error.name = 'InvalidAddressError' + this.message = error.message = 'Received an invalid Bitcoin Cash address as input.' + this.stack = error.stack +} + +InvalidAddressError.prototype = Object.create(Error.prototype) + +module.exports = { + Format: Format, + Network: Network, + Type: Type, + detectAddressFormat: detectAddressFormat, + detectAddressNetwork: detectAddressNetwork, + detectAddressType: detectAddressType, + toLegacyAddress: toLegacyAddress, + toBitpayAddress: toBitpayAddress, + toCashAddress: toCashAddress, + isLegacyAddress: isLegacyAddress, + isBitpayAddress: isBitpayAddress, + isCashAddress: isCashAddress, + isMainnetAddress: isMainnetAddress, + isTestnetAddress: isTestnetAddress, + isP2PKHAddress: isP2PKHAddress, + isP2SHAddress: isP2SHAddress, + InvalidAddressError: InvalidAddressError +} + +}).call(this,require("buffer").Buffer) +},{"bs58check":7,"buffer":8,"cashaddrjs":10}]},{},[52])(52) +}); - - +