Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating an account will generate a bug #27

Closed
NemTechCN opened this issue Mar 14, 2019 · 2 comments

Comments

Projects
None yet
2 participants
@NemTechCN
Copy link
Contributor

commented Mar 14, 2019

public KeyPair generateKeyPair() {
    final byte[] seed = new byte[32];
    this.random.nextBytes(seed);
    
    //in this line; Sometimes a 66-bit key is generated.
    final PrivateKey privateKey = new PrivateKey(ArrayUtils.toBigInteger(seed));

    return new KeyPair(privateKey, CryptoEngines.ed25519Engine());
}
@NemTechCN

This comment has been minimized.

Copy link
Contributor Author

commented Mar 14, 2019

new PrivateKey(ArrayUtils.toBigInteger(seed));

@fullcircle23

This comment has been minimized.

Copy link
Collaborator

commented Mar 28, 2019

Merged to cow-base/master and closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.