Validate FFI primitive inputs + refresh bindings/tests#1263
Validate FFI primitive inputs + refresh bindings/tests#1263chavic wants to merge 3 commits intopayjoin:masterfrom
Conversation
Pull Request Test Coverage Report for Build 21681318162Details
💛 - Coveralls |
cd3391a to
a44a282
Compare
59affc6 to
93bc4e8
Compare
055a2bb to
53db1cb
Compare
Thanks... applying that now |
759be1b to
10ee724
Compare
edad0fc to
a1711eb
Compare
84e2546 to
732c40a
Compare
732c40a to
f331ef3
Compare
| ).build().save(recvPersister).pjUri(); | ||
|
|
||
| final psbt = | ||
| "cHNidP8BAHMCAAAAAY8nutGgJdyYGXWiBEb45Hoe9lWGbkxh/6bNiOJdCDuDAAAAAAD+////AtyVuAUAAAAAF6kUHehJ8GnSdBUOOv6ujXLrWmsJRDCHgIQeAAAAAAAXqRR3QJbbz0hnQ8IvQ0fptGn+votneofTAAAAAAEBIKgb1wUAAAAAF6kU3k4ekGHKWRNbA1rV5tR5kEVDVNCHAQcXFgAUx4pFclNVgo1WWAdN1SYNX8tphTABCGsCRzBEAiB8Q+A6dep+Rz92vhy26lT0AjZn4PRLi8Bf9qoB/CMk0wIgP/Rj2PWZ3gEjUkTlhDRNAQ0gXwTO7t9n+V14pZ6oljUBIQMVmsAaoNWHVMS02LfTSe0e388LNitPa1UQZyOihY+FFgABABYAFEb2Giu6c4KO5YW0pfw3lGp9jMUUAAA="; |
There was a problem hiding this comment.
You should have access to this from test_utils. I think I'd like to see this properly imported here.
| "bitcoin:12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX?amount=1&pj=https://example.com", | ||
| ).checkPjSupported(); | ||
| const psbt = | ||
| "cHNidP8BAHMCAAAAAY8nutGgJdyYGXWiBEb45Hoe9lWGbkxh/6bNiOJdCDuDAAAAAAD+////AtyVuAUAAAAAF6kUHehJ8GnSdBUOOv6ujXLrWmsJRDCHgIQeAAAAAAAXqRR3QJbbz0hnQ8IvQ0fptGn+votneofTAAAAAAEBIKgb1wUAAAAAF6kU3k4ekGHKWRNbA1rV5tR5kEVDVNCHAQcXFgAUx4pFclNVgo1WWAdN1SYNX8tphTABCGsCRzBEAiB8Q+A6dep+Rz92vhy26lT0AjZn4PRLi8Bf9qoB/CMk0wIgP/Rj2PWZ3gEjUkTlhDRNAQ0gXwTO7t9n+V14pZ6oljUBIQMVmsAaoNWHVMS02LfTSe0e388LNitPa1UQZyOihY+FFgABABYAFEb2Giu6c4KO5YW0pfw3lGp9jMUUAAA="; |
There was a problem hiding this comment.
Same here for the test_utils import. though we would have to add it to the test_utils/index.js it seems
There was a problem hiding this comment.
The unit tests seem to have inconsistent tests. Is there a specific reason that this is the case? The python unit tests here seem to be the most complete
There was a problem hiding this comment.
A question for a followup perhaps but should we consider making a primitives module to keep this kind of file in case we end up needing more like it?
This PR addresses #1262 and hardens the FFI boundary by validating primitive inputs and surfacing explicit errors. Updates integration tests/bindings to match the new error shapes and removes silent acceptance of invalid fee rates/amounts.
Follow-ups
Decide final script/witness size caps and document rationale.
Add Dart integration fix for large fee rate parsing (separate PR).