# US 2021/0287218 A1 · Event processing method, apparatus and electronic device based on blockchain technology

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

- Number: US 2021/0287218 A1
- Document ID: US20210287218A1
- Status: Published application
- Kind: A1
- Application number: 17/336,413
- Filed: 2021-06-02
- Published: 2021-09-16
- Earliest claimed: 2018-12-14
- Assignees: Advanced New Technologies Co., Ltd.
- Applicants: Advanced New Technologies Co., Ltd.
- Inventors: Li LIN
- Web page: https://patentgrep.com/patent/US20210287218A1

## CPC

- G06Q 20/405: {Establishing or using transaction specific rules}
- G06Q 20/0658: {e-cash managed locally}
- G06Q 20/389: {Keeping log of transactions for guaranteeing non-repudiation of a transaction}
- H04L 9/008: {involving homomorphic encryption}
- H04L 9/0637: {Modes of operation, e.g. cipher block chaining [CBC], electronic codebook [ECB] or Galois/counter mode [GCM]}
- H04L 9/3239: {involving non-keyed hash functions, e.g. modification detection codes [MDCs], MD5, SHA or RIPEMD}
- H04L 9/3247: {involving digital signatures}
- H04L 9/50: {using hash chains, e.g. blockchains or hash trees}
- G06Q 20/3674: {involving authentication}
- 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

One or more embodiments of the specification provide a method, apparatus, and non-transitory computer-readable storage medium for processing an event involving a plurality of users in a blockchain. The method may include: receiving descriptive information of a remittance event relaying a remittance from a remitter to a recipient through one or more relays; verifying the one or more encrypted fields in the descriptive information; submitting triggering information after the verification succeeds, wherein the submission of the triggering information triggers a smart contract in the blockchain to generate a mark for the remittance event; querying the smart contract in the blockchain; determining, based on the query, that the mark has been generated for each of the one or more relays; and updating a balance of a blockchain account based on a corresponding homomorphic commitment of the one or more homomorphic commitments.

## Claims

### Claim 1

A method for processing an event in a blockchain, the method comprising:
receiving, by a blockchain node, descriptive information of a remittance event relaying a remittance from a remitter to a recipient through one or more relays, wherein the descriptive information comprises one or more encrypted fields respectively corresponding to the one or more relays, each of the one or more encrypted fields comprises a homomorphic commitment, and the blockchain node corresponds to one of the one or more relays;
verifying, by the blockchain node, the one or more encrypted fields in the descriptive information;
submitting, by the blockchain node, triggering information after the verification succeeds, wherein the submission of the triggering information triggers a smart contract in the blockchain to generate a mark for the remittance event;
querying, by the blockchain node, the smart contract in the blockchain;
determining, by the blockchain node based on the query, that the mark has been generated for each of the one or more relays; and
based on the determination that the mark has been generated for each of the one or more relays, updating, by the blockchain node, a balance of a blockchain account corresponding to the blockchain node, wherein the updating comprises adjusting a homomorphic commitment of the balance based on a corresponding homomorphic commitment of the one or more homomorphic commitments.

### Claim 2 (depends on 1)

The method of claim 1, wherein each of the one or more encrypted fields further comprises an encrypted version of the remittance in a corresponding currency type, the one or more encrypted versions of the remittance being generated respectively based on public keys of the one or more relays.

### Claim 3 (depends on 2)

The method of claim 2, wherein the blockchain node includes a first public key of the public keys of the one or more relays, and the verifying the one or more encrypted fields in the descriptive information comprises:
for a first encrypted field of the one or more encrypted fields, verifying that the encrypted version of the remittance in the first encrypted field is generated based on the first public key of the blockchain node.

### Claim 4 (depends on 3)

The method of claim 3, wherein the verifying the one or more encrypted fields in the descriptive information further comprises:
decrypting, by the blockchain node using a private key, the encrypted version of the remittance in the first encrypted field that is generated based on the first public key of the blockchain node, to obtain a decrypted remittance; and
verifying the homomorphic commitment in the first encrypted field based on the decrypted remittance.

### Claim 5 (depends on 1)

The method of claim 1, wherein the descriptive information further comprises a plurality of exchange rates associated with a plurality of currency types.

### Claim 6 (depends on 1)

The method of claim 1, wherein the triggering information comprises a signature generated by the blockchain node based on a private key of the blockchain node.

### Claim 7 (depends on 1)

The method of claim 1, wherein the submitting the triggering information after the verification succeeds comprises:
storing the triggering information in a local waiting queue;
selecting, from the local waiting queue, one or more unsubmitted transactions comprising the triggering information; and
generating a blockchain transaction by merging the one or more unsubmitted transactions.

### Claim 8 (depends on 1)

The method of claim 1, wherein the triggering information further comprises a range proof proving that a current balance of the blockchain account corresponding to the blockchain node is greater than the remittance in a currency type corresponding to the blockchain node.

### Claim 9

