# US 2021/0243193 A1 · Systems, methods, and apparatuses for implementing consensus on read via a consensus on write smart contract trigger for a distributed ledger technology (dlt) platform

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

- Number: US 2021/0243193 A1
- Document ID: US20210243193A1
- Status: Published application
- Kind: A1
- Application number: 16/778,628
- Filed: 2020-01-31
- Published: 2021-08-05
- Earliest claimed: 2020-01-31
- Assignees: salesforce.com, inc.
- Applicants: salesforce.com, inc.
- Inventors: Prithvi Krishnan Padmanabhan
- Web page: https://patentgrep.com/patent/US20210243193A1

## CPC

- H04L 63/102: {Entity profiles}
- G06F 16/248: Presentation of query results
- G06F 16/252: {between a Database Management System and a front-end application}
- G06F 16/28: Databases characterised by their database models, e.g. relational or object models
- G06Q 10/10: Office automation; Time management
- H04L 63/08: {for authentication of entities (cryptographic mechanisms or cryptographic arrangements for entity authentication H04L9/32)}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- 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

## Abstract

Described herein are means for implementing consensus on read via a consensus on write smart contract trigger for a Distributed Ledger Technology (DLT) platform in conjunction with a cloud based computing environment. According to a particular embodiment, there is a system having at least a processor and a memory therein, wherein the system is configurable with means for: operating a blockchain interface to a blockchain on behalf of a plurality of customers of the host organization, in which each of the plurality of customers operate as a participating node on the blockchain; receiving a read request for data stored on the blockchain from a user authenticated with the host organization; issuing a write transaction to the blockchain specifying both (i) the user and (ii) the read request; in which the write transaction automatically triggers execution of a smart contract to enforce access controls for the user; attaining consensus from the participating nodes of the blockchain for the write transaction at the blockchain pursuant to the access controls for the user being validated by the smart contract as allowing the user to read the data identified by the read request, in which the write transaction is added to the blockchain with an indication the user has permission to read the data identified by the read request; retrieving the data from the blockchain identified by the read request; throwing an event indicating the user has permission to read the data identified by the read request and returning as part of the thrown event, the data retrieved from the blockchain; and returning the data retrieved from the blockchain to the user in fulfillment of the read request. Other related embodiments are disclosed.

## Claims

### Claim 1

A method performed by a system of a host organization, wherein the method comprises:
operating a blockchain interface to a blockchain on behalf of a plurality of customers of the host organization, wherein each of the plurality of customers operate as a participating node on the blockchain;
receiving a read request for data stored on the blockchain from a user authenticated with the host organization;
issuing a write transaction to the blockchain specifying both (i) the user and (ii) the read request;
wherein the write transaction automatically triggers execution of a smart contract to enforce access controls for the user;
attaining consensus from the participating nodes of the blockchain for the write transaction at the blockchain pursuant to the access controls for the user being validated by the smart contract as allowing the user to read the data identified by the read request, wherein the write transaction is added to the blockchain with an indication the user has permission to read the data identified by the read request;
retrieving the data from the blockchain identified by the read request;
throwing an event indicating the user has permission to read the data identified by the read request and returning as part of the thrown event, the data retrieved from the blockchain; and
returning the data retrieved from the blockchain to the user in fulfillment of the read request.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
registering an event listener of the host organization with the blockchain;
catching the thrown event at the event listener;
extracting the data retrieved from the blockchain from the thrown event; and
wherein returning the data retrieved from the blockchain to the user comprises the event listener returning the data retrieved to the user as extracted from the thrown event.

### Claim 3 (depends on 1)

The method of claim 1, further comprising:
periodically polling the blockchain to determine whether consensus has been attained for the write transaction indicating the user has permission to read the data identified by the read request;
wherein retrieving the data from the blockchain identified by the read request comprises retrieving the data responsive to the periodic polling of the blockchain determining that consensus has been attained for the write transaction; and
wherein returning the data retrieved from the blockchain to the user in fulfillment of the read request is performed responsive to determining that consensus has been attained for the write transaction.

