Open redshiftzero opened 11 months ago
Removing from next release in favor of already-selected to-do items
The reason we don't need to do this in the next release is that it's not a breaking change. We should be focusing on working through the list of breaking changes we already identified needing to make.
Pointed out by @hdevalence:
Outputs to invalid transmission keys won't end up on chain because you can't construct a valid output proof to an invalid transmission key as the
AddressVar
associated with aNoteVar
requires it to be a valid decaf377 element. However, transaction building shouldn't crash if one is given an invalid address, so we could either:Address::from_components
returningNone
if it's invalid. Clean but expensive.Planner::output
returnResult<&mut self>
as the swaps do, and then in that method check the transmission key is valid. It's a little messy though.