js-stellar-base icon indicating copy to clipboard operation
js-stellar-base copied to clipboard

bad secret key size

Open tinchoz49 opened this issue 6 years ago • 1 comments

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 avatar Oct 28 '19 14:10 tinchoz49

@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

mamokin avatar Mar 03 '20 03:03 mamokin