js-stellar-base
js-stellar-base copied to clipboard
bad secret key size
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 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.
This occurs on the flow for browser raw secret seed retrieval for signing as seen here