You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
platform-wallet: check the entered recipient of a self-shield (types 15 and 21) in the wallet, not in the example apps #6158
platform_wallet_manager_shielded_shield (type 15) and platform_wallet_manager_shielded_shield_from_identity (type 21) take no recipient and always pay shielded account 0's default Orchard address. Both example apps let the user type a recipient in the Send flow and compare it with the wallet's own address in the view (Swift SendViewModel.selfShieldRecipientProblem; Kotlin SendTransactionScreen, shared helper since #6147), so the destination the user approves is never seen by the code that builds the note.
A failed host check cannot misdirect funds (the note always lands on the wallet's own address), but the restriction is app policy living in two hosts. Fix: pass the expected recipient through FFI/JNI and have rs-platform-wallet refuse a mismatch against the same account keys it builds the note with (resolve_shield_recipient), or make the destination read-only in both apps. Then delete both host copies.
Design it alongside the _to_recipient variants on 5.2 (#5863, #5896). It must not enable third-party shielding on 5.1.
Activity