Update index.html

This commit is contained in:
supertestnet authored and GitHub committed 2023-03-14 17:02:04 -05:00
1 parent 4a955e2e6b
commit 56f8976050
1 file changed
+3 -4
+3 -4
View File
@@ -98,9 +98,9 @@
@media screen and (max-width: 600px) {
}
</style>
<script src="https://unpkg.com/@cmdcode/bton@1.0.3"></script>
<script src="https://unpkg.com/@cmdcode/bton@1.0.4"></script>
<script> const BTON = window.bton </script>
<script src="https://unpkg.com/@cmdcode/crypto-utils@1.5.11"></script>
<script src="https://unpkg.com/@cmdcode/crypto-utils@1.6.0"></script>
<script src="https://bundle.run/bech32@2.0.0"></script>
<script src="https://supertestnet.github.io/bitcoin-chess/js/qrcode.js"></script>
<script>
@@ -337,10 +337,9 @@
locktime: 0
}
const sec = await BTON.Tap.getSeckey(seckey.raw, [ leaf ]);
const sig = await BTON.Sig.taproot.sign(seckey.raw, redeemtx, 0, { extention: leaf });
const sig = await BTON.Sig.taproot.sign(seckey.raw, redeemtx, 0, { extension: leaf });
redeemtx.input[0].witness = [ sig, script, cblock ];
console.dir(redeemtx, { depth: null });
//await BTON.Sig.taproot.verify(redeemtx, 0, {extension: leaf}, true);
var rawtx = BTON.Tx.encode(redeemtx);
console.log('Txdata:', rawtx );
var txid = await pushBTCpmt( rawtx );