massa
massa copied to clipboard
Test wallet module
- generate a new wallet from empty temp file
- assert get_wallet_address_list is empty
- generate a private key K outside of the wallet
- assert add_private_key returns the corresponding address to K
- (assert the file is not empty)
- assert get_wallet_address_list is returns the corresponding address
- assert find_associated_private_key returns K
- assert find_associated_public_key returns the associated public key
- hash a string and sign it with K, assert sign_message returns the same signature and the associated public key
- create an operation, sign it with K, assert the output of create_operation is the same signedOperation
- assert get_full_wallet output the expected output
- remove_address address corresponding to K
- assert get_wallet_address_list is empty
- (assert file is empty)
Volonteer for this one.