# US 2019/0244294 A1 · Function-as-a-service (faas) platform in blockchain networks

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

- Number: US 2019/0244294 A1
- Document ID: US20190244294A1
- Status: Published application
- Kind: A1
- Application number: 16/390,088
- Filed: 2019-04-22
- Published: 2019-08-08
- Earliest claimed: 2018-11-27
- Assignees: Alibaba Group Holding Limited
- Applicants: Alibaba Group Holding Limited
- Inventors: Kailai Shao; Xuming Lu
- Web page: https://patentgrep.com/patent/US20190244294A1

## CPC

- G06F 8/70: Software maintenance or management
- G06F 9/547: {Remote procedure calls [RPC]; Web services}
- G06F 9/46: Multiprogramming arrangements
- H04L 9/3239: {involving non-keyed hash functions, e.g. modification detection codes [MDCs], MD5, SHA or RIPEMD}
- G06F 2201/88: Monitoring involving counting
- G06Q 2220/00: Business processing using cryptography
- H04L 9/50: {using hash chains, e.g. blockchains or hash trees}
- H04L 2209/56: Financial cryptography, e.g. electronic payment or e-cash
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- 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

Implementations of the present specification include receiving, from a smart contract, and by a function controller executing within the blockchain network, a function call to execute a function, the function call including data for execution of the function, transmitting, by the function controller, the data of the function call to a function component, the function component executing the function based on the data of the function call, receiving, by the function controller, a function result from the function component, and providing, by the function controller, the function result to the smart contract.

## Claims

### Claim 1

A computer-implemented method for providing a functions-as-a-service (FaaS) platform within a blockchain network, the method being executed by one or more processors, and comprising:
receiving, from a smart contract, and by a first function controller executing within the blockchain network, a first function call to execute a first function, the first function call comprising data for execution of the first function;
transmitting, by the first function controller, the data of the first function call to a first function component, the first function component executing the first function based on the data of the first function call;
receiving, by the first function controller, a first function result from the first function component; and
providing, by the first function controller, the first function result to the smart contract.

### Claim 2 (depends on 1)

The method of claim 1, wherein the first function call further comprises an address of the first function and a version identifier of the first function.

### Claim 3 (depends on 2)

The method of claim 2, wherein the version identifier is null indicating that a latest version of the first function is to be executed.

### Claim 4 (depends on 1)

The method of claim 1, further comprising updating, by the first function controller, statistics associated with a version of the first function that was executed in response to the first function call.

### Claim 5 (depends on 4)

The method of claim 4, wherein the statistics indicate a number of times each version of a first function has been executed.

### Claim 6 (depends on 1)

The method of claim 1, further comprising:
receiving, from a smart contract, and by a second function controller executing within the blockchain network, a second function call to execute a second function, the second function call comprising data for execution of the second function, wherein the second function is different from the first function, and wherein the second function controller is different from the first function controller;
transmitting, by the second function controller, the data of the second function call to a second function component, the second function component executing the second function based on the data of the second function call, wherein the second function component is different from the first function component;
receiving, by the second function controller, a second function result from the second function component; and
providing, by the second function controller, the second function result to the smart contract.

### Claim 7 (depends on 6)

The method of claim 6, wherein the first function and the second function are provided by different providers.

### Claim 8 (depends on 1)

The method of claim 1, wherein the smart contract executes a transaction at least partially based on the first function result, the transaction being recorded within a blockchain of the blockchain network.

### Claim 9

One or more computer-readable storage media encoded with instructions that, when executed by one or more computers, cause the one or more computers to perform operations for providing a functions-as-a-service (FaaS) platform within a blockchain network, the operations comprising:
receiving, from a smart contract, and by a first function controller executing within the blockchain network, a first function call to execute a first function, the first function call comprising data for execution of the first function;
transmitting, by the first function controller, the data of the first function call to a first function component, the first function component executing the first function based on the data of the first function call;
receiving, by the first function controller, a first function result from the first function component; and
providing, by the first function controller, the first function result to the smart contract.

### Claim 10 (depends on 9)

The one or more computer-readable storage media of claim 9, wherein the first function call further comprises an address of the first function and a version identifier of the first function.

### Claim 11 (depends on 10)

The one or more computer-readable storage media of claim 10, wherein the version identifier is null indicating that a latest version of the first function is to be executed.

### Claim 12 (depends on 9)

The one or more computer-readable storage media of claim 9, wherein operations further comprise updating, by the first function controller, statistics associated with a version of the first function that was executed in response to the first function call.

### Claim 13 (depends on 12)

The one or more computer-readable storage media of claim 12, wherein the statistics indicate a number of times each version of a first function has been executed.

### Claim 14 (depends on 9)

The one or more computer-readable storage media of claim 9, wherein operations further comprise:
receiving, from a smart contract, and by a second function controller executing within the blockchain network, a second function call to execute a second function, the second function call comprising data for execution of the second function, wherein the second function is different from the first function, and wherein the second function controller is different from the first function controller;
transmitting, by the second function controller, the data of the second function call to a second function component, the second function component executing the second function based on the data of the second function call, wherein the second function component is different from the first function component;
receiving, by the second function controller, a second function result from the second function component; and
providing, by the second function controller, the second function result to the smart contract.

### Claim 15 (depends on 14)

The one or more computer-readable storage media of claim 14, wherein the first function and the second function are provided by different providers.

### Claim 16 (depends on 9)

The one or more computer-readable storage media of claim 9, wherein the smart contract executes a transaction at least partially based on the first function result, the transaction being recorded within a blockchain of the blockchain network.

### Claim 17

A system, comprising:
one or more computers; and
one or more computer-readable memories coupled to the one or more computers and configured with instructions executable by the one or more computers to perform operations for providing a functions-as-a-service (FaaS) platform within a blockchain network, the operations comprising:
receiving, from a smart contract, and by a first function controller executing within the blockchain network, a first function call to execute a first function, the first function call comprising data for execution of the first function;
transmitting, by the first function controller, the data of the first function call to a first function component, the first function component executing the first function based on the data of the first function call;
receiving, by the first function controller, a first function result from the first function component; and
providing, by the first function controller, the first function result to the smart contract.

### Claim 18 (depends on 17)

The system of claim 17, wherein the first function call further comprises an address of the first function and a version identifier of the first function.

### Claim 19 (depends on 18)

The system of claim 18, wherein the version identifier is null indicating that a latest version of the first function is to be executed.

### Claim 20 (depends on 17)

The system of claim 17, wherein operations further comprise updating, by the first function controller, statistics associated with a version of the first function that was executed in response to the first function call.

### Claim 21 (depends on 20)

The system of claim 20, wherein the statistics indicate a number of times each version of a first function has been executed.

### Claim 22 (depends on 17)

The system of claim 17, wherein operations further comprise:
receiving, from a smart contract, and by a second function controller executing within the blockchain network, a second function call to execute a second function, the second function call comprising data for execution of the second function, wherein the second function is different from the first function, and wherein the second function controller is different from the first function controller;
transmitting, by the second function controller, the data of the second function call to a second function component, the second function component executing the second function based on the data of the second function call, wherein the second function component is different from the first function component;
receiving, by the second function controller, a second function result from the second function component; and
providing, by the second function controller, the second function result to the smart contract.

### Claim 23 (depends on 22)

The system of claim 22, wherein the first function and the second function are provided by different providers.

### Claim 24 (depends on 17)

The system of claim 17, wherein the smart contract executes a transaction at least partially based on the first function result, the transaction being recorded within a blockchain of the blockchain network.
