Open joleeee opened 2 years ago
Could you give me more details of what you are trying to do?
I found the private keys using the hex encoded base64 encoded hex string, but im unable to use them to sign transactions as that's not something you can do in solidity, and foundry/ds-test doesnt have any way to do it either, im quite certain. Instead i just pranked as the addresses the private keys corresponds to.
Is that the intended way to solve this challenge, it feels quite hacky?
I guess that asserting that the public key that is one of the trusted sources from the private keys you found is "enough" as a proof that you found it and it's fair to use the vm.startPrank(address)
afterwards
A better solution would be to sign and send the transaction but I don't know if it's feasible with the cheatcodes
You can use vm.addr(privateKey)
to get the corresponding address. Then you can use startPrank/startBroadcast.
I'm on compromised, and I've found some private keys, but I'm not sure it's possible to sign and "broadcast" transaction inside solidity
Is the intended solution to just
vm.prankStart()
with the public address? sovm.prankStart(vm.addr(privkey))