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

bad secret key size #281

Open
tinchoz49 opened this issue Oct 28, 2019 · 1 comment
Open

bad secret key size #281

tinchoz49 opened this issue Oct 28, 2019 · 1 comment
Labels

Comments

@tinchoz49
Copy link

Describe the bug
I try to run the example but I got bad secret key size.

Looking the keypair code I saw this:
https://github.com/stellar/js-stellar-base/blob/master/src/keypair.js#L186

keypair.rawSecretKey() returns the secretSeed. Is that right?

What version are you on?
2.1.2

@tinchoz49 tinchoz49 added the bug label Oct 28, 2019
@mamokin
Copy link

mamokin commented Mar 3, 2020

@tinchoz49 Ran into the same issue following the same example. Debugged a bit and saw that the raw secret seed has a length of 32 when it expects a length of 64.
image
This occurs on the flow for browser raw secret seed retrieval for signing as seen here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants