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
Hello! I tested a json recovery and found that the private key is incomplete and only 26 bytes long.
let password = "12345678"
let jsonStr = "{"crypto":{"cipher":"aes-128-ctr","cipherparams":{"iv":"2670bec226095538fd44b50807a139d9"},"ciphertext":"50e9f70d396c8c0b7be1340673044fd78dfd493b19f746e14723222e395dc642","kdf":"pbkdf2","kdfparams":{"c":10240,"dklen":32,"prf":"hmac-sha256","salt":"efdcd42c943a035377aaa481eb6dd33804a4c1b1fb392abf8aaa17695c672497"},"mac":"25201baf9cd2223580b8c393bdb5cfaa804c4daae2726e87bf053f9fca5563df"},"id":"c469d83a-378e-4470-94f0-81b663e39e19","version":3,"address":"9187e0a616a1a369ce6ca91d1026ec3583173d8a"}"
let jsonData = Data(jsonStr.utf8);
let keystore = try? JSONDecoder().decode(Keystore.self, from: jsonData)
let private = try? keystore?.privateKey(password:password )
let privateKey = private!.toHexString()
//print data
//privateKey:e8d90e0aae25d4e1523636cefd6f519856c4d99a57b4e046e540
Correct data
//privateKey:e8d90e0aae25d4e1523636cefd6f519856c4d99a57b4e046e5400e5c8b9f9506
//mnemonic:furnace vanish vicious misery very visual practice middle lonely actress speak zone
The text was updated successfully, but these errors were encountered:
Hello! I tested a json recovery and found that the private key is incomplete and only 26 bytes long.
let password = "12345678"
let jsonStr = "{"crypto":{"cipher":"aes-128-ctr","cipherparams":{"iv":"2670bec226095538fd44b50807a139d9"},"ciphertext":"50e9f70d396c8c0b7be1340673044fd78dfd493b19f746e14723222e395dc642","kdf":"pbkdf2","kdfparams":{"c":10240,"dklen":32,"prf":"hmac-sha256","salt":"efdcd42c943a035377aaa481eb6dd33804a4c1b1fb392abf8aaa17695c672497"},"mac":"25201baf9cd2223580b8c393bdb5cfaa804c4daae2726e87bf053f9fca5563df"},"id":"c469d83a-378e-4470-94f0-81b663e39e19","version":3,"address":"9187e0a616a1a369ce6ca91d1026ec3583173d8a"}"
let jsonData = Data(jsonStr.utf8);
let keystore = try? JSONDecoder().decode(Keystore.self, from: jsonData)
let private = try? keystore?.privateKey(password:password )
let privateKey = private!.toHexString()
//print data
//privateKey:e8d90e0aae25d4e1523636cefd6f519856c4d99a57b4e046e540
Correct data
//privateKey:e8d90e0aae25d4e1523636cefd6f519856c4d99a57b4e046e5400e5c8b9f9506
//mnemonic:furnace vanish vicious misery very visual practice middle lonely actress speak zone
The text was updated successfully, but these errors were encountered: