Skip to main content
. 2020 Feb 4;22(2):175. doi: 10.3390/e22020175
Algorithm 1 The blockchain-based image encryption process.
  • Require:BlockchainWebService

  • Ensure:genesisblock

  • while T has not expired do

  •   if node Ni is authenticated == true then

  •    if request Ri matched == true then

  •     if Ri is identified as processed request == false then

  •      process for the response to Ci

  •      Hash(image)

  •      Update chain

  •     else

  •      Response to Ni that the Ri is not valid

  •     end if

  •    else

  •     Deny the Request

  •    end if

  •    Validate and Add block into chain

  •   end if

  • end while