[Day 1 - 07] Cross-chain Interoperability Protocols with Luc Vu

BUIDL Vietnam 2022 · September 2022 · 37:39

Luc Vu, solution architect at SotaTek, gives a technical tour of cross-chain bridges and interoperability protocols. They compare an operator and validator design, such as one SotaTek built, with the guardian-based Wormhole design, covering validators, signatures, relayers, time locks and why single points of failure are risky. The talk then looks at inter-blockchain communication in Cosmos IBC and Polkadot, and at how decentralized proposals and community governance can make a bridge more secure.

Speakers

Topics

From BUIDL Vietnam 2022, hosted by Kryptoplanet.

Transcript

let's welcome Luke his solution architect of soda Tech so that I can successfully provided full cycle I.T services to clients from 21 Nations worldwide with more than 350 projects and is one of the most reputable development Studio Partners to local and international blockchains projects so he will share with us on Christian interoperability protocols and how can we leverage protocols in developing blockchain application and products so please thank you yeah thank you everyone to joining this meeting so uh as you know there's two guys has

talking earlier has talked about the bridge and some kind of multi-chain right and they asked more Focus about the business side of this magician but as solution I should take then I will be also I more like a technical guy so I will present you about the depth in the bridge and how to become into a blockchain that bring more security to the bridge okay okay so uh what is the blockchain bridge

it's not only reach the asset from another chain to another but it's good maybe some kind of transferring some information and some data from this blockchain to another blockchain and as you can see in here it's uh oh the text is broke up somehow it will have some kind of relayer in between and transform transfer the information between each blockchain so uh

yeah um this could be many times a bridge like from evm to Solana is equally the same in the layer zero so to blockchain to blockchain and from layer to layer and layer to the side chain when we want to do something with the side chain yeah so uh the benefits of bridge is is Will you know when you executing the transaction on Bitcoin on ethereum the transaction

grass is so much so much costly and we need to reduce that also one blocked renovated in mid car is about 10 minutes and in 80 room is some kind of like a five second if I remember correct so is it very slow and it's uh will not apply to Enterprise chain Enterprise application that require a lot of okay that's required a lot of transaction per second so we will have

to do something with that also the gas is very high yeah in ethereum in from previous I think it is about 50 dollars each generation so yeah and also there's no communication between chain to chain because it's run on in the quarantine place and they're not passing any information so if you are you want to passing information from outside or from to another blockchain to this one and we will have some guy a

mechanism to pass in the data yeah and even more than that we won Every Chain to enjoy the Intel blockchain yeah so firstly is a I will go in depth with plastic bridge and the Wormhole like a portal as I said AKA portal is um I will talk about this one here okay so how plastic work is we will transform transfer the assets from multichen it's transferred from Silo to

BSC to ethereum from BSE to Stella to Silo and to ethereum and yeah uh one of these chain does not use Smart contract so uh we will talk about it so this is in high level architecture of this one it will contain the blockchain the single night roof to synchronize the transaction and the events emitted from the blockchains and is we will have the data streaming platform for the plastic Hub to realize this data from operator and the

validator to the destination chain yeah uh the more detail yeah so the more detail could be in this diagram be behind so yeah so firstly that the front-end guy the wallet want to wrap up the token and then send to another chain and they will have to go to the front end and doing the transition and the um

back end we will re got the data and then uh getting some fee and some calculation for this one to work also after getting some confirmation and some estimated fee it will be executed on the blockchain and then it will emit the data also amidst the even lock for the crawler to crawl and up the crawling the letter the data will be transmitted to some kind of data streaming platform like Kafka

and then it will be validated validating the data and after enough threshold for validation then it will generate enough signature to push on other chain and execute successfully and that's the house is working and also this is how the refund work firstly it will check if it's been executed on the destination chain before and then doing some kind of

calculation and asking for the signature on the on the validator and then gathering enough to transferring this okay so uh to be more specific how we could make this bridge is uh some key points to understand in this firstly we will able to split have to split is too many kinds row like governing roles admin and the validator uh the operator yeah the ask mini for configuration the operator is for

