/** * Sets to "confirm reset" state */ public void setToConfirmResetState() { // Set the event receiving state currentState = HardwareWalletStates.newConfirmResetState(); // Expect the specification to be in place CreateWalletSpecification specification = createWalletSpecification.get(); // Issue starting message to elicit the event client.resetDevice( specification.getLanguage(), specification.getLabel(), specification.isDisplayRandom(), specification.isPinProtection(), specification.getStrength() ); }
/** * <p>Initiate the process where the hardware wallet is first wiped then reset using its own entropy</p> * <p>This is the recommended method to use for creating a wallet securely.</p> * * @param language The language (e.g. "english") * @param label The label to display below the logo (e.g "Fred") * @param displayRandom True if the device should display the entropy generated by the device before asking for additional entropy * @param pinProtection True if the device should use PIN protection * @param strength The number of bits in the seed phrase (128 bits = 12 words, 196 bits = 18 words, 256 bits = 24 words) */ public void secureCreateWallet( String language, String label, boolean displayRandom, boolean pinProtection, int strength ) { // Create the specification CreateWalletSpecification specification = new CreateWalletSpecification( language, label, displayRandom, pinProtection, strength ); // Set the FSM context context.beginCreateWallet(specification); }