3. registerCpt

    接口入参: com.webank.weid.protocol.request.CptStringArgs

    名称类型非空说明备注
    weIdStringYCPT发布者的WeIdentity DIDWeIdentity DID的格式传入
    weIdPublicKeyIdStringN公钥Id
    weIdPrivateKeyWeIdPrivateKeyY 交易私钥,见下

    com.webank.weid.protocol.base.WeIdPrivateKey

    名称类型说明备注
    errorCodeInteger返回结果码此接口返回的code
    errorMessageString返回结果描述
    resultCptBaseInfo CPT基础数据,见下
    transactionInfoTransactionInfo交易信息

    com.webank.weid.protocol.response.TransactionInfo

    名称类型说明备注
    cptIdIntegercpId编号
    cptVersionInteger版本号

    调用示例