[Retracted] A Study on Competence of Teaching or Scientific Projects Research for Primary and Secondary School Teachers Based on Blockchain Technology
Table 2
Smart contract User attribute field table.
Name
Type
Description
Details
struct{
User attributes structure body, including name, work number, contact phone, belonging to the primary and secondary school, belonging to the major, identity type, login password, whether willing to register, whether through the audit and other data
string name;
string userNumber;
string e-mail;
bytes32 password;
uint phoneNumber;
string adrUni;
uint major;
uint regid;
bool registered;
bool passed;Type types;}
Id
uint
User registration number (automatically generated by the system)
Data
Mapping (address=>Details)
Correspondence between the user account address and the attribute structure
nameXadd
Mapping (string=> address)
Correspondence between user name and user account address
userNumXadd
Mapping (string=> address)
Correspondence between user work number and user account address
emailXadd
Mapping (string=> address)
Correspondence between user e-mail address and user account address
phoneNumberXadd
Mapping (uint=> address)
Correspondence between user contact number and user account address
uniXuser
Mapping (string=> string[])
Correspondence between schools and user work numbers