Thursday, November 21, 2024

signature – Looking for Elegant resolution to PSBT Multi-sig Signing

I’m attempting to signal an incoming PSBT in customized software program I am constructing and I am having hassle understanding how the signing technique of a PSBT really works. I’ve a Trezor the place the xPub I used within the 2-of-3 multi-sig setup is definitely the kid of the primary key of the Trezor (for instance’s sake, say the xPub is situated at m/26H).

From my understanding, I can use HWI to signal the PSBT, however I do not know what info is important for me to offer and what the Trezor assumes. I feel that the Trezor fetches the personal key for every of the inputs based mostly on the derivation path within the decoded PSBT, however I need to exchange it with the proper path for my program, Ex: If the PSBT exhibits m/44/0/0/1/0, I would like to switch it with m/26H/44/0/0/1/0 as a result of keep in mind; my xPub will not be from the seed however moderately one among its youngsters. Additionally, I imagine for multi-sig signing, I would like to offer the opposite public keys used within the transaction with a view to create the following script, however is not that included within the PSBT? If not, is it even potential for me to get the general public keys of the opposite 2 wallets if all I’ve are their xPubs? (Would not hardened derivation stop me from discovering youngster public keys subsequently if the PSBT makes use of keys at, say, path m/44H/0H/0H/1/0, I can not generate the keys?)​

Total, my purpose is to easily signal a PSBT with my restoration key that exists in my Trezor. And, here is all the knowledge I’ve:

  • PSBT (created and signed by one key in BlueWallet)

  • Derivation path from seed xPub to the pockets xPub (instance: m/26H will get the xPub of the restoration pockets)

  • The opposite two pockets xPubs

Let me know if I must make any further clarifications.
Thanks.

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles