# US 2023/0316398 A1 · Trading system

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2023/0316398 A1
- Document ID: US20230316398A1
- Status: Published application
- Kind: A1
- Application number: 18/022,412
- Filed: 2021-09-17
- Published: 2023-10-05
- Earliest claimed: 2020-10-06
- Assignees: Datachain, Inc.
- Applicants: Datachain, Inc.
- Inventors: Jun KIMURA
- Web page: https://patentgrep.com/patent/US20230316398A1

## CPC

- G06Q 40/04: Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
- G06Q 20/06: Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme
- G06Q 20/389: {Keeping log of transactions for guaranteeing non-repudiation of a transaction}
- H04L 9/50: {using hash chains, e.g. blockchains or hash trees}
- H04L 2209/56: Financial cryptography, e.g. electronic payment or e-cash
- G06Q: INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A trading system for atomically executing a smart contract for trading between a first blockchain and a second blockchain includes a coordinator section and a first user section on the first blockchain and a second user section on the second blockchain. The coordinator section sends a first packet created based on a predetermined transaction in which a contract function is specified to the first and second user sections. When the contract function in the first packet received from the coordinator section is successful, the first user section saves a change operation in a state store associated therewith, acquires lock for a change target, and sends a second packet with a status set executable to the coordinator section. When the execution is failed, the first user section discards the change operation in the state store associated therewith and sends a third packet with the status set inexecutable to the coordinator section.

## Claims

### Claim 1

A trading system for atomically executing a smart contract related to trading between a first blockchain and a second blockchain, the system comprising:
a coordinator section and a first user section on the first blockchain; and
a second user section on the second blockchain,
wherein the coordinator section sends a first packet created based on a predetermined transaction in which a contract function is specified to the first and second user sections,
when the contract function in the first packet received from the coordinator section has been successfully executed, the first user section saves a change operation in a state store associated therewith, acquires lock for a change target, and sends a second packet with a status set executable to the coordinator section, whereas when the execution has failed, the first user section discards the change operation in the state store associated therewith and sends a third packet with the status set inexecutable to the coordinator section,
when the contract function in the first packet received from the coordinator section has been successfully executed, the second user section saves a change operation in a state store associated therewith, acquires lock for a change target, and sends a fourth packet with a status set executable to the coordinator section, whereas when the execution has failed, the second user section discards the change operation in the state store associated therewith and sends a fifth packet with the status set inexecutable to the coordinator section,
the coordinator section sends a sixth packet to the first and second user sections to issue a commit request when the status of each of the packets is executable based on results of examination of executability of the packets received from the first and second user sections, whereas the coordinator section sends a seventh packet to the first and second user sections to issue an abort request when the status of at least one of the packets is inexecutable, and
upon receipt of the sixth packet from the coordinator section, the first and second user sections apply the change operation saved in advance to the state store, delete the lock, and send an eighth packet to the coordinator section, whereas upon receipt of the seventh packet from the coordinator section, the first and second user sections delete the change operation saved in advance and the lock and send a ninth packet to the coordinator section.

### Claim 2 (depends on 1)

The trading system according to claim 1, further comprising a relayer that relays communication between the coordinator section and the first and second user sections.

### Claim 3 (depends on 1)

The trading system according to claim 1, wherein the first blockchain is a security chain, and the second blockchain is a settlement chain.

### Claim 4 (depends on 1)

The trading system according to claim 1, wherein the first blockchain is an inheritance chain, and the second blockchain is an asset chain.

### Claim 5

A trading system for atomically executing a smart contract related to trading between a first blockchain and a second blockchain, the system comprising:
a dual-role section that serves as both a coordinator section and a first user section provided on the first blockchain; and
a second user section on the second blockchain,
when a predetermined transaction in which a contract function is specified is achievable, the dual-role section stores a change operation in a state store associated therewith as the first user section, acquires lock for a change target, and sends a first packet to the second user section, whereas when the predetermined transaction is not achievable, the dual-role section stops operating,
the second user section executes the contract function based on the first packet received from the dual-role section, makes commit when the contract function has been successfully executed and sends a second packet with the status set executable to the dual-role section, whereas the second user section sends a third packet with the status set inexecutable to the dual-role section to issue an abort request when the execution failed, and
upon receipt of the second packet from the second user section, the dual-role section applies the change operation stored in advance as the first user section to the state store and deletes the lock, whereas upon receipt of the third packet from the second user section, the dual-role section discards the change operation saved in advance and deletes the lock as the first user section.

### Claim 6 (depends on 5)

The trading system according to claim 5, further comprising a relayer that relays communication between the dual-role section and the second user section.

### Claim 7 (depends on 5)

The trading system according to claim 5, wherein the first blockchain is one of a security chain and a settlement chain, and the second blockchain is another of the chains.

### Claim 8 (depends on 5)

The trading system according to claim 5, wherein the first blockchain is one of an inheritance chain and an asset chain, and the second blockchain is another of the chains.
