Giter Site home page Giter Site logo

invokerdemo's Introduction

EIP-3074 Demo

Forked from Jaydon's repo, since EIP-3074 has not been activated yet, the current source code cannot be compiled. However, the current example can be used to demonstrate the operation of EIP-3074 once it is activated.

Source Code:/contract/Invoker.sol

Simple Invoker + Super Paymaster + D2FA

We will build a security and easy flow for EOA accounts to get gas sponsors seamlessly.

Binding your EOA with AirAccount

  • Just register and get an ENS name in a specific chain.
  • Get an NFT card for seamless gas payment service with three times free USDT/USDC transfer.
  • You can use your Email to bind your EOA optionally.
  • Optionally charge or use PNTs to redeem annual fees and gas charges.

Authorization for a Simple Invoker

  • We build a series of invoker templates for daily use.

  • Sign a signature with your local private key.

  • Only the transaction complies with the rules you selected, and it will be launched.

  • See rules detail and signature structure.

    
    
  • Generate the proof and store it in every community node.

Security settings

  • Set your CommuNode confirming number, default is 3.
  • It means if three nodes validate that your transaction signature is right, the transaction was permitted.
  • If you set a D2FA, you must use your passkey to sign the data.

Verification

  • If you want to transfer 20 USDT to your friends because you have signed a USDT transfer Simple Invoker Contract.
  • Use any wallet with AirAccount SDK or AirAccount homepage, log in with your Email or passkey.
  • Search your friends in the ENS list, input 20, and click send.
  • It depends on your D2FA security setting, pop up a window to scan.
  • The Community node will get the transaction data and spread it to the node network. + If the BLS signature is enough, send it to RPC nodes with a gas sponsorship.
  • The transaction will be build into blocks on blockchain.

Extensions

  • An AirAccount Purse is building, for community reputation and Blockchain game.
  • It is also a D2FA for your binding EOA with automated notification to avoid scans and some adaptable questions.

invokerdemo's People

Contributors

jayden-sudo avatar jhfnetboy avatar

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.