You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 15, 2018. It is now read-only.
When I create a new key, it will return seed phrase with the same last word every time.
This should be caused by keybase.go#50,
typ := cryptoAlgoToByte(algo) secret = append([]byte{typ}, secret...)
secret[0] is invariable, when BytesToWords, because of secret.length = 21 and words.length = 2048(2^11), the last word index = f(secret.bits[21 * 8-11 * 15]) = f(secret.bits[3]) = f(secret[0].bits[0,2]),is also invariable.
typ := cryptoAlgoToByte(algo) secret = append(secret, []byte{typ}...)
will avoid it.
The text was updated successfully, but these errors were encountered:
Thanks a lot for raising this issue! We are currently refactoring the code you mentioned and the key-type won’t be encoded in like above anymore. Also, we will only support Secp256k1 keys initially. This makes the whole key-type obsolete.
When I create a new key, it will return seed phrase with the same last word every time.
This should be caused by keybase.go#50,
typ := cryptoAlgoToByte(algo)
secret = append([]byte{typ}, secret...)
secret[0] is invariable, when BytesToWords, because of secret.length = 21 and words.length = 2048(2^11), the last word index = f(secret.bits[21 * 8-11 * 15]) = f(secret.bits[3]) = f(secret[0].bits[0,2]),is also invariable.
typ := cryptoAlgoToByte(algo)
secret = append(secret, []byte{typ}...)
will avoid it.
The text was updated successfully, but these errors were encountered: