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.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot