基于联盟链的电力数据资产交易平台
|
郭仪,于雷,张瀚文,颜拥,孙毅
|
Trading Platform of Power Data Asset Based on Consortium Blockchain
|
GUO Yi,YU Lei,ZHANG Hanwen,YAN Yong,SUN Yi
|
|
表4 Register 函数
|
Table 4 Register function
|
|
函数1 | REGISTER | INPUT | string InfoHash | OUTPUT | 身份信息唯一性标识int ID | CODE | ID = generate(msg.sender, InfoHash, now); userInfo = UserInfos[ID]; userInfo.infoHash = InfoHash; userInfo.owner = msg.sender; userInfo.signers = RandomSignerList(); userInfo.status = waiting; userInfo.statusbits = 0x0; |
|
|
|