Skip to content

Commit

Permalink
bindings: tests: py: amp2
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoComandini committed Dec 20, 2024
1 parent 00a0578 commit f3812bf
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lwk_bindings/tests/bindings/amp2.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from lwk import *

mnemonic = Mnemonic("abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon about")
network = Network.regtest_default()

signer = Signer(mnemonic, network)

amp2 = Amp2.new_testnet()
xpub = signer.keyorigin_xpub(Bip.new_bip87())
desc = amp2.descriptor_from_str(xpub)
assert str(desc.descriptor()) == "ct(slip77(0684e43749a3a3eb0362dcef8c66994bd51d33f8ce6b055126a800a626fc0d67),elwsh(multi(2,[3d970d04/87'/1'/0']tpubDC347GyKEGtyd4swZDaEmBTcNuqseyX7E3Yw58FoeV1njuBcUmBMr5vBeBh6eRsxKYHeCAEkKj8J2p2dBQQJwB8n33uyAPrdgwFxLFTCXRd/<0;1>/*,[73c5da0a/87'/1'/0']tpubDCChhoz5Qdrkn7Z7KXawq6Ad6r3A4MUkCoVTqeWxfTkA6bHNJ3CHUEtALQdkNeixNz4446PcAmw4WKcj3mV2vb29H7sg9EPzbyCU1y2merw/<0;1>/*)))#k3449ejr"

0 comments on commit f3812bf

Please sign in to comment.