Methods and apparatuses for reading and updating data structures, and electronic devices

US11775507B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-11775507-B2
Application numberUS-202117163279-A
CountryUS
Kind codeB2
Filing dateJan 29, 2021
Priority dateDec 20, 2018
Publication dateOct 3, 2023
Grant dateOct 3, 2023

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

A computer-implemented method, medium, and system are disclosed. In one computer-implemented method, an invocation request sent by an initiator is received by a blockchain node in a blockchain network. The invocation request is associated with invocation of a smart contract in the blockchain network. The smart contract includes contract code, data, and pre-update metadata. A pre-update data structure described by the pre-update metadata is parsed by the blockchain node and by execution of the contract code. The pre-update data structure is associated with the data comprised in the smart contract. Following parsing of the pre-update data structure, the pre-update data structure is represented by the blockchain node using a computer programming language. The pre-update data structure specified by the computer programming language is sent by the blockchain node to the initiator.

First claim

Opening claim text (preview).

What is claimed is: 1. A computer-implemented method, comprising: receiving, by a blockchain node in a blockchain network, and from an initiator having access to the blockchain network, an invocation request associated with invocation of a smart contract associated with the blockchain network, wherein the smart contract comprises contract code, contract data, and first metadata, and the first metadata is not part of the contract data; in response to receiving the invocation request, parsing, by executing the contract code by the blockchain node, the first metadata to obtain a first data structure defined by the first metadata, wherein the first metadata defines, using a definition description language, the first data structure, wherein the definition description language is not directly editable by the initiator, and wherein the first data structure comprises a structure of the contract data comprised in the smart contract; following parsing of the first metadata, converting, by executing the contract code by the blockchain node, the definition description language to a computer programming language that is directly editable by the initiator; representing, by the blockchain node, the first data structure using the computer programming language; sending, by the blockchain node and to the initiator, the first data structure specified by the computer programming language; receiving, by the blockchain node and from the initiator, a second invocation request for the smart contract; receiving, by the blockchain node and from the initiator, a second data structure that is based on the computer programming language, wherein the second data structure is associated with the contract data comprised in the smart contract; in response to receiving the second invocation request, parsing, by the blockchain node, the second data structure by executing the contract code; following parsing of the second data structure, representing, by the blockchain node, second metadata using the second data structure, wherein the second metadata is based on the definition description language; updating, by the blockchain node and as updated first metadata, the first metadata using the second metadata; and updating, by the blockchain node, the contract data based on a result from parsing the updated first metadata. 2. The computer-implemented method of claim 1 , wherein the first metadata is associated with description of the contract data comprised in the smart contract. 3. The computer-implemented method of claim 1 , wherein the computer programming language comprises a language of a predetermined type or a language of a type indicated in the invocation request. 4. The computer-implemented method of claim 1 , wherein the second metadata is associated with description of the contract data comprised in the smart contract. 5. The computer-implemented method of claim 1 , wherein the updating, by the blockchain node, the first metadata using the second metadata comprises: comparing the first data structure with the second data structure; and verifying that the second data structure is consistent with the first data structure. 6. The computer-implemented method of claim 5 , further comprising: in response to verifying that the second data structure is consistent with the first data structure, updating the first metadata using the second metadata. 7. A non-transitory, computer-readable medium storing one or more instructions executable by a computer system to perform operations comprising: receiving, by a blockchain node in a blockchain network, and from an initiator having access to the blockchain network, an invocation request associated with invocation of a smart contract associated with the blockchain network, wherein the smart contract comprises contract code, contract data, and first metadata, and the first metadata is not part of the contract data; in response to receiving the invocation request, parsing, by executing the contract code by the blockchain node, the first metadata to obtain a first data structure defined by the first metadata, wherein the first metadata defines, using a definition description language, the first data structure, wherein the definition description language is not directly editable by the initiator, and wherein the first data structure comprises a structure of the contract data comprised in the smart contract; following parsing of the first metadata, converting, by executing the contract code by the blockchain node, the definition description language to a computer programming language that is directly editable by the initiator; representing, by the blockchain node, the first data structure using the computer programming language; sending, by the blockchain node and to the initiator, the first data structure specified by the computer programming language; receiving, by the blockchain node and from the initiator, a second invocation request for the smart contract; receiving, by the blockchain node and from the initiator, a second data structure that is based on the computer programming language, wherein the second data structure is associated with the contract data comprised in the smart contract; in response to receiving the second invocation request, parsing, by the blockchain node, the second data structure by executing the contract code; following parsing of the second data structure, representing, by the blockchain node, second metadata using the second data structure, wherein the second metadata is based on the definition description language; updating, by the blockchain node and as updated first metadata, the first metadata using the second metadata; and updating, by the blockchain node, the contract data based on a result from parsing the updated first metadata. 8. The non-transitory, computer-readable medium of claim 7 , wherein the first metadata is associated with description of the contract data comprised in the smart contract. 9. The non-transitory, computer-readable medium of claim 7 , wherein the computer programming language comprises a language of a predetermined type or a language of a type indicated in the invocation request. 10. The non-transitory, computer-readable medium of claim 7 , wherein the second metadata is associated with description of the contract data comprised in the smart contract. 11. The non-transitory, computer-readable medium of claim 7 , wherein the updating, by the blockchain node, the first metadata using the second metadata comprises: comparing the first data structure with the second data structure; and verifying that the second data structure is consistent with the first data structure. 12. The non-transitory, computer-readable medium of claim 11 , wherein the operations further comprise: in response to verifying that the second data structure is consistent with the first data structure, updating the first metadata using the second metadata. 13. A computer-implemented system, comprising: one or more computers; and one or more computer memory devices interoperably coupled with the one or more computers and having tangible, non-transitory, machine-readable media storing one or more instructions that, when executed by the one or more computers, perform one or more operations comprising: receiving, by a blockchain node in a blockchain network, and from an initiator having access to the blockchain network, an invocation request associated with invocation of a smart contract associated with the blockchain network, wherein the smart contract comprises contract code, contract data, and first metadata, and the first metadata is not part of the contract data; in response to receiving the invo

Assignees

Inventors

Classifications

  • Updates performed during online database operations; commit processing · CPC title

  • Ensuring data consistency and integrity · CPC title

  • Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor · CPC title

  • G06F16/23Primary

    Updating · CPC title

  • G06Q40/04Primary

    Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US11775507B2 cover?
A computer-implemented method, medium, and system are disclosed. In one computer-implemented method, an invocation request sent by an initiator is received by a blockchain node in a blockchain network. The invocation request is associated with invocation of a smart contract in the blockchain network. The smart contract includes contract code, data, and pre-update metadata. A pre-update data str…
Who is the assignee on this patent?
Advanced New Technologies Co Ltd
What technology area does this patent fall under?
Primary CPC classification G06F16/2379. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Oct 03 2023 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 12 related publications on this page (citations in our corpus or others sharing the same primary CPC).