- confirmExchangeKeyChange#
Confirm that the exchange’s changed key set is legitimate.
The wallet has already adopted the changed key set; this releases the operations that send money to the exchange, which are withheld until the user has had a chance to notice that the key changed.
Request:
The request arguments must be a ConfirmExchangeKeyChangeRequest object.
Response:
On success, the result is an empty object.
Side effects:
Records the user’s confirmation of the exchange’s changed keys and releases the withheld operations that send money to the exchange.
Expected errors:
The caller can handle the following errors inline:
WALLET_EXCHANGE_NO_KEY_CHANGE_PENDING,WALLET_EXCHANGE_KEY_CHANGE_MISMATCH.Details:
currentMasterPubmust be the master public key the exchange currently uses, so that a UI showing a stale key change cannot confirm a different one than the user was looking at.
interface ConfirmExchangeKeyChangeRequest {
exchangeBaseUrl: string;
// Master public key the exchange now uses. Required, so that a
// UI showing a stale key change cannot confirm a different one
// than the user was looking at.
currentMasterPub: string;
}