executing the unlock transition or refund transition and the validator is in track of signing the signature to make it more secure and avoid single failure of server yeah you know when we only run an operator to sending this unlocked right is with our validators it might be correct um it might be hacked and they will use operator to unlock everything to the account and we will have no way to prevent it if there's no 96

procedure in between we will have some kind of rock right yeah and of course the time lock because when we want to change the state of this smart contract like pause the smart contract uh uh doing some kind of batching process then it will have some need a certain amount of time to acknowledge the other person or the operation to work with and the lock unlock mechanism is applied on this bridge this plastic cup bridge is developed by

sautatec from bottom up and I inject this in its very beginning also to design the architecture and to coding this micro giant also the back end yeah so uh uh the second is the wormhole the Wormhole AKA portal as I said is why the Wormhole and AKA bottle is it's been hacked before and I will talk about the hiking process after the presenting later and but yeah so uh the Wormhole acts like this one

yeah it has many Guardians um from one to n yeah each Guardian could be the bootstrap and could contains the list of another Guardians to get data from to size the signature or to validating the data and Guardian can be config to um to be the back end and in the front end will able to connect to an icq in this diagram you can see that is not the same as the

the every Hub because the every Hub is uh the single server and if the anything that's happened with the relay Hub or refund service and considering is down for goods yeah but in this one uh in this one everyone can be the back end guys or the operator so yeah if one Guardian is down then is is not matter and we if not if it's able to reach the threshold then it's not matter yeah so um

and uh and then here is a flow of the portal yeah so firstly is a front-end guys LG wallet the user will generate some guy a payload and then ask the king for payload return with some encryption yeah so after that it will be executed on the blockchain and then all the notes we will be able to cross the data from synchronized data from the

blockchain and and then the customer will asking for the site signature for completing this envelope to send to other chain to be able to unlock it in other gen and uh East had many he said to important function is transfer the token and to claim the token when the transferring is failed or the destination change does not have enough um access to be unlocked to the other person to the person yeah

and also it will be have some Advantage then the plastic Bridge we will talk in the next slide yeah so in the plastic model you can see that it has a lot of Advantage disadvantage because uh it will use single hub for executing the transition also using the operator to execute the transition not letting the user to use the transition so is just the system and the system yeah okay so uh is the

plastic Hub is like of the governing Authority in the community and it's run by one company so if the company wants to hack all of his system or want to withdraw all of this asset on this smart contract then of course they are able to do so and the community governance is not able to do anything with this Market check and it has nobody else yeah he said no voting for State chain or the proposal or something like that and if there is no voting on just only one person can execute it then

is don't have a secure and okay so the operator gas is because in this in the previous diagram right the Opera operator will execute the transaction not the customer execute the transaction like Wormhole therefore it will be got some gas and which will be have it will have the uh operation to maintain this operator gas and to maintain the native balance in this architecture and also it will cause a lot of Maintenance efforts to be

work with system but yeah but somehow I still developed that yeah somehow because it's have the and it's it sets a change that don't use the smart contract so in order to use this bridge to transfer the token to this gen we will have to use the custodian model and to apply to the whole system then we have to use the operator to execute this transition not letting the customer to do it yeah yeah okay so uh

this is very centralized uh we will have to make it to become more decentralized yeah so uh to become more decentralized we minimize the risk of Singapore failure because uh when the back ended down is a single part it's only part that that's it could be in this field and no use to the system right and uh as you can see in this diagram in this wormho diagram is good avoid the single five failure because it's had many guardian and each Guardian can act at the stroke of this back end yeah so uh

of course uh uh this is that's disadvantage of the plastic Hub yeah and the second thing is is to avoid the operator gas when the transition is bigger bigger and bigger in number we are not able to frequently tracking the geography and tracking the balance of the operator right and just simple that we will let the customer execute the transaction for us then it will be and not costing any guts and it's more efficient for the server to not have the

