Giter VIP home page Giter VIP logo

Comments (5)

austintgriffith avatar austintgriffith commented on August 9, 2024 1

Blindly trusting you on a lot of these PRs on the contract!
Very thankful to have you helping out on the project.
I owe you some beers/DAI for sure.

The only reason we were passing the privateKey was to prevent frontrunning.
Just make sure that someone couldn't take all the same parameters and call the same function with more gas to capture the funds.

Thanks man!

from burner-wallet.

riusricardo avatar riusricardo commented on August 9, 2024

The actual link has 2 parts: claimId + privateKey
The destination is included and signed by the privateKey fom the link. This method has no advantage over a simple EOA. It is even more expensive and there is no need to use a Smart Contract because it is validating the signature in the SC instead of letting the blockchain to validate it.

This proposal removes the private key from the link and takes advantage of using a Smart Contract.
new link: claimId + claimHash + signature
With this method we'll be able to create a signed proof and remain as the owners of the signer key. It becomes a better way to manage keys usage.

from burner-wallet.

riusricardo avatar riusricardo commented on August 9, 2024

To prevent frontrunning we'll keep the destination in the hash.
The actual link has 2 parts: claimId + privateKey

from burner-wallet.

riusricardo avatar riusricardo commented on August 9, 2024

@austintgriffith We can close this issue. We could think about this later and analyze if there is an alternative or keep it as it is.

from burner-wallet.

austintgriffith avatar austintgriffith commented on August 9, 2024

thanks!

from burner-wallet.

Related Issues (20)

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.