Research Article
Research on Agricultural Product Traceability Technology (Economic Value) Based on Information Supervision and Cloud Computing
| | The input: Supply Chain Contract address base_addr, User group id user_group, user ID user_id, user role user_name, contract publisher owner | | | The output: The user registration is complete or failed | | | Require: the registered user_id is not in use | | | if msg.sender = = owner then | | | The user group id is not occupied | | | if user_group[msg.sender].occupied = = 0 then | | | user_group[msg.sender].occupied = = 1 | | | Return Completes the user group registration | | | end if | | | else | | | The user group number is required to be registered | | | user_group[user_group].add(user_id) | | | user.id = user_id | | | user.name = user_name | | | end if | | | final | | | return: The user registration is complete |
|