Blockchain-based state machine maintenance method and apparatus
Provided are a blockchain-based state machine maintenance method and apparatus. The method can be applied to a blockchain node, wherein the blockchain node maintains a state machine corresponding to an electronic bill stored on a blockchain; and the state machine comprises several bill states in a l...
Saved in:
Main Authors | , , , , , , |
---|---|
Format | Patent |
Language | Chinese English |
Published |
16.02.2021
|
Subjects | |
Online Access | Get full text |
Cover
Loading…
Summary: | Provided are a blockchain-based state machine maintenance method and apparatus. The method can be applied to a blockchain node, wherein the blockchain node maintains a state machine corresponding to an electronic bill stored on a blockchain; and the state machine comprises several bill states in a life cycle of the electronic bill, and operation data for triggering switching of the electronic bill from one bill state to another in the several bill states. The method may comprise: receiving an operation transaction regarding a target electronic bill; in response to the operation transaction, publishing operation data, regarding the target electronic bill, related to the operation transaction and passing consensus, to a blockchain for storage; when it is detected that the operation data regarding the target electronic bill is stored on the blockchain, determining whether the detected operation data matches operation data in a state machine; and if so, switching bill states of the state machine according to the |
---|---|
Bibliography: | Application Number: TW20209110802 |