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

Add helper method to generate SEP10 challenge #243

Merged
merged 2 commits into from
Oct 1, 2019

Conversation

tamirms
Copy link
Contributor

@tamirms tamirms commented Sep 30, 2019

fixes #235

) {
byte[] nonce = new byte[64];
SecureRandom random = new SecureRandom();
random.nextBytes(nonce);
Copy link
Contributor

@bartekn bartekn Oct 1, 2019

Choose a reason for hiding this comment

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

You may want to check this discussion: stellar/stellar-protocol#366 (comment). I don't fully agree with reasoning there but it looks like you need to generate 48 bytes and base64 encode them to fully comply with SEP-10.

@tamirms tamirms merged commit 3e23827 into release-0.10.0 Oct 1, 2019
@tamirms tamirms deleted the tamir/challenge branch October 1, 2019 17:39
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.

2 participants