parity-signer
parity-signer copied to clipboard
Confirmation alerts
Here the idea was to control all confirmation message from single place. Alert data should have following structure then:
struct Contirm {
line1: Option<String>
line2: Option<String>
yes_message: Option<String>
no_message: Option<String>
}
Thus UI will default to something like
CONFIRM Are you sure? yes/no
AFAIR this is not really implemented on Rust side yet and many of these alerts are still called by UI. We should clearly change soon that because bugs in those are potential security-related bugs. Not sure if we should already start preparing for this, please create an issue so that we do not forget if postponing.
Originally posted by @Slesarew in https://github.com/paritytech/parity-signer/pull/999#discussion_r868848697