Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Aw 93 2#69

Merged
centrys-cristian-ilca merged 7 commits into
devfrom
AW-93-2
Jun 6, 2018
Merged

Aw 93 2#69
centrys-cristian-ilca merged 7 commits into
devfrom
AW-93-2

Conversation

@centrys-cristian-ilca
Copy link
Copy Markdown
Contributor

No description provided.

final byte[] seed = new SeedCalculator().calculateSeed(mnemonic, DEFAULT_MNEMONIC_SALT);
final byte[] seed = getNewAccountSeed(mnemonic);
final ECKey ecKey = new SeededECKeyEd25519(seed);
if (Keystore.exist(ByteUtil.toHexString(ecKey.getAddress()))) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

validation is not required here so we should also not throw exception at method signature

};
}

private byte[] getNewAccountSeed(String mnemonic) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

final

account.setName(name);
processAccountAdded(account, fileContent, true);
storeAccountName(address, name);
if (getAccounts().size() > 1 && getAccounts().stream().filter(p -> p.getPublicAddress().equals(account.getPublicAddress())).findAny().isPresent()) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

method?

}

public final String createAccount(final String password, final String name) {
public final String createAccount(final String password, final String name) throws ValidationException {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ValidationException should not be required

popup.hide();
}

public void close(InputEvent eventSource) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

final

@centrys-cristian-ilca centrys-cristian-ilca merged commit 9cfea58 into dev Jun 6, 2018
@theotniel theotniel deleted the AW-93-2 branch June 15, 2018 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants