morpho-labs / safer Goto Github PK
View Code? Open in Web Editor NEWAllows to easily create tx to be signed through CLI and submitted on a Safe
License: MIT License
Allows to easily create tx to be signed through CLI and submitted on a Safe
License: MIT License
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[])[]"
Before calling cast wallet sign
here, you can verify if the user has already submitted a signature by running a checking script that is decoding signatures.
Having this in your .env
:
SAFE_NONCE=
changes the signature (weirdly).
It can be useful if I want to use the safe backend, in the end
Perhaps users would like to prepare signatures in local but don't push them? Perhaps it would be safer to ignore this folder
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.
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
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
revert the script
if (line.length != 132) {
revert InvalidSignature();
}
In fact it's not really clear what is the goal of this tool when reading the README
What we want:
cast
?)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
https://docs.safe.global/learn/safe-core/safe-core-protocol/signatures
The constant parts need to be sorted so that the recovered signers are sorted ascending (natural order) by address (not checksummed).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.