### Claim 4 (depends on 1)

The method of claim 1, further comprising:
receiving a second read request for other data stored on the blockchain from the user authenticated with the host organization;
issuing a second write transaction to the blockchain specifying both (i) the user and (ii) the read second read request;
wherein the second write transaction automatically triggers execution of the smart contract to enforce the access controls for the user; and
wherein consensus fails for the second write transaction.

### Claim 5 (depends on 4)

The method of claim 4:
wherein the second write transaction is prevented from being written to the blockchain; and
wherein executing the smart contract throws a second event indicating the user lacks permission to read the other data identified by the read request.

### Claim 6 (depends on 1)

The method of claim 1, wherein throwing the event comprises the smart contract executing on the blockchain throwing the event indicating either a denial of the read request based on the user lacking permission to read the data or an approval of the read request based the user having permission to read the data identified by the read request pursuant to access controls.

### Claim 7 (depends on 1)

The method of claim 1, further comprising:
executing a second smart contract on the blockchain;
wherein the second smart contract reads the write transaction having previously been added to the blockchain with the indication the user has permission to read the data identified by the read request; and
wherein the second smart contract executing on the blockchain throws the event indicating the user has permission to read the data identified by the read request and returning as part of the thrown event, the data retrieved from the blockchain.

### Claim 8 (depends on 1)

The method of claim 1:
wherein an event listener executing at the host organization subscribes to write events on the blockchain;
wherein the event listener receives a notification from the blockchain upon consensus being attained for the write transaction and the write transaction having been successfully added to the blockchain with the indication that the user has permission to read the data identified by the read request from the blockchain; and
wherein throwing the event comprises the event listener throwing the event indicating the user has permission to read the data identified by the read request and returning as part of the thrown event, the data retrieved from the blockchain.

### Claim 9 (depends on 1)

The method of claim 1:
wherein the blockchain provides access controls for write transactions to the blockchain; and
wherein the blockchain does not provide access controls for read transactions from the blockchain.

### Claim 10 (depends on 1)

The method of claim 1:
wherein an implementing protocol for the blockchain provides consensus on write;
wherein any write transaction on the blockchain is subjected to consensus by the participating nodes on the blockchain; and
wherein the implementing protocol for the blockchain does not require consensus for reads from the blockchain.

### Claim 11 (depends on 1)

The method of claim 1, further comprising:
associating the smart contract with a transaction type corresponding to the write transaction for the blockchain;
wherein the smart contract implements a consensus on read validation scheme triggered by the write transaction matching the transaction type associated with the smart contract;
wherein the smart contract reads metadata from the blockchain defining the access controls for the user enforces the access controls for read requests arriving at the blockchain via write transactions to the blockchain.

### Claim 12 (depends on 1)

The method of claim 1, further comprising:
receiving input from a GUI defining access controls for one or more users of the host organization;
generating metadata representing the defined access controls; and
transacting the metadata representing the defined access controls onto the blockchain; and
wherein the smart contract reads the metadata representing the defined access controls from the blockchain at run-time to enforce the access controls for the user's read request.

### Claim 13

Non-transitory computer readable storage media having instructions stored thereon that, when executed by a system of a host organization having at least a processor and a memory therein, the instructions cause the system to perform the following operations:
operating a blockchain interface to a blockchain on behalf of a plurality of customers of the host organization, wherein each of the plurality of customers operate as a participating node on the blockchain;
receiving a read request for data stored on the blockchain from a user authenticated with the host organization;
issuing a write transaction to the blockchain specifying both (i) the user and (ii) the read request;
wherein the write transaction automatically triggers execution of a smart contract to enforce access controls for the user;
attaining consensus from the participating nodes of the blockchain for the write transaction at the blockchain pursuant to the access controls for the user being validated by the smart contract as allowing the user to read the data identified by the read request, wherein the write transaction is added to the blockchain with an indication the user has permission to read the data identified by the read request;
retrieving the data from the blockchain identified by the read request;
throwing an event indicating the user has permission to read the data identified by the read request and returning as part of the thrown event, the data retrieved from the blockchain; and
returning the data retrieved from the blockchain to the user in fulfillment of the read request.

