The application discloses a kind of
blockchain smart contract architecture and its design method, belong to
blockchain field, including: the interaction of using
generic interface implementation and access layer,
consensus algorithm layer and account data,
smart contract module is generated independent
software function module by integrating standard
library, trusted check information packing, the call and
callback function of mode are passed through
function pointer, the call and interaction of
smart contract framework and smart contract dynamic
library are realized, the interaction of smart contract
library and TA is realized by implementing the core logic of smart contract in the form of TA in trusted execution environment, and using the GP specification of Trustzone;Transaction information handled and generated by smart contract is temporarily stored to the transaction cache area, read by
consensus algorithm,
consensus and finally form new block and fall disk.The application guarantees the execution safety of the core logic of smart contract, optimizes
blockchain software architecture, realizes the trusted check and efficient operation of contract, improves
programming efficiency.