Research Article

[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.

NameTypeDescription

Detailsstruct{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;}

IduintUser registration number (automatically generated by the system)
DataMapping (address=>Details)Correspondence between the user account address and the attribute structure
nameXaddMapping (string=> address)Correspondence between user name and user account address
userNumXaddMapping (string=> address)Correspondence between user work number and user account address
emailXaddMapping (string=> address)Correspondence between user e-mail address and user account address
phoneNumberXaddMapping (uint=> address)Correspondence between user contact number and user account address
uniXuserMapping (string=> string[])Correspondence between schools and user work numbers