[bitcoin/bitcoin] Implement BIP 174 Partially Signed Bitcoin Transactions (#12136)

achow101 commented on this pull request.

> + for (auto keypath_pair : hd_keypaths) {
+ s << SerializeToVector(PSBT_BIP32_KEYPATH_SIGHASH, MakeSpan(keypath_pair.first)); + WriteCompactSize(s, keypath_pair.second.size() * sizeof(uint32_t)); + for (auto& path : keypath_pair.second) { + s << path; + } + } + + // Write the number of inputs + if (num_ins > 0) {
+ s << SerializeToVector(PSBT_NUM_IN_VIN); + s << SerializeToVector(COMPACTSIZE(num_ins)); + } + + // Write the unknown things + for(auto& entry : unknown) { Done

Добавить комментарий