Research Article
Blockchain-Based Secure Outsourcing of Polynomial Multiplication and Its Application in Fully Homomorphic Encryption
| (1) | function Registration(p, role) | | (2) | if the balance of addr[p] ≥ the threshold then | | (3) | if role = user then | | (4) | put addr[p] into User | | (5) | else | | (6) | put addr[p] into Node | | (7) | end if | | (8) | Rep[p] ⟵ Default credit value; state ⟵ true | | (9) | else | | (10) | state ⟵ false | | (11) | end if | | (12) | return false | | (13) | end function |
|