CPC G06F 21/54 (2013.01) [G06Q 20/3678 (2013.01); G06Q 20/405 (2013.01); H04L 9/0637 (2013.01)] | 20 Claims |
1. A computer-implemented method comprising:
detecting a function call made by a method of a smart contract on a blockchain by identifying an entrance or exit of the function call in a kernel for smart contract execution on the blockchain; and
in response to detecting the function call:
adding the function call to a function call stack for the smart contract,
accessing a set of function based access control rules from one or more blocks of the blockchain,
checking the function call stack against the set of function based access control rules that each define a prohibited sequence of function calls, and
blocking execution of the function call based on determining the function call stack includes a sequence of function calls that matches a first prohibited sequence of function calls defined by a first function based access control rule of the set of function based access control rules.
|