-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b97b8e9
commit 94f864d
Showing
1 changed file
with
8 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import mm2lib | ||
|
||
while True: | ||
time_lock = int(input("Input maker_payment_lock from Started e.g. 1588875030 : ")) | ||
secret_hash = input("Input secret_hash e.g. bc88c6534d5b82866807cde2da0ce5735c335a2a : ") | ||
pub_0 = input("Input my_persistent_pub pubkey e.g. 03683c77e807a47dcd559fa60a6510087e5c5aa0016c094cf5eb4d7e002db18e9f : ") | ||
pub_1 = input("Input taker_pubkey from Negotiated event e.g. 032eadab416e372d21d8cbf798019325088dc796fd6762b6304c0298f279d58038 : ") | ||
print("Address: " + mm2lib.get_payment_address(time_lock, bytes.fromhex(secret_hash), bytes.fromhex(pub_0), bytes.fromhex(pub_1))) |