leo icon indicating copy to clipboard operation
leo copied to clipboard

[Feature] `CheatCode::set_signer`

Open d0cd opened this issue 1 year ago • 1 comments

🚀 Feature

A cheat code to set the signer via private key could be useful. For example, CheatCode::set_signer(<PRIVATE_KEY>). An open question is how should the private key be passed in. Leo doesn't have strings, but supporting them in this limited context (where it does not need to be compiled) could be okay. Alternatively, we could support CheatCode::set_signer_address but that wouldn't have the same general properties as the original option.

d0cd avatar Dec 17 '24 15:12 d0cd

Can you explain the usecase?

We discussed the relevance of custom private keys during testing.

Not sticking to snarkVM's standard tx generating flow would lead to aborted tx AFAIK.

vicsn avatar May 07 '25 19:05 vicsn

I believe this is done.

mohammadfawaz avatar Nov 27 '25 16:11 mohammadfawaz