Open robertcc0410 opened 6 months ago
schnorr musig2 demo:
taproot transaction use musig2 example: https://github.com/oxf71/musig2-demo/blob/main/example/taprootmusig/main.go
todo:
schnorr multi-signature done(n-n) Notice:
unspentOutputs := make([]*btcapi.UnspentOutput, 0)
for _, utxo := range utxos {
txHash, err := chainhash.NewHashFromStr(utxo.Txid)
if err != nil {
return nil, err
}
pkScript, err := txscript.PayToAddrScript(address)
if err != nil {
return nil, err
}
unspentOutputs = append(unspentOutputs, &btcapi.UnspentOutput{
Outpoint: wire.NewOutPoint(txHash, uint32(utxo.Vout)),
Output: wire.NewTxOut(utxo.Value, pkScript),
})
}
return unspentOutputs, nil
Need to implement psbt multi-signature transactions(m-n)
l2-->l1 sending btc transactions with schnorr multi-signature