Giter Club home page Giter Club logo

safer's People

Contributors

julien-devatom avatar merlinegalite avatar rubilmax avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

safer's Issues

`parseSignature` should throw an error

Description

parseSignature is logging an error and returning without error data if the signature is malformated.
It can lead to inconsistent signature or invalid processing after

Suggestion

revert the script

if (line.length != 132) {
    revert InvalidSignature();
}

`make hash` and `make sign:ledger` can be done in one step

Description

having a 2 step signature can be dangerous and can lead to a wrong message signed, specially if you miss to rerun make hash after payload modifications, you are just resigning the previous hash.

Suggestion

Execute the make hash logic in the make sign:ledger script. I suggest to use a flag option if you want to explicitly use a precomputed hash, even if it is really dangerous to sign a hash without the payload.
I don'k know if its easily feasable. Another solution could be to have another script like make sign:hash

Invalid value for tuple

Hello,

I was wondering how I can format this for the make tx to accept my inputs.

Invalid value "[["0x0000000000000000000000000000000000000000",2,[0x00000000,0x00000000]]" for type "tuple(address,uint8,bytes4[])[]"

Rely on `RPC_URL` instead of `foundry.toml` configuration

Perhaps it's better to set the RPC_URL and use it instead of the foundry.toml configuration because it's likely that someone pushed here credential while if it's in the .env file it's ignored. What do you think?

And we can just check that if the .env variable is empty we fallback to https://eth.llamarpc.com

Implement simple framework

What we want:

  • Be able to create script to generate calldata
  • Be able to store already prepared calldata
  • Be able to simply sign those calldata (using cast?)
  • Be able to collect signatures, concat them and execute the payload on a safe

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.