You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm encountering an issue when broadcasting a PSBT transaction signed using FROST for aggregated Schnorr signatures. While individual Schnorr signatures work correctly, the aggregated signature fails with the following error:
We generate a hash from the PSBT's unsigned transaction and sign it using a keypair. This process completes without errors.
let hash = SighashCache::new(&psbt.unsigned_tx.clone()).taproot_script_spend_signature_hash(0,&Prevouts::All(&[tx_out.clone()]),ScriptPath::with_defaults(&multisig_script),SchnorrSighashType::Default,).unwrap_throw();
let sig = secp.sign_schnorr(&Message::from_slice(&hash).unwrap_throw(),&keypair,);
When using FROST to sign the transaction, we provide the same hash as the message parameter for the SigningPackage.
let hash = SighashCache::new(&psbt.unsigned_tx.clone()).taproot_script_spend_signature_hash(0,&Prevouts::All(&[tx_out.clone()]),ScriptPath::with_defaults(&multisig_script),SchnorrSighashType::Default,)?;
let message = &Message::from_slice(&tap_sighash_hash).unwrap_throw();let message = message.to_string();
let message = message.as_bytes();let signing_package = self.treshold_signature_handler.generate_signing_package_by_coordinator(
signing_commitments,
message,
uuid,)?;
We receive back the aggregated signature, then we format it to match the other Schnorr SIgnature:
let signature = signature.serialize();let signature = bitcoin::secp256k1::schnorr::Signature::from_slice(&signed[1..]).expect("convert to signature");let schnorr_sig = SchnorrSig{sig: signature,hash_ty:SchnorrSighashType::Default,};
Then, when we broadcast it, we receive the above mentioned error message.
Is there anything I'm missing or formatting it in the wrong way?
Any help is greatly appreciated, we are currently blocked by this.
Thank you!
The text was updated successfully, but these errors were encountered:
Hey all!
I'm encountering an issue when broadcasting a PSBT transaction signed using FROST for aggregated Schnorr signatures. While individual Schnorr signatures work correctly, the aggregated signature fails with the following error:
We generate a hash from the PSBT's unsigned transaction and sign it using a keypair. This process completes without errors.
When using FROST to sign the transaction, we provide the same hash as the message parameter for the SigningPackage.
We receive back the aggregated signature, then we format it to match the other Schnorr SIgnature:
Then, when we broadcast it, we receive the above mentioned error message.
Is there anything I'm missing or formatting it in the wrong way?
Any help is greatly appreciated, we are currently blocked by this.
Thank you!
The text was updated successfully, but these errors were encountered: