FEIP15V3_CAPP(zh-CN)
-
FEIP15: CAPP Version: 3 Language: zh-CN Author: C_armX Status: draft Created date: 2021-06-12 Last modified date:2021-06-12 File hash: "" TXid:
https://shimo.im/docs/ioW4mXI2kTUJo48d/read
FEIP15V3_CAPP(zh-CN)
Contents
General consensus of FEIP type protocols
consensus specific to this protocol
Introduction
Protocol type: FEIP Serial number: 15 Protocol name: CAPP Version: 3 Description : 在链上发布和管理密码应用(Capp)。 Author: C_armX, Deisler-JJ_Sboy,master_wang Language: en-US Tags: FEIP, capp Previous version hash:""
General consensus of FEIP type protocols
-
Write important data in OP_RETURN for public witness under FEIP type protocols
-
The max size of OP_RETURN : 4096 bytes
-
Format : compacted json
-
Encoding : utf-8
Consensus specific to this protocol
-
本协议用于在链上发布和管理密码应用(Capp)。
-
密码应用(Capp):是以非对称密码为身份或账户系统的应用。
-
AID(Application Identity):是在链上声明自己为Capp的cid,即Capp的身份。aid为cid的子集。
-
一个cid同时只能代表一个capp,申请代表新的capp必须终止之前已经发布的capp。
流程
-
注册cid:为准备发布的capp注册一个专用的cid。
-
发布capp:在链上发布capp,参见[发布capp](#发布capp)
-
更新capp:在链上更新已发布的capp信息,参见[更新capp](#更新capp)
-
终止capp:在链上注销capp,宣布终止该capp终止运行和服务,参见[终止capp](#终止capp)
-
评价capp:aid是cid的一种,任何人可以按《FEIP16_Evaluation》协议对该adi进行评价。
-
版本更新:capp的版本更新等重要正式信息,由相应aid按照《FEIP8_Declearation》发布链上声明。
发布capp
由aid发送一笔交易,输出地址为本aid地址
op_return内容为:field number field name type length content required 1 type String 4 Fixed: "FEIP"<br>Case insensitive Y 2 sn int 2 Serial number<br>Fixed: 15 Y 3 ver int 1 Fixed: 1 Y 4 name String 4 Fixed: "CAPP"<br>Case insensitive N 5 hash hex 32 Sha256 value of this protocol file N 6 data.op string 5 Operation: "start" Y 7 data.name string 1~64 The english name of the capp Y 8 data.otherNames string array 0~512 Other names, especially names in different languages N 9 data.desc string array 0~512 Description of this capp N 10 data.creators string array 0~512 The main creators of the capp N 11 data.loca string 0~512 URL,the location to download the capp N 12 data.prot string array 0~512 The protocols followed by this capp N 13 data.serv string array 0~512 The services used by this capp N Example of starting a capp
{ "type": "FEIP", "sn": 15, "ver": 3, "name": "CAPP", "hash": "", "data":{ "op":"start", "name": "Sign Cash", "desc": "Save the private key offline and provide offline signature,and provide other functions.", "creators": ["Free_Cash","CY_vpAv"], "loca": "https://sign.cash/download/cryptosigner", "prot":["b1674191a88ec5cdd733e4240a81803105dc412d6c6708d53ab94fc248f4f553","37406e3e45750efccdb060ca2e748f9f026aebb7dadade8e8747340f380edaca"], "serv":["c86e039f466434862585e38c0fd1a11f47dcc07839647a452424503b30f81b39","403d3146bdd1edbd8d71b01ffbad75972e07617971acb767a9bae150d4154dc25"] } }
更新capp
更新时之前发布或更新的内容将全部被覆盖。
field number field name type length content required 1 type String 4 Fixed: "FEIP"<br>Case insensitive Y 2 sn int 2 Serial number<br>Fixed: 15 Y 3 ver int 1 Fixed: 1 Y 4 name String 4 Fixed: "CAPP"<br>Case insensitive N 5 hash hex 32 Sha256 value of this protocol file N 6 data.op string 6 Operation: "update" Y 7 data.name string 1~64 The english name of the capp Y 8 data.otherNames string array 0~512 Other names, especially names in different languages N 9 data.desc string array 0~512 Description of this capp N 10 data.creators string array 0~512 The main creators of the capp N 11 data.loca string 0~512 URL,the location to download the capp N 12 data.prot string array 0~1024 The protocols followed by this capp N Example of updating a capp
{ "type": "FEIP", "sn": 15, "ver": 3, "name": "CAPP", "hash": "", "data":{ "op":"update", "name": "Crypto Signer", "desc": "Save the private key offline and provide offline signature.", "creators": ["Free_Cash","CY_vpAv"], "loca": "https://sign.cash", "prot":["b1674191a88ec5cdd733e4240a81803105dc412d6c6708d53ab94fc248f4f553","37406e3e45750efccdb060ca2e748f9f026aebb7dadade8e8747340f380edaca"] } }
终止capp
更新时之前发布或更新的内容将全部被覆盖。
field number field name type length content required 1 type String 4 Fixed: "FEIP"<br>Case insensitive Y 2 sn int 2 Serial number<br>Fixed: 15 Y 3 ver int 1 Fixed: 1 Y 4 name String 4 Fixed: "CAPP"<br>Case insensitive N 5 hash hex 32 Sha256 value of this protocol file N 6 data.op string 4 Operation: "stop" Y Example of stoping a capp
{ "type": "FEIP", "sn": 15, "ver": 3, "name": "CAPP", "hash": "", "data":{ "op":"stop" } }
-