After I, as the primary signer, add my signature to the PSBT, the place is that this signed knowledge saved whereas we look ahead to the second signer so as to add their signature?
Within the PSBT file.
How does the PSBT format deal with this interim state?
The PSBT file format will be considered a set of key-value shops for every enter and output of the transaction. Once you add a signature to a PSBT, you add a subject saying “a signature for enter X, with key Y, in Z”. A future finalizer can then use this data (as soon as sufficient different signatures have been added) to assemble a legitimate transaction enter.
Are there any really helpful safety practices to make sure the integrity
Not significantly. Usually, PSBT information are simply an interchange format, for giving potential signers all the knowledge they should signal. This contains the (unsigned) transaction being signed, the UTXOs it’s spending, details about scripts and keys that signers may have, and so forth. If the knowledge is flawed/corrupted someway, the end result will simply be an incapability to signal, or the ensuing signature might be invalid.
and confidentiality of the partially signed transaction throughout this course of?
PSBTs do include data that doesn’t ultimately find yourself on chain, and could also be considerably privacy-critical, such because the xpubs and key derivation paths utilized by the individuals.
Due to this cause, it isn’t advisable to share the file with anybody however the different signers.