Algorithm 1: ProofRecord function of the content |
Input: IPFSpc Output: OwnerAddr,IsExist |
1 function ProofRecord (IPFSpc) 2 Query the global mapping IpfsToAddr to find if IPFSpc already exists 3 if IpfsToAddr [IPFSpc] ≠ 0 then 4 The IPFSpc already exists 5 return IpfsToAddr[IPFSpc], false 6 else 7 Let IpfsToAddr[IPFSpc] ← OwnerAddr 8 return OwnerAddr, true 9 end if 10 end function |