Method and Apparatus for Running Smart Contract
A method for running a smart contract, performed by a processing node, is applied to a distributed network, and includes receiving a transaction sent by a consensus service node, where the transaction includes a plurality of running results generated in an endorsement process of the smart contract,...
Gespeichert in:
Hauptverfasser: | , , , , |
---|---|
Format: | Patent |
Sprache: | eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | A method for running a smart contract, performed by a processing node, is applied to a distributed network, and includes receiving a transaction sent by a consensus service node, where the transaction includes a plurality of running results generated in an endorsement process of the smart contract, checking whether the plurality of running results meet a verification policy, where the checking includes checking version numbers and data that are in the plurality of running results and that are generated by a program other than a restrictive condition in the smart contract, when the plurality of running results meet the verification policy, identifying the restrictive condition in the smart contract, and determining whether local ledger data meets the restrictive condition, and when the local ledger data meets the restrictive condition, accepting the transaction. |
---|