|
|
@ -25,16 +25,16 @@ def getdescriptors(args):
|
|
|
|
|
|
|
|
|
|
|
|
sys.stdout.write(json.dumps({
|
|
|
|
sys.stdout.write(json.dumps({
|
|
|
|
"receive": [
|
|
|
|
"receive": [
|
|
|
|
"pkh([00000001/44'/1'/" + args.account + "']" + xpub + "/0/*)#vt6w3l3j",
|
|
|
|
"pkh([00000001/44h/1h/" + args.account + "']" + xpub + "/0/*)#aqllu46s",
|
|
|
|
"sh(wpkh([00000001/49'/1'/" + args.account + "']" + xpub + "/0/*))#r0grqw5x",
|
|
|
|
"sh(wpkh([00000001/49h/1h/" + args.account + "']" + xpub + "/0/*))#5dh56mgg",
|
|
|
|
"wpkh([00000001/84'/1'/" + args.account + "']" + xpub + "/0/*)#x30uthjs",
|
|
|
|
"wpkh([00000001/84h/1h/" + args.account + "']" + xpub + "/0/*)#h62dxaej",
|
|
|
|
"tr([00000001/86'/1'/" + args.account + "']" + xpub + "/0/*)#sng9rd4t"
|
|
|
|
"tr([00000001/86h/1h/" + args.account + "']" + xpub + "/0/*)#pcd5w87f"
|
|
|
|
],
|
|
|
|
],
|
|
|
|
"internal": [
|
|
|
|
"internal": [
|
|
|
|
"pkh([00000001/44'/1'/" + args.account + "']" + xpub + "/1/*)#all0v2p2",
|
|
|
|
"pkh([00000001/44h/1h/" + args.account + "']" + xpub + "/1/*)#v567pq2g",
|
|
|
|
"sh(wpkh([00000001/49'/1'/" + args.account + "']" + xpub + "/1/*))#kwx4c3pe",
|
|
|
|
"sh(wpkh([00000001/49h/1h/" + args.account + "']" + xpub + "/1/*))#pvezzyah",
|
|
|
|
"wpkh([00000001/84'/1'/" + args.account + "']" + xpub + "/1/*)#h92akzzg",
|
|
|
|
"wpkh([00000001/84h/1h/" + args.account + "']" + xpub + "/1/*)#xw0vmgf2",
|
|
|
|
"tr([00000001/86'/1'/" + args.account + "']" + xpub + "/1/*)#p8dy7c9n"
|
|
|
|
"tr([00000001/86h/1h/" + args.account + "']" + xpub + "/1/*)#svg4njw3"
|
|
|
|
|
|
|
|
|
|
|
|
]
|
|
|
|
]
|
|
|
|
}))
|
|
|
|
}))
|
|
|
@ -47,8 +47,8 @@ def displayaddress(args):
|
|
|
|
return sys.stdout.write(json.dumps({"error": "Unexpected fingerprint", "fingerprint": args.fingerprint}))
|
|
|
|
return sys.stdout.write(json.dumps({"error": "Unexpected fingerprint", "fingerprint": args.fingerprint}))
|
|
|
|
|
|
|
|
|
|
|
|
expected_desc = [
|
|
|
|
expected_desc = [
|
|
|
|
"wpkh([00000001/84'/1'/0'/0/0]02c97dc3f4420402e01a113984311bf4a1b8de376cac0bdcfaf1b3ac81f13433c7)#0yneg42r",
|
|
|
|
"wpkh([00000001/84h/1h/0h/0/0]02c97dc3f4420402e01a113984311bf4a1b8de376cac0bdcfaf1b3ac81f13433c7)#3te6hhy7",
|
|
|
|
"tr([00000001/86'/1'/0'/0/0]c97dc3f4420402e01a113984311bf4a1b8de376cac0bdcfaf1b3ac81f13433c7)#4vdj9jqk",
|
|
|
|
"tr([00000001/86h/1h/0h/0/0]c97dc3f4420402e01a113984311bf4a1b8de376cac0bdcfaf1b3ac81f13433c7)#puqqa90m",
|
|
|
|
]
|
|
|
|
]
|
|
|
|
if args.desc not in expected_desc:
|
|
|
|
if args.desc not in expected_desc:
|
|
|
|
return sys.stdout.write(json.dumps({"error": "Unexpected descriptor", "desc": args.desc}))
|
|
|
|
return sys.stdout.write(json.dumps({"error": "Unexpected descriptor", "desc": args.desc}))
|
|
|
|