### Claim 14 (depends on 13)

The non-transitory computer readable storage media of claim 13, wherein the instruction, when executed by the processor, cause the system to perform operations further including:
registering an event listener of the host organization with the blockchain;
catching the thrown event at the event listener;
extracting the data retrieved from the blockchain from the thrown event; and
wherein returning the data retrieved from the blockchain to the user comprises the event listener returning the data retrieved to the user as extracted from the thrown event.

### Claim 15 (depends on 13)

The non-transitory computer readable storage media of claim 13, wherein the instruction, when executed by the processor, cause the system to perform operations further including:
periodically polling the blockchain to determine whether consensus has been attained for the write transaction indicating the user has permission to read the data identified by the read request;
wherein retrieving the data from the blockchain identified by the read request comprises retrieving the data responsive to the periodic polling of the blockchain determining that consensus has been attained for the write transaction; and
wherein returning the data retrieved from the blockchain to the user in fulfillment of the read request is performed responsive to determining that consensus has been attained for the write transaction.

### Claim 16 (depends on 12)

The non-transitory computer readable storage media of claim 12:
wherein the second write transaction is prevented from being written to the blockchain; and
wherein executing the smart contract throws a second event indicating the user lacks permission to read the other data identified by the read request.

### Claim 17 (depends on 12)

The non-transitory computer readable storage media of claim 12:
wherein an event listener executing at the host organization subscribes to write events on the blockchain;
wherein the event listener receives a notification from the blockchain upon consensus being attained for the write transaction and the write transaction having been successfully added to the blockchain with the indication that the user has permission to read the data identified by the read request from the blockchain; and
wherein throwing the event comprises the event listener throwing the event indicating the user has permission to read the data identified by the read request and returning as part of the thrown event, the data retrieved from the blockchain.

### Claim 18

A system to execute at a host organization, wherein the system comprises:
a memory to store instructions;
a processor to execute instructions;
wherein the system is configurable to execute the instructions via the processor to carry out operations including:
operating a blockchain interface to a blockchain on behalf of a plurality of customers of the host organization, wherein each of the plurality of customers operate as a participating node on the blockchain;
receiving a read request for data stored on the blockchain from a user authenticated with the host organization;
issuing a write transaction to the blockchain specifying both (i) the user and (ii) the read request;
wherein the write transaction automatically triggers execution of a smart contract to enforce access controls for the user;
attaining consensus from the participating nodes of the blockchain for the write transaction at the blockchain pursuant to the access controls for the user being validated by the smart contract as allowing the user to read the data identified by the read request, wherein the write transaction is added to the blockchain with an indication the user has permission to read the data identified by the read request;
retrieving the data from the blockchain identified by the read request;
throwing an event indicating the user has permission to read the data identified by the read request and returning as part of the thrown event, the data retrieved from the blockchain; and
returning the data retrieved from the blockchain to the user in fulfillment of the read request.

### Claim 19 (depends on 18)

The system of claim 18, wherein the system is further configured to:
register an event listener of the host organization with the blockchain;
catch the thrown event at the event listener;
extract the data retrieved from the blockchain from the thrown event; and
wherein returning the data retrieved from the blockchain to the user comprises the event listener to return the data retrieved to the user as extracted from the thrown event.

### Claim 20 (depends on 18)

The system of claim 18, wherein the system is further configured to:
periodically poll the blockchain to determine whether consensus has been attained for the write transaction indicating the user has permission to read the data identified by the read request;
wherein retrieving the data from the blockchain identified by the read request comprises the system to retrieve the data responsive to the periodic polling of the blockchain determining that consensus has been attained for the write transaction; and
wherein returning the data retrieved from the blockchain to the user in fulfillment of the read request is performed responsive to determining that consensus has been attained for the write transaction.
