Updated on 2023-01-16 GMT+08:00

IDChaincode

IDChaincode stores the public key and account data of a user. When a key pair for homomorphic encryption is generated for a user, the public keys must be registered with the IDchaincode so that the homomorphic-encryption public key of the payee can be queried using the account. For details about how to download IDChaincode.go, see Downloading Resources.

IDChaincode.go is provided by Huawei Cloud BCS. You are advised not to modify it. If you modify it, its logic may be different from that of the example provided in Sample Chaincode.

Register

The account address is obtained by converting the public key hash into a hexadecimal character string.

Query

The account address is used to query the public key.