Paymaster Smart Contracts
Paymaster Smart Contracts · 19 Jul 2023 · 58:37
Adegbenga (Ben) Ogungbeje gives an overview of paymaster smart contracts, a building block of Ethereum account abstraction. The recording comes from an Ethereum Engineering Group online session in July 2023.
Speakers
Topics
From Paymaster Smart Contracts, hosted by Ethereum Engineering Group.
Transcript
but hello and welcome everyone my name is Peter Robinson and this is the ethereum Engineering Group Meetup today I've got attic benga who is going to talk about paymaster contracts so um Ali banjo why don't you introduce yourself a bit first um and then please present your slides so hi everybody I'm called adiga and most people call me Ben also but that's my real name um a blockchain consultant for the last four to five years a side by side worked within blockchain companies at the same time gone freelancing and blockchain
consultancy currently I'm working on a project where they're trying to tokenize carbon emissions it's coming out of stuttgarts so we have a so-bound talking with it we also have an erc20 token and we're talking about the governance token and my specialization is accounts obstruction which is why I'm here today soon sounds awesome so please present your slides um so can everyone hear me properly yep you're coming in loud and clear
um yeah everyone see my slides loading and yes okay so I'd like to welcome everyone to this discussion about hey Master smart contract and it's just an introduction is not an easy topic so cover in a very short period of time for the simple reason that within the greater context of the arc 4337 protocol the paymaster sits within it so it sounds more practical and it sounds more it sounds better if you discuss
different aspects of the arc 4337 looking at the user operations looking at the bundles looking at the aggregate smart contracts entry points and then include the paymaster however as you probably could guess that's quite an extended conversation yeah we took the better part of six seven years so this is a very high level View and I'm going to just focus on some specific aspects of the paymaster smart contract so I'm going to focus on why there's a need for paymaster smart contract just some use cases and a direct implementation by Visa which is to spare Master smart contracts so first of all why is there the need
for pay masters smart contract most of us will probably have experience or be aware of some of the challenge of cash transactions in terms of account obstruction itself it sits nicely under gas abstractions some should argue the standard private key management but that's a debate for another day and just three main reasons why we have a need for for pay Master smart contracts in terms of your wallets you always have to pay for gas so any operation on top of the blockchain especially ethereum blockchain Unchained requires some kind of payments there are individuals who are targeting
blockings out there but you don't need to pay for gas for the farm in between and the question is do you really not pay or you just transferring that responsibility to someone else and if you're actually paying your restricted to payments for my wallet which means you need to have a possession of a wallet or externally on the account I'm making distinction between wallet in this case has a smart contract wallet like an Umpire like a gelato like I say because the case might be and externally owned accounts as a metamask so the distinction between the smart contract wallet which has extra functionality and just your day-to-day wallets Michael Myers so that's one reason why the discussion about paymaster came up another reason why I discussion about payments also
came up was the need for new users to have tokens so take for example I have just applied to if Paris Global events I want to attend the hackathon and the required requirements to apply to if Paris you have to deposit 0.0058 that's the requirements so that means as a new user we need to go and get a wallet it's been mathematic and by gelato banana as the case might be I would need to find a way to get the E I need to find a way to sending it onto the blockchain and get it confirmed get that transaction confirmed so this is a growing demand for new users to need
tokens whether it's a message whether it's on the polygon or solar as a case might be and it's challenging especially if you're new to the blockchain because to use a wallet is quite complicated within itself and then to acquire tokens it's not an easy process so that's another challenge and that's another reason why they pay Master smarts contract discussion started also in terms of the wallet ux and the UI itself so just at the operational level you got to implement the seed phrase you've got to have a private keyword to sign the transaction and then you send your transaction so this can be quite complicated there can be a lot of things that could go wrong at this stage there are wallets I've tried to remove that
from tonight or simplify it but still you have to have a level of involvement bear in mind there are other challenges that gas transactions that they need for the payments of smart contract to come up the other reason but these are just three Broadways so the big question is can we delegate transfer or sponsor gas payments if I for example don't want to make the Gas payment I want to give that responsibility to another wallet it's another smart contracts as the case might be can that be a possibility if I'm having difficulties with it and in terms of that question that subtraction is the
key now bear in my gas obstruction means different things to different people so I would stay consistent with that subtraction in this case is transferring the responsibility or the sponsorship of a gas payment to another entity it could be a smart contract could be a wallet it could be even a non-blockchain entity but you're transferring that responsibility to another entity so these are just some use cases that would require implementing the payment systems contractor why discussion came up I've already touched on how for example many more events today is many more operations many more products and services are required individuals to
have some form of native token or some kind of ethereum to perform certain kind of on-chained actions and it can be quite difficult for new users because the onboarding process is not the ux UI interface especially within web free it's not at the place where we want it to be another reason is you could potentially have a decentralized application you built you want to incentivize new users to come on board you don't want them to pay for gas they could be established users they could be new users so you want to transfer that responsibility that sponsorship to someone else so that's another use case for it you also have the case where you might
want to allow people to use the native token so it could be usdc or tesor such a case might be like a message and that responsibility of paying for that cash transaction you might want to sponsor it yourself or you might want to transfer it to another smart contract another third case entity the last use case is something that is quite close to home so individuals might want to use a mixer as the case might be and they might want to deposit some kind of tokens or funding to a mixer and then they want to charge the gas transaction to another address so take for example a situation like War
you may not want individuals to know your political affiliations so you might want to support a second group to make a sponsorship for certain individuals if the political affiliations in this case might create difficulties for use from a professional perspective you might want to obscure it so that's where paymaster smart contract can perform that responsibility now bear in mind these are just four broad use cases there are many many use cases that are coming up and there will be many many use cases as there as we go into the future so the key question is what is the pain Master smart contract so we have touched on it to the course of the discussion a pay Master smart contract is a smart
contract that's just palestinating some kind of transaction sponsorship is transferring the responsibility to the best party mechanism to pay for the transaction the payment for the cash transaction it's transparent there are cases where it might make it but in the general context of erc437 where the evolution of the payments that came out it's not making it's just transferring that mechanism so it's kind of enabling the mechanisms acting as an intermediary and when we look at the discussion of visa and how Visa was able to implement the payments as you see why the word intermediate will be more important for
playmaster so it just facilitates the transaction itself now this is a diagram that's we're going to take some time to look at and I would explain certain features within the diagram itself [Music] if you quite confidential erc437 you would recognize some of the features but you cannot conversant we can talk about them so with integrator context of accounts obstruction yes equal to G7 the bundle account is a node that groups a set of user operations together user operations are just transactions in
the bigger sense of the scheme of things but during the authorship of erc427 they decided not to call them transactions so as not to confuse them with the greater world of transaction on the ethereum blockchain so it could be a block Builder itself there's a discussion that some burners should become block Builders and some Builders become bundles but maybe not vice versa so they may Bond us that may not be block Builders so but it has the ability to group a bunch of transactions into one single transaction so that's what the bond that does the entry point smart contract is a smart contract that executes and validates the single transaction from the bundle itself so this is a very centralized position
for those who are interested in security this is quite critical because there's potentially going to be any attack more than likely to be within their entry point smart content so it's verify signatures it verifies the payments to stay it's also supports in the pay master and it executes the final operations itself you've noticed the word verified paid Master stake and you can see the entry point will be making calls to the payment one of the features of the play Master is that for you to have that responsibility of sponsoring transactions it will need to make a stake so it will stake an amount that I specified within the bundler transaction
specification to the entry point the entry points will confirm this stake and then based on that is to verify or validate the operations and then the bundler will make the payments not the paymaster the bundle makes the payments it sponsors it pays for the cash transactions but the pay Master facilitates the process and the entry point has to verify and validate it with the payment system there's a minimal amount so that it wants to validate and there's a minimum time period where it needs to validate this thing one interesting thing about this stick is that the stake itself will not be slashed unlike staking your
delegated proof of stake or the proof of stake it doesn't get slashed if there's difficulties with the stake or if there's a section within the state the paymaster can get throttled or banned for a period of time not indefinitely and then after a period of time it can be allowed back into the ecosystem if you see further down at the bottom of the diagram you see the wallet contracts within the context of accounts abstraction on ethereum you need to have an erc4327 wallet that is compliant so what that simply means is that it's able to use the different components of usa437
and it can send user operations and it can validate operations within it now many wallets out there are not compliant with erc437 interestingly does this money safe released a news announcement that they are now compliant so say it's not compliant so you have so you have sold wallet you have candidate you have unit pass but your agent your Bravo your Empire your gelato and not erc427 what that means in terms of our discussion here is that you would not be able to implement a paymaster with those particular warnings but your you have someone that you can the entry point would work very closely
with the wallets the Smartwatch contract wallet and to validate the user operations itself to confirm these operations it will check with the pay Master but it has enough or whatever token to pay for the transaction is actually winning to pay for the transaction itself or to sponsor the transaction so you're not pay for chance to sponsor the transaction and then it will now validate the final process and then that cash transaction committed fed to another smart contract and then it can make the gas transaction payments on your behalf so this is a very high level view of
just the flow itself now this is a another little bit of in-depth view which I liked and it kind of brought a little bit home so you can see some of the similar methods and functions within the initial diagram itself so the handle operations function is going to sit right within the entry smart contract this is the one that executes and validates all the other operations that are coming from the bundle list once they're approved the validate pay Master operations will be a call and it has to be called because it needs
to confirm does it have enough stake if it doesn't have enough stakey to revert and one challenge that is going to occur in terms of the bigger context of using the pain Master is you got to have a simulation period of the transaction and then an execution of the transaction one of the challenge we have to do on the gas transaction ecosystem is you may send the transaction you cannot simulate it the transaction is gone you've already paid for the gas transaction if you don't send enough gas in effects it fails as the case might be and then your e for your token has gone so the paymaster and the whole ecosystem
is trying to introduce so where we can simulate the transaction to check does it have enough if first of all you can make that call once that call is made from the entry points to the pay master then there'll be a final execution now one interesting aspect is sometimes there's disparity between the simulation and the execution because the user operation from the smart contract wallet may decide at some point I'm not going to authorize that particular user operation so in my password simulation stage to the pay Master okay yes we're going to sponsor this transaction because operation the entry point says okay that's fine
but then do the actual execution this operation may decide no I'm not going to validate the arms so there's a new there's an operation there's a method called the post-op which would hold the pay Master to responsibility if you decide it's either holds a payment responsibility or if there's no payment sign in some instances to be just prepared back to the smart contract wallet so to make a fast call to confirm and then if not then we make a second call to the post-op to make sure that it gets a sponsorship and the payment for the cash transaction now the percentages can be a security flaw because we can have a lot of dust attacks through there where there can be
a lot of calls going through and they can be disparated with dissimulation and execution so the the pain Master will have to be whitelisted and you can set it up at some point in time okay Masters that are killed continuous validations and continuous executions can be banned and floating and this will sit under a system called the proof of reputation so they build up a reputation at some point in time so if you wanted to make a payment and you want to choose a pay Master as a sponsorship you can go out there and use established payment stance that built up a reputation that's a period of time and they built up their validation system as opposed to you constantly making these payments and then losing the transaction
payments because the validation from the payment Master doesn't blow through so that's a little bit of a diagram and a high level View these are just some definitions yeah yeah there's some questions in the chat but maybe maybe it might be a good time to have a quick look and um whilst you've got those diagrams there and everyone's thinking about the diagrams maybe um is that okay yes yes yes fantastic okay so I'm going through the questions okay so it says what first question is what
happens when one of the user up fails or is invalid inside a bundled transaction as a that's a very good question now the user app will need to be validated before it actually goes into the bond there so it doesn't go into the old spam pool so it only goes into the out member which is different from your generic mempool when it's validated if it's if it does not it's not validated and it's not authorized it would even go into the membrane so in terms of that first question it wouldn't even go into the into the boundary transaction it is only validated transactions that batch transaction into one single transaction
okay just did that did I answer that first question I I think so so I guess that means that that alt mempool is an off-chain member not something that's on the change yes yes yes correct this next question says does the transaction fail or accept the remaining valid user operations so that refers back closer to the first part the user the the there's a there's a function within the smart contract World Excel sitting within the user which is called validate operation so it would need to be validated okay and the entry point would ensure it's being validated there's a validation on
stage and there's an execution stage the validation stage will ensure that all user operation transactions are validated before they go into the to the burner so that we don't have the situation where things are going to the bond that and they're not approved so in terms of the second question the transaction would not even go into the bundle in the first case if you just simply fail I mean that and that will be through the simulation stage which means you wouldn't need to waste any of your gas transaction payments it's just a simulation at this point in time it's not an execution does that does that answer the second question yeah I think so okay we can have enough time if there's
if there's more clarity yeah so the next question is oh no don't worry yeah yeah please go ahead the next question say is the executor as a node in ethereum yes yes the executor is just a it's just a pseudonym in this case for a block Builder so it's a bundler and it's a node which has a responsibility of brushing transactions there are discussions in the greater context of if all validators to make this transition down to the common bundles of Vice Versa or would we have a new ecosystem of one
less and validators and there is discussions about Bev under extracted tractable value at this point in time so it is a node in ethereum and anyone create and deploy a plane Master contract yes anybody can Zike Sync has set up a beautiful tutorial where you can go in and build your own pay massage your own specifications however be aware that to get to the level of specifications where the simulation and the execution and also for it so able to work with the entry point is not very easy so there
are companies out there firms out there that are building established pay masters infinitism has some stack up also has an API payment second just plug and play into that so you can use that as opposed to building but you can't build your own pay master and smart structure which Visa debt the next question is does newly created playmaster need to be registered with all the bundles supporting 40 to 7 years operations or will it work without notifying anyone that giving paymaster have already six and entry points very good question the important specifications the entry points and dependent specifications work together to whitelist payments so they're white listed so dependent specification which also become his own ecosystem would
specify on why it is the pay masters and then if you've got to create a pay Master it needs to be in line with the specifications of that one particular bundle specification itself it doesn't mean you just need to look for a bundle that means that standard specification next question is how many pay masters are deployed to now on the period very good question I I couldn't give you a specific number I know infinitism has deployed pay masses Stack Up has a plug and play play Master climco also has a clay Master out there ZK Singh has play master and because UK Sync has native accounts abstraction
incorporated into the protocol itself you can set up the account directly as a payment Master with this functionality so these four particular companies I know are in the Forefront of setting up payment myself but I couldn't give you this definitive number but you can defer to any of these particular startups and use their famous just get at this point in time this question says how much does pay Master need to stick example on ethereum it varies it varies from platform to platform so the pay masters minimum value that in each state will be stated in the bundle specification so infinitism would take a different amount of clinical which is taking different amounts to stack up
but it's dependent but it's a reasonable amount it's a very reasonable amount of stake it's not don't don't worry you don't need to put all your eat this question says are not 43 compliance but it's better in service well the the account instruction is implemented directly into the ZK sync protocol so they're not 43 self-compliant but they do have some of the features in line with erc457 which means they can simulate the payments as you are composition so they didn't
directly take the ER 47 compliancy protocol on to Z casing so it is true they're not comprised directly but they can be used in the same context the functionality is almost close I think that's I think and thank you for answering all those questions I I didn't mean to Sidetrack it quite that much so please continue with your talk okay so these are just some definitions which I think helps us give a context of the general overflow of the pain Master smart contract like like I mentioned earlier because the paymaster sits within erc437 it is it's not an easy
conversational discussion just to talk about the famous I will talk about the involvement of the bundler and the entry point smart contract and even the Aggregates basketball track at some point but these are the core functions of methodology if you wanted to build your smart contract or within your ecosystem so you've got to have a user operation a user operation is just a struct itself says no difference your standard structure you can have core data or none so different kind of features between the the struct itself however it has an extension of other other fields that you can call so maximum gas minimum gas you can have that within there within the struct itself but in the bigger scheme
of thing this operation is technically a transaction just that for erc427 decided not to call it a transaction it's also a struct in itself so all the features and all the different kind of usage of the shop you can use user operation for entry points I'll be spoken about is the execution and validations smart contract and it has a responsibility of making sure that the final single transaction that is bundled is approved and validated it's very active within the ecosystem it calls into the payment Master it calls into your smart contract wallet and it also has a very direct connection talking to the binder user up
it may be a block Builders I've highlighted in some cases which means it may be backing transaction in some cases it may not be a Mustang it may just be a note I just want to send just single user operations itself the validate obsess on the smart contract wallet and they specified by the user of sender so this is to ensure that the initial user operations that are going out are validated within the simulation stage so that you don't start to waste gas payments when it comes to the execution stage the value they pay my step up sits within the paymaster to ensure that it has enough to sponsor those transactions and to ensure that is willing to sponsor
the transactions when it's called and then the handle up we start to execute the user operations and execute up helps track how much gas we use in the wallet so if you're on shocked how much cash you're going to use within your smart contract Bonnet this particular function will sit within your smart contract wallet so that you can make an informed judgment either to send the user transaction or not as opposed to know what we have today where sometimes you cannot make an informed guess so at this point this is this is what visa did and I decided not to try and
talk about it too much but just to look at the diagram because I thought it was kind of self-explanatory they set up one payment start smart contract where you can use your erc20 token on one end and then you can have some kind of other payments on the other end so it is almost no different to you traveling to a foreign country you're in China you're in Argentina you only have pounds in your account but you want to pay for things at a local currency and the plants already have a system where they can't do the conversion so you're not going to take your pounds and then transfer your pounds into you can but once you just sit in your card it just does it automatically so this whole
flow here is looking at that process where a client or clientele can come out they can pay in this case a usdc they can pay of course as an extension a long-term in today's also any other kind of token and the pay Master will be the intermediary on the other side to ensure that either eat is going through as transaction fees or in the long term it could be another token as transaction fees and then that construction will go into the blockchain and it goes through soon and you receive your 100 usdca in the final process so this was the first play Master smart contract they did they also did this other one where you're just sponsoring
in this case so this you're just acting as a sponsorship contract and this sponsorship had a wider range of potential tokens that you could use as a sponsorship so that means in this case it's looking for maybe another kind of token that is easier for you to make this transaction go through so you've put up 100 usdc and the other end Dimensions we see is 100 usdc so this is the code itself um it's a bit fuzzy I try to make it as big as possible um this was really the functionality the main functionality that went into the smart day because they they you pay
Master smart contract itself the post up calls twice so there's a first call to ensure that it's going to be validated and the second call to show that it's going to be executed and the first call is just if the user up is being accepted and then the second call ensures that that sponsorship or that payment goes through so somebody has to pay no matter what that's kind of the whole idea of having two particular calls if you just have one call then dubious entities can just make a call payment is simulated but it's not executed it doesn't go through so they included this in their smart contract and this was for the second one which is
the validated pay myself and this is 16 directly within the pay Master smart contract itself which is the system which is used to authorize to use the paint Master to check that it had enough to make the payment and it's also willing to make the payment so these are some resources that you can look at um some resources there's not a lot of resources out there or pay Master you can defer to the erc437 it has two small sections on it yeah Alchemy has a really good blog on the pay Master smart contracts and the flow you can read directly the Visa paper itself on it and you can actually go and try out and build your own pay
Master on the ZK sync so have fun with it and that's kind of uh the end of the of the presentation so thank you very much for listening yeah well we should we thank you not not you Thanking us um there are some more questions in the chat um yeah and so if you um let's see I'm not sure if you can see but um one of them was um who was responsible for choosing the paymaster is it the user the wallet or the bundler is there any specific reason why bundles
have different requirements very good question in terms of any new ERC or Erp individuals who try to go out and try to build the tooling and one of the challenge we have across the industry and and a lot of us will know this is that we sometimes have difficulty with standardization so smart contract wallets we have difficulty and standardization that discussion happened at wallacecon we have difficulty it's understanding of cross even blockchains it's different than standardization that cause Bridges so the same challenge you have with the burner once Arc 427 came onto the main net in March it was Defcon that was announced that anybody everybody went out there to build their
own bundles and everybody tried to build wonders based on their different specifications some people spawned on Rust some abilities and typescript some built in Python and so on and so forth that has led to having different requirements of the bond there so at this point in time you have to switch button that suits your particular needs and meet your particular organizational requirements I hope that answers that question next question is who is responsible for choosing the paymaster so the bundler specification white list the paymaster bear in mind that the paymaster can be dubious so as you go along in terms of implementing the pay masters there'll be
paymasters that are simulating transactions but the lawful entry that's consistent so during the simulation the call go flows and and the call is saying yes we do have enough for the cash transactions but the actual execution maybe it's colluded with the user up and that stake and that's the whole stake has been has been initiated to be removed so at this point in time the one that as responsible pay masters like whitelists that built up a reputation on the proof of reputation over time remember proof of reputation is a standard by which the payments are chosen and then they they kept within that he said is it the user the wallet or the
bundles the bundle in this case the user the user can specify a particular pay Master they would like to use these are can specify particular payments I would like to use if it doesn't sit well with the bondage specification it doesn't doesn't make the demands of the proof of reputation the bundle would overweight and the entry point would not approve that what is the payment so that's the channel because the paymaster must meet the standards of validation and execution and if it has a history of poor validation in spite of the user's best demand it wouldn't meet the standard next question is does ultimate pull add additional latency on top of regular transaction flow is there statistics
numbers on that that's a good question this this was quite an in-depth discussion the ultimate does not add any extra latency it works side by side with the regular mempo itself and also because it's off chain there's no increased latency I don't know if there's any statistics numbers on that but I'm sure as the usage increases at some point the statistical numbers will help us see the transaction flow I'm also has as in a guess that there will be a bigger discussion if there's increased latency in the future maybe even there might be a fusion of latencies or parallel latencies maybe something close by having two vacancies
influenced by side by side and just having two members one side by side and see can we have reduce latency and by this point in time there isn't any statistical numbers on that it's a pro economic SDK the same thing no the bicolonial education isn't the same the price the proconomy SDK has incompressive Arc 437 compliancy by this point in time it's just an SDK um it's it's this pretty Master is a direct smart contract so it's an actual smart contract itself the entry point is an actual smart contract whereas the bicolonic SDK gives you some functionality of smart contracts but
it's not a smart contract itself but it isn't the same thing there's also difficulties of using the by economy SDK at times when it's going across different chains so but at if they're playing quite the people who try to use the economy SDK and they really struggled with using it because they struggle to go across different chains I don't know for some strange reason the unit testings were having problems how many chains is a r a a live on some chains started out being a counter-structed from the very beginning or that's the claim so change like near I would say from the very very many beginning we learned from the lessons of
ethereum and we have accounts obstruction incorporated into it so there are some chains out there I can't give a specific number but there are some saying that we already have accounts attraction embedded into it definitely ZK Sync has its embedded on stack net have it embedded on their protocol so all accounts all externally owned accounts are technically contractor Council on zksync and and stacknet are people using this in all Chains No people are not using this in all chains because not all chains are account abstraction compliant so so am I using sdks to achieve the functionality some are using the wallets to achieve the
functionality someone is a smart contract problem someone is in Arc 427 wallet itself but not across all chains is there straightforward equivalent to move systems like Aptos sui I don't know much about the move system itself what I would say is that if the move protocol itself has had a counter extraction functionality into its protocol arrive from the very start there will be a parallel so to be it would be to look at the documentation of move and see if it's there yes there will be a straightforward equivalent where you can get the same kind of
functionality if it's not there then you have to use the ZK sync either for the accounts obstruction at the protocol level or other application Level then you need to use to pay masters but bear in mind ERC countries yourself it is at the application Level but what's the case think I've tried to this at the protocol name who is is it recommended to run your own bundle in building your own pain Master no it's not recommended to run your own Bond there but wonders are very complicated um they can be exploited if you if there's a gap between the simulation the execution stage remember
the simulation and the execution stage are the are the weak point which people might exploit because the transaction is simulated and it has the gas transaction but it's not executed then there'll be a lot of gas transactions there costs will be people send a lot of cash transactions simulating that they do have the gas payments but the specification doesn't have it so I wouldn't recommend a former commercial perspective so have your own bond that but from a personal basis just you know you want to break and build yes absolutely try to build your own one this question says who is aware about to giving paymaster rehabutation very good so the the the
proof of reputation comes from the entry point identified smart contract the proof of reputation system is set up on the ecosystem itself so for example on the infinite design the profile application is set up and they have white listed playmasters that have lived up to the reputation so you can go in and you can you can refer to that this question says it doesn't mean that account obstruction is already live in ethereal mainnet yes it was incorporated in March at first I think devcom Bogota one of them this year it went live but it's at the application Level not at the protocol level there is a big debate now to push it back to the protocol level your advice got a your advise one of the
co-workers of the arc 437 got into a heated debate overview there's a new group pushing so it's at the application Level at this point in time which means you still need to need a wallet like erc427 compliance to get the benefits of it just are waiting for people to create bundlers entry points contract um pay Master contracts yes it's a growing ecosystem correct a growing ecosystem is it necessary to make pay master decentralized is already decentralized the payment says already centralized it's just a smart contract uh sitting on the on the
ethereum maintenance so as long as the theory remains decentralized that the payment Master is decentralized um well can you have off chain service at this point in time no it can't have off change service because it's a smart contract um it's not a layout sustaining solution it can defer potentially to an off-chain service which is what visa did um to their General payment system you can defer to option service but they pay massage just a smart contract that sits on the ethereum maintenance like any other smart contract it just has a fancy name I think that's
that's all the questions there um even if you have enough time I'm happy to try and take any more questions I think there's one more that's just come through from Power okay okay before submitting a sponsored user app the users also need to have a deposit on their account very good question they do not need to have a deposit on their account this is the whole idea of having the paymaster you can decide to use a pay master which would then defer that responsibility of the transactions or you can have a deposit so the whole
concept of the pay Master is you don't need to have a deposit and that's the whole concept so when an operation is submitted by then with incorrect information about the paymaster is compensated for the work done by the Border yes yes somebody has to pay the key question somebody has to pay and there's a there's a ding dong fight between the bundler and the paymaster and it's almost like who can get out of it the butler is trying to hold the payment Master accountable through the entry point smart contract and play Master vice versa so there will be dubious people in the future who will try to push the responsibility always back at the
simulation stage to the bonder not the education stage at the simulation stage that we have enough here the bonder thinks okay yes it does have enough the one that makes the payment it doesn't have enough so there's a a kind of verification system in place where the play Master can be held accountable and the bond line can also be held accountable and the entry point holds that responsibility of making sure that's why there's a validation State and there's an execution stage I think uh yes I might jump in as well I'll switch it up a bit with the
questions yeah thank you it's a super interesting talk so I'm curious uh see how does the entry point decide which say there's multiple pay masters how does it decide which pay Master to try and call for the tokens in like the fee so through the whitelists that pay masters so there'll be a series of watches that pay masters the white she said play Masters then the user will pick from the ygp master as their preferred payments right so the users of the pay masters yes right okay okay and um so the second
point you mentioned steak as well but there's also no slashing for the stick um could you talk a bit more what the point of the stake is so the parts of this take was when when erc437 was was being written one of the discussions was what if we have a situation where at the simulation stage the pain master has agreed to sponsor the transactions but that's good State now refuses how to hold it accountable and how do you move away from that problem then so the the stake is the way to hold the play Master accountable for a period of time so that everybody simulation Stage IT agrees to make the
gas to sponsor the gas transactions then it doesn't make then then it kind of Renegades on it at the description stage somebody still makes that Gas payment so you as a user you still get your gas transaction going full that's the whole idea right okay and this simulation is it done on chain or off chain right so this is okay interesting okay thank you so the simulation I just calls so the simulation I just calls back to different functions itself so just actually make your standard call to a Smart contract project Smart Control video smart contract they just called the simulation is just a fanciful word for it as opposed to before you make the
payments so a call will go out confirmation okay now execution call will go out confirmation okay now execution right okay and you said those calls are off Channel I just missed that on chain on chain okay all right that's interesting I'll think about that does that mean venue use twice as much gas as you otherwise would because you execute the same thing twice yeah this this is um this is this is the discussion the the discussion is would you use
more gas with the current system now what they calculated was you still spend more gas missing out for actually you've sent as opposed to these double quotes So one discussion that came up was I'm at risk now of paying for a transaction that could be rejected could be reverted as the case might be and I lose so much cash transaction for me so I just lose the whole Gas payment as opposed to a bit more minimize gas payments going out for the initial cost and then the execution calls so it's still lesser than what you would have for losing
your your your gas transaction if it gets reverted if your transaction is not approved science we have more questions in here let me go through uh okay can anyone want open source bundle yes yes there are there are open source bundles you can you can contribute to at this point in time um I think definitely call definitely has an open source Bond there that you can look into can you please point to the bundler
specs where spec requirements are specified I have to check that information out I can I can definitely send it into the slides at a later point the last time I checked this was on the general get GitHub so if you go to flame course GitHub and infinitives GitHub then the gun performance the stock requirements are specified this one says on chain calls don't require gas huh is it is that a statement or a question I I don't know so if you were within a transaction and
did a view call it would still cost gas but maybe what they're saying is if you did a view call if you did a transaction but did it as a call it wouldn't cost gas because even though you're you're you're doing all the State updates you're guesstimating gas but that would be a way of doing it but if you're doing it as part of a real transaction it would cost gas so um yes yes yes yes yes yes yes yes correct yes correct yeah because there's a there's a distinction between this execution and the simulation so the execution is really where the gas costs is really really held accountable but at the simulation stage
there are some times there are sometimes where there's a gas cost there are some time where there's a suggestions but there's discussions about minimized gas costs at the simulation stage compared to what we have today since I see stimulate calls and static thus having static methods I see um I see simulate calls are static thus having static method in this I so I can't I can't understand the last point I see simulate calls and static laws having static method in solution called don't require
uh once you're in within a transaction so I think that's talking about a static method called versus um say delegate pull or just plain call but it's still if that's between within a transaction and between two contracts it's still going to cost gas so yeah yeah so uh sorry so so what I was saying in this is that I see that in the entry point contract or the smart wallet contract there are method called stimulate validate user operations so those methods with emulating in the name I guess those methods are being called
by the bundler before passing the user operation to the entry point to so those materials are static those methods are static in the smart content so I'm just asking that is it making static doesn't require to pay gas fee for for why why does bundle is able to call a method on chain without paying gas I have I would have to I have to look further into that um I have to look for the internet my my understanding is
the they said this the simulation calls itself simulation calls either uh either a minimized gas post or or gas less because there's quite a few calls in simulation from the entry point from the bundler back and forth from the from the the pay Master smart contract itself and the whole idea is to have a minimized gas transaction cost compared to your standard Cash transaction cost where if you send the transaction it gets reverted or it gets rejected as the case might be so I would have to just a little bit a little bit more into that
um I can definitely get back to Peter on that a little bit more into that um so so this will be on YouTube and so what you can do is so this the slides and the video will be on YouTube and you can put a comment in to the in the um video on YouTube So yeah so thank you um so look I think we've had a whole heap of questions and I can see that we're heading towards six o'clock art if you were to represent your slides and we'd go further through those last three slides just so people know what's coming up okay so yeah not to worry things have changed ever so slightly um in the last week or so uh yeah and we go to the next slide foreign
okay all right future talks so um on July 26th which is just next week we've got um Jane uh window Jaden rather Wendell talking about um erc6551 and then on August 9 we were going to have a talk about passport but I've pushed that out by about a month and instead I'm going to talk about how immutable we go from a smart design of a smart contract or the concept to a deployed contract and we're maintaining it so the huge process behind having a secure um blockchain system and what we're
doing how we do that um then on August 23 Philip is going to talk about his ideas on bridge aggregation and how that should work um we've got uh Chris question talking about Forge development we've got Clemens who's going to be talking about web3 and Ai and so here's a he's a speaker from consensus um and then I'm going to get around to talking about passport and the whole immutable ZK evm architecture but in particular talk about how passport works and give a demo and explain why this smart contract system is secure and it works a good idea
um so look there's one more slide which talks about the socials um anyway um if you yeah so if this talk is going to be uploaded to YouTube and um if you're watching this on YouTube there's a a meetup.com group called The ethereum Engineering Group there's also a slack workspace if you go to meetup.com you can get the invitation link for the slack up yep there it is just there um example code for some of the talks is on that GitHub repo so look at Adventure thank you again for your talk very
interesting and very topical so thank you for your talk and have a great rest of East CC thank you very much everyone thank you very much have a good evening thank you thank you thank you bye
Related talks
- Loopring: Rise of the SuperApp
- ERC–7947Account Abstraction Recovery Interface
- Why smart contract wallets are the future with EIP-4337 and Account Abstraction -@kristofgazso
- Smart Accounts in Production: What We Learned the Hard Way
- Wallets Reimagined: ERC-8286 & EIP-8141 in Production
- Why account abstraction on L2 is critical for mass adoption
- Social Recovery | Rasul Ibragimov, R&D Lab of Ethereum Foundation
- Counterfactual Wallets and Loopring NFT Support
- Orchestration: The Missing Layer Enabling 1-Click Ethereum
