(address: Address, password: str)
| 26 | default="", |
| 27 | ) |
| 28 | def get_login(address: Address, password: str) -> None: |
| 29 | path = os.path.expanduser("~/.ethereum/keystore") |
| 30 | if sys.platform.startswith("darwin"): |
| 31 | path = os.path.expanduser("~/Library/Ethereum/keystore") |
| 32 | |
| 33 | am = AccountManager(path) |
| 34 | signer = LocalSigner(am.get_privkey(to_checksum_address(address), password)) |
| 35 | |
| 36 | print(f"Username: {to_normalized_address(address)}") |
| 37 | print("Password:") |
| 38 | for i in range(1, 5): |
| 39 | print( |
| 40 | f"\ttransport {i:02d}:", |
| 41 | encode_hex(signer.sign(f"transport.transport{i:02d}.raiden.network".encode())), |
| 42 | ) |
| 43 | |
| 44 | |
| 45 | if __name__ == "__main__": |
no test coverage detected