A computer-implemented method performed by a manager node for implementing a protocol for distribution of computational tasks among a plurality of worker nodes in a blockchain network, the method comprising: detecting that a plurality of blockchain transactions from the plurality of worker nodes satisfy a condition such that a membership group of the plurality of nodes is formed, wherein the plurality of blockchain transactions comprises at least a first transaction from a first worker node of the plurality of worker nodes, the first transaction comprising a first locking script comprising a first public key, R i and a second public key T i , wherein the first public key is based on a first set of elements of a hierarchical data structure , wherein the first set of elements is chosen by the first worker node from a plurality of available elements; generating a third public key based on a second set of elements of the hierarchical data structure, wherein the second set of elements is chosen by the manager node from the plurality of available elements; generating a second transaction comprising a second locking script based at least in part on the first public key, the second public key, and the third public key, wherein the second transaction includes a computational task to be performed by a worker node of the membership group; and contingent upon the first set of elements chosen by the first worker node matching the second set of elements chosen by the manager node, causing the first worker node of the membership group to execute the computational task by unlocking the second locking script of the second transaction, wherein the first worker node has access to a first private key k i and a second private key y i , wherein the first private key and the first public key form a first key pair and the second private key and the second public key form a second key pair. detecting that a plurality of blockchain transactions from the plurality of worker nodes satisfy a condition such that a membership group of the plurality of nodes is formed, wherein the plurality of blockchain transactions comprises at least a first transaction from a first worker node of the plurality of worker nodes, the first transaction comprising a first locking script comprising a first public key, R i and a second public key T i , wherein the first public key is based on a first set of elements of a hierarchical data structure , wherein the first set of elements is chosen by the first worker node from a plurality of available elements; generating a third public key based on a second set of elements of the hierarchical data structure, wherein the second set of elements is chosen by the manager node from the plurality of available elements; generating a second transaction comprising a second locking script based at least in part on the first public key, the second public key, and the third public key, wherein the second transaction includes a computational task to be performed by a worker node of the membership group; and contingent upon the first set of elements chosen by the first worker node matching the second set of elements chosen by the manager node, causing the first worker node of the membership group to execute the computational task by unlocking the second locking script of the second transaction, wherein the first worker node has access to a first private key k i and a second private key y i , wherein the first private key and the first public key form a first key pair and the second private key and the second public key form a second key pair. <EOS>