A blockchain node of a blockchain, the blockchain node comprising a processor and a non-transitory computer-readable storage medium storing instructions executable by the processor to cause the blockchain node to perform operations comprising:
receiving descriptive information of a remittance event relaying a remittance from a remitter to a recipient through one or more relays, wherein the descriptive information comprises one or more encrypted fields respectively corresponding to the one or more relays, each of the one or more encrypted fields comprises a homomorphic commitment, and the blockchain node corresponds to one of the one or more relays;
verifying the one or more encrypted fields in the descriptive information;
submitting triggering information after the verification succeeds, wherein the submission of the triggering information triggers a smart contract in the blockchain to generate a mark for the remittance event;
querying the smart contract in the blockchain;
determining, based on the query, that the mark has been generated for each of the one or more relays; and
based on the determination that the mark has been generated for each of the one or more relays, updating a balance of a blockchain account corresponding to the blockchain node, wherein the updating comprises adjusting a homomorphic commitment of the balance based on a corresponding homomorphic commitment of the one or more homomorphic commitments.

### Claim 10 (depends on 9)

The blockchain node of claim 9, wherein each of the one or more encrypted fields further comprises an encrypted version of the remittance in a corresponding currency type, the one or more encrypted versions of the remittance being generated respectively based on public keys of the one or more relays.

### Claim 11 (depends on 10)

The blockchain node of claim 10, wherein the blockchain node includes a first public key of the public keys of the one or more relays, and the verifying the one or more encrypted fields in the descriptive information comprises:
for a first encrypted field of the one or more encrypted fields, verifying that the encrypted version of the remittance in the first encrypted field is generated based on the first public key of the blockchain node.

### Claim 12 (depends on 11)

The blockchain node of claim 11, wherein the verifying the one or more encrypted fields in the descriptive information further comprises:
decrypting, by the blockchain node using a private key, the encrypted version of the remittance in the first encrypted field that is generated based on the first public key of the blockchain node, to obtain a decrypted remittance; and
verifying the homomorphic commitment in the first encrypted field based on the decrypted remittance.

### Claim 13 (depends on 9)

The blockchain node of claim 9, wherein the descriptive information further comprises a plurality of exchange rates associated with a plurality of currency types.

### Claim 14 (depends on 9)

The blockchain node of claim 9, wherein the triggering information comprises a signature generated by the blockchain node based on a private key of the blockchain node.

### Claim 15 (depends on 9)

The blockchain node of claim 9, wherein the submitting the triggering information after the verification succeeds comprises:
storing the triggering information in a local waiting queue;
selecting, from the local waiting queue, one or more unsubmitted transactions comprising the triggering information; and
generating a blockchain transaction by merging the one or more unsubmitted transactions.

### Claim 16

A non-transitory computer-readable storage medium, configured with instructions executable by a processor of a blockchain node to cause the blockchain node to perform operations for processing an event involving a plurality of users on a blockchain, the operations comprising:
receiving descriptive information of a remittance event relaying a remittance from a remitter to a recipient through one or more relays, wherein the descriptive information comprises one or more encrypted fields respectively corresponding to the one or more relays, each of the one or more encrypted fields comprises a homomorphic commitment, and the blockchain node corresponds to one of the one or more relays;
verifying the one or more encrypted fields in the descriptive information;
submitting triggering information after the verification succeeds, wherein the submission of the triggering information triggers a smart contract in the blockchain to generate a mark for the remittance event;
querying the smart contract in the blockchain;
determining, based on the query, that the mark has been generated for each of the one or more relays; and
based on the determination that the mark has been generated for each of the one or more relays, updating a balance of a blockchain account corresponding to the blockchain node, wherein the updating comprises adjusting a homomorphic commitment of the balance based on a corresponding homomorphic commitment of the one or more homomorphic commitments.

### Claim 17 (depends on 16)

The non-transitory computer-readable storage medium of claim 16, wherein each of the one or more encrypted fields further comprises an encrypted version of the remittance in a corresponding currency type, the one or more encrypted versions of the remittance being generated respectively based on public keys of the one or more relays.

### Claim 18 (depends on 17)

The non-transitory computer-readable storage medium of claim 17, wherein the blockchain node includes a first public key of the public keys of the one or more relays, and the verifying the one or more encrypted fields in the descriptive information comprises:
for a first encrypted field of the one or more encrypted fields, verifying that the encrypted version of the remittance in the first encrypted field is generated based on the first public key of the blockchain node.

### Claim 19 (depends on 18)

The non-transitory computer-readable storage medium of claim 18, wherein the verifying the one or more encrypted fields in the descriptive information further comprises:
decrypting, by the blockchain node using a private key, the encrypted version of the remittance in the first encrypted field that is generated based on the first public key of the blockchain node, to obtain a decrypted remittance; and
verifying the homomorphic commitment in the first encrypted field based on the decrypted remittance.

### Claim 20 (depends on 16)

The non-transitory computer-readable storage medium of claim 16, wherein the submitting the triggering information after the verification succeeds comprises:
storing the triggering information in a local waiting queue;
selecting, from the local waiting queue, one or more unsubmitted transactions comprising the triggering information; and
generating a blockchain transaction by merging the one or more unsubmitted transactions.
