/** * <p>Begin the "get address" use case</p> * * @param account The plain account number (0 gives maximum compatibility) * @param keyPurpose The key purpose (RECEIVE_FUNDS,CHANGE,REFUND,AUTHENTICATION etc) * @param index The plain index of the required address * @param showDisplay True if the device should display the same address to allow the user to verify no tampering has occurred (recommended). */ public void beginGetAddressUseCase(int account, KeyChain.KeyPurpose keyPurpose, int index, boolean showDisplay) { log.debug("Begin 'get address' use case"); // Clear relevant information resetAllButFeatures(); // Track the use case currentUseCase = ContextUseCase.REQUEST_ADDRESS; // Store the overall context parameters // Set the event receiving state currentState = HardwareWalletStates.newConfirmGetAddressState(); // Issue starting message to elicit the event client.getAddress( account, keyPurpose, index, showDisplay ); }