too many requests to this blockchain yeah and also if we don't use gut on the operator then we don't have to maintain every time to checking the system and become decentralized like many guardian and many other many communities take the control of this operation then is we do not need a too much of maintenance for example like my company but let the other also in shock at this maintenance yeah okay so uh this is the key point to make is decentral line is uh using proposal

yeah using DLS to make proposal to let another practice uh to involve when validating or when some stage change in the smart contract like pausing the smart contract or emergency withdrawal when the smart contract has some problem yeah and the community governance because don't let single company to keep all the thing right yeah if they keep all the things to themselves and everything Could Happen yeah maybe one of the developers want to hack a system yeah they if they know enough knowledge then

they could hack a system and all the things will be lost okay so uh um with the monthly signatures we added to the system security because uh when we're using only single one to execute this to understand then anyone that's been like the key could be a problem another thing is um peer-to-peer communication because to uh to connect to node to node and to the guardian to the guardian we will have to

be some way to communicate with and it will have to establish some kind of peer-to-peer because we it's we no need the back end to uh to the server to relay this communication message so we have to communication and security securing it yeah also the medical tree because nowadays there's many transactions being executed on the blockchain right if we execute every time the connection is the

transfer happened then it will be which will cause more gas and to maintain the the intricate Integrity of the system we will have to post push some proof on to the other chain uh and on this chain to prove that it's have been happened on this previous blockchain before and when the person claimed that the assets on the destination chain uh on this or refund on this gen uh is we'll be able to validate that as uh is is completed before us is have the

knowledge before yeah um yeah so that is about this this how to become decentralized of course the the bridge is far far more from perfect it has many floor yeah like the Wormhole architecture is decentralized right but uh it's been hacked it's been hacked by the problem with the smart contract when wrapping the token and when pairing the token from chain to chain so we have to make something to secure that

yeah uh yeah so uh is when we as I said before I present you the plastic bridge and the Wormhole right is two variation of the bridge and why does this has to make variation because it does not follow any standard yeah it's because it's done not follow any standard and therefore it has some flaw to exploit when we have some kind of standard and protocol uh uh the

protocol is proven by many people and many developers before so we will make it more secure by auditing exiting code and reusing the codes that been applied to many programs without any problem so if you have some standard to have some standard right we will have some kind of protocol and we will call this one is inter blockchain protocol uh in in the core system it's still easy bridge but it's more advanced more security than Bridge

Yeah so basically it's uh um is you have some kind of relay relay layer uh just Connect into the blockchain and in transferring the data from other it is still the same with the Bridge button is we're not using the smart contract to bridge the token rather than have some standard also some kind of implementation is uh is we will have if we modify like existing blockchain consensus to able to be able to have

some new type of transition like inter blockchain International to do with that and we could avoid the smart contract to the using a smart track yeah so in this first picture is is you have some kind of relayer but this relayer is inside this blockchain and this is a part of the consensus and another type of transition line called Intel blockchain transition that will be able to get the the data from other blockchain and then using consensus to submit it into the destination chain is we're

passing the information between each other like any system any backend system also there's some implementation like scoreboard Hub in here is we were using the IBC protocol and it will be more advanced in the next basically what I explained is this a picture above is we have the delay related layers to dust coding inside the blockchain and follow the standard and the other very other type is is the same as polka dot

yeah uh it's um we will have to create some kind of relay chain and everyone using the same standard to be more secure and to be decentralized yeah yeah so uh if we are using uh Intel blockchain protocol then we could eliminate the custodian Bridge like every hub using operator to execute transition in uh and using custody and alcohol to store assets on Stella because Stella don't have don't have the smart contract and it's

the same as it's nearly the same as Bitcoin so we will have those custodian Echo to store the assets yeah so uh yes we will have to act as the layout routing and the relayer will be will accessory layer and storing and proof this transition proof this information being pushed on the blockchain is Valley is is valid and decentralized and strong button transparent and no more hiding anything from the communities right because when

