forc-wallet icon indicating copy to clipboard operation
forc-wallet copied to clipboard

Wallet new generates keys with incorrect length

Open MujkicA opened this issue 1 year ago • 1 comments

https://github.com/FuelLabs/fuels-rs/issues/1289

The above issue on the Rust SDK led me to discover that we provide eth_keystore::encrypt_key with a mnemonic to be used as pk here:

https://github.com/FuelLabs/forc-wallet/blob/4d5fa8b1214df6bcad9b31dbef571a67af70da8f/src/utils.rs#L129

which leads to variable length keys being generated instead of the expected 32 bytes.

MujkicA avatar Mar 07 '24 22:03 MujkicA

Thanks Mujica

mtroym avatar Mar 15 '24 17:03 mtroym