Font Size: a A A

A Cross-language Implementation Scheme For Complex Operations Of Smart Contracts

Posted on:2024-01-30Degree:MasterType:Thesis
Country:ChinaCandidate:Y G YangFull Text:PDF
GTID:2568307106467804Subject:Computer technology
Abstract/Summary:PDF Full Text Request
With the development of blockchain applications characterized by digital assets and smart contracts,the development of smart contract applications is growing rapidly,broadening the application fields of smart contracts and blockchains.However,traditional smart contract languages based on EVM(Ethereum Virtual Machine)have problems such as Gas overhead limitations,poor readability,and strict grammatical limitations.Among them,the difficulty of completing complex computing tasks is an urgent problem that traditional smart contract languages need to solve.Therefore,the blockchain platform tries to meet the needs of smart contract developers to develop complex smart contracts by developing multi-language SDK interfaces.However,executing computing tasks off-chain also means breaking away from the protection of EVM’s native exception triggering mechanism,which introduces new security issues,and it is necessary to further ensure the correctness and privacy of user computing results.In response to the above problems,this paper first proposes a cross-language solution system model for complex operations of smart contracts to solve the problem that smart contracts cannot achieve complex operations.And using the properties of bilinear pairings,two publicly verifiable calculation schemes that can be applied to cross-language schemes are proposed for matrix multiplication and polynomial calculations that are widely used in the computer field.The specific work is as follows:1)Design and implement a cross-language smart contract system model,use the SDK interface layer of the blockchain platform to establish the connection between the cross-language program and the smart contract,let other languages cooperate with the SDK interface layer to complete the calculation task,and the smart contract is responsible for sending and receiving Data,greatly reducing Gas overhead,enabling smart contracts to complete complex computing tasks that could not otherwise be completed;2)Through the design and implementation of a publicly verifiable calculation of matrix multiplication,combined with the confusion matrix algorithm and the smart contract cross-language implementation scheme proposed in this paper,the publicly verifiable calculation of matrix multiplication suitable for blockchain smart contract scenarios is completed,ensuring that when other programming When the language replaces the smart contract to complete the calculation task,the correctness of the calculation result and the privacy of the user data can still be guaranteed;3)A polynomial public verifiable calculation is realized by design,and the multi-party shared calculation is combined with the smart contract cross-language implementation scheme proposed in this paper to complete the polynomial calculation public verifiable calculation suitable for the blockchain smart contract scene,which ensures that when passed through other programming languages The correctness of calculation results and the privacy of user data can still be guaranteed when completing calculation tasks instead of smart contracts.
Keywords/Search Tags:smart contract, publicly verifiable computation, cross-language, blockchain
PDF Full Text Request
Related items