hiding the informations from communities no one can audit the system or no one can explore and improve the system so it has to be transferred transparent in open source and uh it's will have its own consensus like another like like blockchain like proper Authority when it's Rich enough professional uh proof of Stack when any anyone have the parts and have a percentage of the threshold we need also of course is we have the governance models and if we be trusted by the

communities and and so on it's in is be a protocol so it will have a set of Standards to other person to integrate with the with this type of inter blockchain have to follow yeah yeah just like some protocol in the Network TCP or UDP right okay so uh is this perfect of course it's still far from perfect uh nothing is perfect actually yeah but it's far more secure than other Bridge

farther most secure because it's uh has its own consensus it's decentralized and Ash node can ask at the the operation act in the in the operation so and because it's have a set of Standards all the person in open source working with us so it's it's being proven and improved over time right so uh in the next session I will talk about the example of this is the blockchain protocol use guide we will have some example like ghost mode IBC

and polka dots hcmp so uh IBC is standards for communication among Health generals smart contract capable chain is mean those chains that have the smart contract implementation with in it and the communication layer is relayer that's um been integrated in the into the blockchain yeah uh it's been it oh okay so uh fast forward for this problem is uh we have some uh diagram to show you the flow of this

one uh the the first thing is you send the package to the car and the layer will query the package and send to the layout to the blockchain B and uh which we will regenerate some kind of acknowledgment and then execute on the B and the relayers will send the result to the actual knowledgement package to the blockchain eye okay and okay this one is the polka dot icmp is a half the different implementation is we

will have some kind of relation into that in the between from the parachain is not like I cost mode IBC because the RBC will have to be the same blockchain that implement the protocol but this one does not yeah this one is about the layer is called correlator and the message is crossing between chain disco I see cm and it has four main components first main component is religion in the middle

and the power chain is the one that hook into the religion and para threats is also at at the power chain but sometimes it's icq sometimes is up due to the reservation of this polka dot and then the bridge because of the power chain will connect to some kind of sometimes it has its own blockchain sometimes it's acts as a bridge and transfer the token to this battle chain is take advantage of this relayer because the real layer is in

charge of security in this one is the it will be validated from many many changes who can into okay so uh the interaction between the power chain is uh it has a message and it's both with with flow to this ICM protocol and then uh there is will be some complicated complicated process like voting and validating this in the relayer but because this is is my this is the end of my time so I will not be able to focus

on the technical detail bit yeah so to be compared with IBC and polka dot right it's the IBC will be the IBC light relayer and it's only chain that's implemented with the IBC protocol should be is be able to communicate with each other but the other chain is not so uh yeah it's the limit that of this one also this polka dot is on the relation so the relation is limited in slot yeah because the power chain is about they said about 100 slots for barotin

and they will be they will have to some kind of stacking and to option they open some kind of option to the other people to um acting acting the slot in this one and the incentive is a transaction fee in in polka dot yeah uh the ending thought is a inter blockchain is very very promising because nowadays everyone want to every system want to take advantage of the blockchain but some blockchain is slow some is downloads have Smart contract or some is complicated so complicated in the

monthly as the inter blockchain is the solution for it it will transfer the access to the other and we we take advantage of this ecosystem to be able to have high DPS High transition per second uh um defy system or some kind of this um yeah but it will be have to follow standard to be able to more secure and also so tatak is implementing uh the in the standards of inter blockchain protocol so if anyone is curious about it you can ask me about

this future incoming of this so this project in sotate of course it will be some kind of between the course mode IBC and the polkadots icmp so uh it's more advanced and in the future right now it's in the development phase so I don't just want to lick the information a bit yeah this is my uh ending here so uh I hope you guys understand what you what I said and if you guys don't don't understand any of this then you could email me to look for tech.com

email and I will try to reply all of this and we will focus more on the technical problem to solving the issue yeah thank you for everyone to listening this one thank [Music]