コード例 #1
0
def test4a_create_encrypted_multiwallet():
    wallet = BismuthMultiWallet("tmp/wallet3.json", seed="seed2")
    wallet.new_address(label="ad1", password="******", salt="1")  # Will auto save
    wallet.encrypt("some_password", current_password=None)  # Will auto save
    wallet.lock()
    wallet.unlock("some_password")
    assert wallet._addresses[0][
        'address'] == '59994eac4a36942fdbb05e33a353f72850f26112123840844bedb870'
コード例 #2
0
def test3_create_empty_encrypted_multiwallet():
    wallet = BismuthMultiWallet("tmp/wallet2.json", seed="seed2")
    with pytest.raises(Exception) as e_info:
        wallet.encrypt("some_password", current_password=None)