Research Article

DIIA: Blockchain-Based Decentralized Infrastructure for Internet Accountability

Algorithm 2

Pseudocode to verify the validity of the public parameters queried from TIPchain.
Input: , the query result returned from Algorithm 1.
Output:. (The public parameters is valid or not.)
(1)
(2)ifor IsExpired ()true then
(3)return false
(4)
(5)if IsWithin ()false then
(6)return false
(7). get ()
(8)if Hash () = then
(9)if VerifyProof ()true then
(10)  return true
(11)else return false
(12)else return false