Example #1
0
 def test_from_mnemonic(self, mnemonics):
     """Test whether creating a MnemonicKey with a known mnemonic generates the correct values."""
     # GIVEN a 24-character mnemonic
     # THEN give back a correctly-populated MnemonicKey
     for mnemonic in mnemonics:
         k = MnemonicKey(mnemonic["mnemonic"])
         compare(k, mnemonic)
Example #2
0
def a3():
    return MnemonicKey(
        "corn peasant blue sight spy three stove confirm night brother vote dish reduce sick observe outside vacant arena laugh devote exotic wasp supply rally"
    )
Example #3
0
def a2():
    return MnemonicKey(
        "service frozen keen unveil luggage initial surge name conduct mesh soup escape weather gas clown brand holiday result protect chat plug false pitch little"
    )
Example #4
0
def a1():
    return MnemonicKey(
        "swamp increase solar renew twelve easily possible pig ostrich harvest more indicate lion denial kind target small dumb mercy under proud arrive gentle field"
    )
Example #5
0
def master_key2():
    return MnemonicKey(
        "spatial fantasy weekend romance entire million celery final moon solid route theory way hockey north trigger advice balcony melody fabric alter bullet twice push"
    )
Example #6
0
def master_key():
    return MnemonicKey(
        "island relax shop such yellow opinion find know caught erode blue dolphin behind coach tattoo light focus snake common size analyst imitate employ walnut"
    )
Example #7
0
def wallet(mnemonics, terra):
    """Wallet #1, which should have some testnet funds."""
    m = mnemonics[0]["mnemonic"]
    return terra.wallet(MnemonicKey(m))