Research Article

Blockchain-Based Trust Auction for Dynamic Virtual Machine Provisioning and Allocation in Clouds

Algorithm 3

Resource supply.
Input: Applicant A address, applicant public and private keys(,), the CFP public and private keys(), VM instances permission information, block.
Output: Applicant A obtains virtual machine permission information
1 functionResourceSupply (,,,)
2  matchAC
3  if (= = true) then
4= enc (,)
5 return
6
7 block ← Add ()
8 end function
9 functionGetInfo ()
10,GetBlockInfo ()
11 validate (,)
12← dec (,)