aboutsummaryrefslogtreecommitdiff
path: root/src/psbt.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/psbt.h')
-rw-r--r--src/psbt.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/psbt.h b/src/psbt.h
index 8fafadcea9..c497584f36 100644
--- a/src/psbt.h
+++ b/src/psbt.h
@@ -889,7 +889,7 @@ struct PSBTOutput
} else if (key.size() != 33) {
throw std::ios_base::failure("Output Taproot BIP32 keypath key is not at 33 bytes");
}
- XOnlyPubKey xonly(uint256({key.begin() + 1, key.begin() + 33}));
+ XOnlyPubKey xonly(uint256(Span<uint8_t>(key).last(32)));
std::set<uint256> leaf_hashes;
uint64_t value_len = ReadCompactSize(s);
size_t before_hashes = s.size();
@@ -1164,7 +1164,7 @@ struct PartiallySignedTransaction
// Make sure that we got an unsigned tx
if (!tx) {
- throw std::ios_base::failure("No unsigned transcation was provided");
+ throw std::ios_base::failure("No unsigned transaction was provided");
}
// Read input data