FEIP3V4_CID(en-US)
-
FEIP3: CID Version: 4 Language: en-US Author: C_armX, Deisler-JJ_Sboy,Free_Cash Status: draft Created date: 2021-02-5 Last modified date:2022-10-04 PID: "" TXid:
FEIP3: CID Version: 4 Language: en-US Author: C_armX, Deisler-JJ_Sboy,Free_Cash Status: draft Created date: 2021-02-5 Last modified date:2022-10-04 PID: "" TXid:
FEIP3V4_CID(en-US)
Contents
General rules of FEIP type protocols
Rules specific to this protocol
Example of Unregistering a CID
Introduction
Protocol type: FEIP Serial number: 3 Protocol name: CID Version: 4 Description : Register or unregister a human friendly identity for an address. Author: C_armX, Deisler-JJ_Sboy,Free_Cash Language: en-US Previous version PID:"0dcdf9e355f108ce47f7cdc4043ca6fc6e3ea51090f80622eeae55a0c15f2c9a"
General consensus of FEIP type protocols
-
Write important data in OP_RETURN for public witness under FEIP type protocols.
-
The SIGHASH flag of all transaction inputs is ‘ALL’ (value 0x01).
-
The max size of OP_RETURN : 4096 bytes.
-
The format of the data in op_return: JSON.
-
Encoding : utf-8.
Consensus of this protocol
-
CID(Crypto Identity):“name"+"_"+suffix, e.g. CY_vpAv.
-
Suffix:The last four letters of the address. If the new CID is the same as any CID that has been registered, increase the length of suffix until the new CID is unique, e.g. CY_kvpAv.
-
When an address registers a new cid, its previous cid is automatically unregistered.
-
Once a CID is registered by an address, it cannot be registered by other addresses, even if the CID has been unregistered.
-
An address can re-register its unregistered CID.
-
If address had actively unregistered its cid, it is unregistered untile it register again.
-
One address can only occupy up to 4 CIDs.
OP_RETURN
The OP_RETURN of which contains the data as follows:
field number field name type content required 1 type String Fixed: "FEIP" Y 2 sn int Serial number<br>Fixed: 3 Y 3 ver int Fixed: 4 Y 4 name String Fixed: "CID" N 5 pid hex Sha256 value of this protocol file N 6 data.op string operation: "register" or "unregister" Y 7 data.name string Nick name given by the user Y when operation is register,<br>N when operation is unregister Example of Registering a CID
Address: FPL44YJRwPdd2ipziFvqq6y2tw4VnVvpAv CID:CY_vpAv OP_RETURN content: { "type": "FEIP", "sn": 3, "ver": 4, "name": "CID", "pid": "", "data":{ "op": "register", "name": "CY" } }
Example of Unregistering a CID
Address: FPL44YJRwPdd2ipziFvqq6y2tw4VnVvpAv OP_RETURN content: { "type": "FEIP", "sn": 3, "ver": 4, "name": "CID", "pid": "", "data":{ "op": "unregister" } }
-
-
@昌用 协议里的json 格式不对,每个键名都应该用英文半角引号括起来,键值如果是字符串,也要用英文半角引号括起来。
-
@水雷_zzHe 好,修订一下
-
@昌用 更新内容:1)标准化为英文版本,2)数据格式改为Json。
2月15日,《FEIP3V4_CID(en-US)》(密码身份协议)发布,这是自由共识生态协议标准化启动中的第二份重要协议,是自由共识的社会基础。在主网升级,即OP_RETURN扩容后,CID系统将全面转向新协议。https://github.com/freecashorg/FEIP/blob/master/FEIP3/FEIP3V4.md
————————
-
FEIP3: CID Version: 4 Language: zh-CN Author: C_armX, Deisler-JJ_Sboy,Free_Cash Status: draft Created date: 2021-02-5 Last modified date:2022-10-04 PID: "0dcdf9e355f108ce47f7cdc4043ca6fc6e3ea51090f80622eeae55a0c15f2c9a" TXid:
FEIP3V4_CID(zh_CN)
Contents
Introduction
Protocol type: FEIP Serial number: 3 Protocol name: CID Version: 4 Description : Register or unregister a human friendly identity for an address. Author: C_armX, Deisler-JJ_Sboy,Free_Cash Language: en-US Previous version PID:"0dcdf9e355f108ce47f7cdc4043ca6fc6e3ea51090f80622eeae55a0c15f2c9a"
General consensus of FEIP type protocols
-
FEIP类型协议将重要信息通过OP_RETURN写入FCH主链获得全网见证.
-
FEIP类型协议的所有输入的SIGHASH必须是“ALL”(值为 0x01),以便签名包含OP_RETURN.
-
OP_RETURN最大为4096字节。
-
数据写入OP_RETURN的格式为:JSON.
-
数据编码为: utf-8.
Consensus of this protocol
-
CID(Crypto Identity,密码身份)格式:"name"+"_"+suffix, 比如:CY_vpAv.
-
后缀:默认为地址的后四位字符。如果新注册的CID全称与已注册(包括已注销)的CID相同,则后缀增加一位,以此类推。如:CY_SvpAv,CY_5SvpAv。
-
当某个地址注册了新的CID,则之前的CID自动注销。
-
一旦某个CID被特定地址注册成功,则其他地址将不能够注册该CID,即使该CID已注销。
-
已经注销的CID,只有其原地址可以重新注册该CID。
-
一个地址可以主动注销当前CID,注销后,该地址的状态为无CID。
-
一个地址最多只能占用4个CID。
OP_RETURN
CID操作的OP_RETURN数据格式如下:
field number field name type length<br>bytes content required 1 type String 4 Fixed: "FEIP" Y 2 sn int 1 Serial number<br>Fixed: 3 Y 3 ver int 1 Fixed: 4 Y 4 name String 3 Fixed: "CID" N 5 pid hex 32 Sha256 value of this protocol file N 6 data.op string 6-8 operation: "register" or "unregister" Y 7 data.name string 1-32 Nick name given by the user Y when operation is register,<br>N when operation is unregister 注册CID示例
Address: FPL44YJRwPdd2ipziFvqq6y2tw4VnVvpAv CID:CY_vpAv OP_RETURN content: { "type": "FEIP", "sn": 3, "ver": 4, "name": "CID", "pid": "", "data":{ "op": "register", "name": "CY" } }
注销CID示例
Address: FPL44YJRwPdd2ipziFvqq6y2tw4VnVvpAv OP_RETURN content: { "type": "FEIP", "sn": 3, "ver": 4, "name": "CID", "pid": "", "data":{ "op": "unregister" } }
-