Skip to content
Snippets Groups Projects
Select Git revision
  • wip/python3_syntax
  • master default protected
  • wip/data_path
  • wip/fix_pyqt
  • dev
  • fix_gitlab
  • fixappveyor
  • gitlab
  • fix_ci
  • fix_dbus_error
  • fix_ci_osx
  • sakia020
  • fix_travis#1105
  • feature/backend
  • check_uniq_node_by_endpoints
  • qt5.7
  • feature/agent_architecture
  • translations
  • pyqt5.6
  • qtwebengine
  • 0.53.1
  • 0.53.0
  • 0.52.0
  • 0.51.1
  • 0.51.0
  • 0.50.5
  • 0.50.4
  • 0.50.3
  • 0.50.2
  • 0.50.1
  • 0.50.0
  • 0.33.0rc7
  • 0.33.0rc6
  • 0.33.0rc5
  • 0.33.0rc4
  • 0.33.0rc3
  • 0.33.0rc2
  • 0.33.0rc1
  • 0.32.10post1
  • 0.32.10
40 results

.gitmodules

Blame
  • Forked from clients / python / sakia
    Source project has a limited visibility.
    test_tools.py 593 B
    import base64
    import unittest
    
    from duniterpy import tools
    
    
    class TestTools(unittest.TestCase):
        def test_dubp_mnemonic_to_seed(self):
            """
            https://git.duniter.org/documents/rfcs/blob/dubp-mnemonic/rfc/0014_Dubp_Mnemonic.md
    
            :return:
            """
            mnemonic = (
                "tongue cute mail fossil great frozen same social weasel impact brush kind"
            )
            seed = tools.dubp_mnemonic_to_seed(mnemonic)
            self.assertEqual(
                "qGdvpbP9lJe7ZG4ZUSyu33KFeAEs/KkshAp9gEI4ReY=",
                base64.b64encode(seed).decode("utf-8"),
            )