From 609c4de51e59bdbf6bc302edf2dcb9d51680b61f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Isma=C3=ABl=20Bouya?= Date: Sun, 24 Feb 2019 09:40:58 +0100 Subject: [PATCH] Update readme and Licence --- LICENSE | 2 ++ build_readme.py | 33 +++++++++++++++++++++++++++++++++ readme.md | 12 +++++++++++- src/index.html | 30 +++++++++++++++++++++++++++++- 4 files changed, 75 insertions(+), 2 deletions(-) create mode 100644 build_readme.py diff --git a/LICENSE b/LICENSE index 10202de..1bfa903 100644 --- a/LICENSE +++ b/LICENSE @@ -1,5 +1,7 @@ The MIT License (MIT) Copyright (c) 2014-2016 Ian Coleman +Copyright (c) 2016-2017 Coinomi Ltd +Copyright (c) 2019 Ismaël Bouya http://www.normalesup.org/~bouya/ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/build_readme.py b/build_readme.py new file mode 100644 index 0000000..a7d8738 --- /dev/null +++ b/build_readme.py @@ -0,0 +1,33 @@ +import markdown +from markdown.extensions.toc import slugify + +def lang_slugify(lang): + def l_slugify(value, separator): + return slugify(lang + "__" + value, separator) + return l_slugify + +def get_markdown(md_file, lang, table_of_content): + with open(md_file, "r") as f: + text = f.read() + + return markdown.markdown( + text=text, + extensions=[ + 'markdown.extensions.codehilite', + 'markdown.extensions.toc', + 'markdown.extensions.tables' + ], + extension_configs={ + 'markdown.extensions.codehilite': { + 'noclasses': True, + }, + 'markdown.extensions.toc': { + 'title': table_of_content, + 'slugify': lang_slugify(lang) + } + }) + + +print("

Bottom of documentation

") +print(get_markdown("readme.md", "en", "Table of contents")) +print("") diff --git a/readme.md b/readme.md index 269743c..b9418c9 100644 --- a/readme.md +++ b/readme.md @@ -1,10 +1,20 @@ +[TOC] + # BIP39 Tool A tool for converting BIP39 mnemonic phrases to addresses and private keys. +This tool tries to find the best world between Coinomi's and +iancoleman's versions of the implementation, plus a few additions. + +Note that this version is centered on my use of Coinomis's wallet, which +has a few differences to exact BIP44 implementation: + +- Coinomi's Ethereum networks don't use change in the BIP44 path. + ## Online Version -https://iancoleman.io/bip39/ +[https://tools.immae.eu/BIP39](https://tools.immae.eu/BIP39) ## Standalone offline version diff --git a/src/index.html b/src/index.html index 407c246..40b11fc 100644 --- a/src/index.html +++ b/src/index.html @@ -840,7 +840,7 @@

Alternatively, download the file from the repository - - https://github.com/iancoleman/bip39 + https://git.immae.eu/?p=perso/Immae/Projets/Cryptomonnaies/BIP39.git

@@ -853,14 +853,42 @@

This project is 100% open-source code

+

+ It tries to merge the best between Coinomi's and + iancoleman's versions of this tool, plus a few + additions. Note that this version is centered on + my use of Coinomi's wallet. Here are the known + issues / differences to exact BIP44 + implementation: +

+

+

Get the source code from the repository - + + https://git.immae.eu/?p=perso/Immae/Projets/Cryptomonnaies/BIP39.git + +

+ +

+ Originally based on + - https://github.com/iancoleman/bip39

+

+ And + - + + https://github.com/Coinomi/bip39 + +

+

Libraries

-- 2.41.0