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
I used forc-wallet to generate new wallet under my project dir "project_root/.wallets/wallet_fuel.json" and encrypt with empty passphrase.
my wallet gen script:
mkdir -p .wallets
wallet_name=fuel
if [[ -n$1 ]];then
wallet_name=$1fi
forc wallet --path=./.wallets/wallet_"$wallet_name".json new --force
and triple "Enter"s to get an encryped keystore json file under "project_root/.wallets/wallet_fuel.json"
Then I use Rust SDK to restore my wallet:
fnrestore_wallets(password:&str,some_provider:Option<Provider>) -> Result<WalletUnlocked>{let dir = std::env::current_dir()?;let provider:Provider = some_provider.unwrap();let path = dir.join(".wallets/wallet_fuel_test.json");info!("The wallet info stored at {}", path.display());let _recovered_wallet = WalletUnlocked::load_keystore(
path, password,Some(provider.clone()))?;Ok(_recovered_wallet)}
The function panicked, and results in
Decrypted key should have a correct size: InvalidSecretKey
The text was updated successfully, but these errors were encountered:
mtroym
changed the title
Cannot load keystore file from forc-wallet new generated with empty password.
Cannot load keystore file which forc-wallet new generated
Mar 3, 2024
I used forc-wallet to generate new wallet under my project dir
"project_root/.wallets/wallet_fuel.json"
and encrypt with empty passphrase.my wallet gen script:
and triple "Enter"s to get an encryped keystore json file under
"project_root/.wallets/wallet_fuel.json"
Then I use Rust SDK to restore my wallet:
The function panicked, and results in
Decrypted key should have a correct size: InvalidSecretKey
The text was updated successfully, but these errors were encountered: