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

NemTechCN opened this issue Mar 14, 2019 · 2 comments


None yet
2 participants
Copy link

commented Mar 14, 2019

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

    return new KeyPair(privateKey, CryptoEngines.ed25519Engine());

This comment has been minimized.

Copy link
Contributor Author

commented Mar 14, 2019

new PrivateKey(ArrayUtils.toBigInteger(seed));


This comment has been minimized.

Copy link

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.