Documentation
¶
Index ¶
- Constants
- type CRDLArg
- type ChainTransaction
- type Client
- func (c *Client) CreateDisclosedCredential(request *CreateDisclosedCredentialRequest) (response *CreateDisclosedCredentialResponse, err error)
- func (c *Client) CreateDisclosedCredentialWithContext(ctx context.Context, request *CreateDisclosedCredentialRequest) (response *CreateDisclosedCredentialResponse, err error)
- func (c *Client) CreatePresentation(request *CreatePresentationRequest) (response *CreatePresentationResponse, err error)
- func (c *Client) CreatePresentationWithContext(ctx context.Context, request *CreatePresentationRequest) (response *CreatePresentationResponse, err error)
- func (c *Client) CreateTDidByHost(request *CreateTDidByHostRequest) (response *CreateTDidByHostResponse, err error)
- func (c *Client) CreateTDidByHostWithContext(ctx context.Context, request *CreateTDidByHostRequest) (response *CreateTDidByHostResponse, err error)
- func (c *Client) CreateTDidByPubKey(request *CreateTDidByPubKeyRequest) (response *CreateTDidByPubKeyResponse, err error)
- func (c *Client) CreateTDidByPubKeyWithContext(ctx context.Context, request *CreateTDidByPubKeyRequest) (response *CreateTDidByPubKeyResponse, err error)
- func (c *Client) DeactivateTDid(request *DeactivateTDidRequest) (response *DeactivateTDidResponse, err error)
- func (c *Client) DeactivateTDidWithContext(ctx context.Context, request *DeactivateTDidRequest) (response *DeactivateTDidResponse, err error)
- func (c *Client) GetAppSummary(request *GetAppSummaryRequest) (response *GetAppSummaryResponse, err error)
- func (c *Client) GetAppSummaryWithContext(ctx context.Context, request *GetAppSummaryRequest) (response *GetAppSummaryResponse, err error)
- func (c *Client) GetCredentialState(request *GetCredentialStateRequest) (response *GetCredentialStateResponse, err error)
- func (c *Client) GetCredentialStateWithContext(ctx context.Context, request *GetCredentialStateRequest) (response *GetCredentialStateResponse, err error)
- func (c *Client) GetOverSummary(request *GetOverSummaryRequest) (response *GetOverSummaryResponse, err error)
- func (c *Client) GetOverSummaryWithContext(ctx context.Context, request *GetOverSummaryRequest) (response *GetOverSummaryResponse, err error)
- func (c *Client) GetTDidByObjectId(request *GetTDidByObjectIdRequest) (response *GetTDidByObjectIdResponse, err error)
- func (c *Client) GetTDidByObjectIdWithContext(ctx context.Context, request *GetTDidByObjectIdRequest) (response *GetTDidByObjectIdResponse, err error)
- func (c *Client) GetTDidDocument(request *GetTDidDocumentRequest) (response *GetTDidDocumentResponse, err error)
- func (c *Client) GetTDidDocumentWithContext(ctx context.Context, request *GetTDidDocumentRequest) (response *GetTDidDocumentResponse, err error)
- func (c *Client) GetTDidPubKey(request *GetTDidPubKeyRequest) (response *GetTDidPubKeyResponse, err error)
- func (c *Client) GetTDidPubKeyWithContext(ctx context.Context, request *GetTDidPubKeyRequest) (response *GetTDidPubKeyResponse, err error)
- func (c *Client) IssueCredential(request *IssueCredentialRequest) (response *IssueCredentialResponse, err error)
- func (c *Client) IssueCredentialWithContext(ctx context.Context, request *IssueCredentialRequest) (response *IssueCredentialResponse, err error)
- func (c *Client) QueryAuthorityInfo(request *QueryAuthorityInfoRequest) (response *QueryAuthorityInfoResponse, err error)
- func (c *Client) QueryAuthorityInfoWithContext(ctx context.Context, request *QueryAuthorityInfoRequest) (response *QueryAuthorityInfoResponse, err error)
- func (c *Client) QueryCPT(request *QueryCPTRequest) (response *QueryCPTResponse, err error)
- func (c *Client) QueryCPTWithContext(ctx context.Context, request *QueryCPTRequest) (response *QueryCPTResponse, err error)
- func (c *Client) SetTDidAttribute(request *SetTDidAttributeRequest) (response *SetTDidAttributeResponse, err error)
- func (c *Client) SetTDidAttributeWithContext(ctx context.Context, request *SetTDidAttributeRequest) (response *SetTDidAttributeResponse, err error)
- func (c *Client) UpdateCredentialState(request *UpdateCredentialStateRequest) (response *UpdateCredentialStateResponse, err error)
- func (c *Client) UpdateCredentialStateWithContext(ctx context.Context, request *UpdateCredentialStateRequest) (response *UpdateCredentialStateResponse, err error)
- func (c *Client) VerifyCredentials(request *VerifyCredentialsRequest) (response *VerifyCredentialsResponse, err error)
- func (c *Client) VerifyCredentialsWithContext(ctx context.Context, request *VerifyCredentialsRequest) (response *VerifyCredentialsResponse, err error)
- func (c *Client) VerifyPresentation(request *VerifyPresentationRequest) (response *VerifyPresentationResponse, err error)
- func (c *Client) VerifyPresentationWithContext(ctx context.Context, request *VerifyPresentationRequest) (response *VerifyPresentationResponse, err error)
- type CreateDisclosedCredentialRequest
- type CreateDisclosedCredentialRequestParams
- type CreateDisclosedCredentialResponse
- type CreateDisclosedCredentialResponseParams
- type CreatePresentationRequest
- type CreatePresentationRequestParams
- type CreatePresentationResponse
- type CreatePresentationResponseParams
- type CreateTDidByHostRequest
- type CreateTDidByHostRequestParams
- type CreateTDidByHostResponse
- type CreateTDidByHostResponseParams
- type CreateTDidByPubKeyRequest
- type CreateTDidByPubKeyRequestParams
- type CreateTDidByPubKeyResponse
- type CreateTDidByPubKeyResponseParams
- type CredentialProof
- type CredentialState
- type DeactivateTDidRequest
- type DeactivateTDidRequestParams
- type DeactivateTDidResponse
- type DeactivateTDidResponseParams
- type DidAttribute
- type GetAppSummaryRequest
- type GetAppSummaryRequestParams
- type GetAppSummaryResponse
- type GetAppSummaryResponseParams
- type GetCredentialStateRequest
- type GetCredentialStateRequestParams
- type GetCredentialStateResponse
- type GetCredentialStateResponseParams
- type GetOverSummaryRequest
- type GetOverSummaryRequestParams
- type GetOverSummaryResponse
- type GetOverSummaryResponseParams
- type GetTDidByObjectIdRequest
- type GetTDidByObjectIdRequestParams
- type GetTDidByObjectIdResponse
- type GetTDidByObjectIdResponseParams
- type GetTDidDocumentRequest
- type GetTDidDocumentRequestParams
- type GetTDidDocumentResponse
- type GetTDidDocumentResponseParams
- type GetTDidPubKeyRequest
- type GetTDidPubKeyRequestParams
- type GetTDidPubKeyResponse
- type GetTDidPubKeyResponseParams
- type IssueCredentialRequest
- type IssueCredentialRequestParams
- type IssueCredentialResponse
- type IssueCredentialResponseParams
- type QueryAuthorityInfoRequest
- type QueryAuthorityInfoRequestParams
- type QueryAuthorityInfoResponse
- type QueryAuthorityInfoResponseParams
- type QueryCPTRequest
- type QueryCPTRequestParams
- type QueryCPTResponse
- type QueryCPTResponseParams
- type ResourceCounterData
- type SetTDidAttributeRequest
- type SetTDidAttributeRequestParams
- type SetTDidAttributeResponse
- type SetTDidAttributeResponseParams
- type UpdateCredentialStateRequest
- type UpdateCredentialStateRequestParams
- type UpdateCredentialStateResponse
- type UpdateCredentialStateResponseParams
- type VerifyCredentialsRequest
- type VerifyCredentialsRequestParams
- type VerifyCredentialsResponse
- type VerifyCredentialsResponseParams
- type VerifyPresentationRequest
- type VerifyPresentationRequestParams
- type VerifyPresentationResponse
- type VerifyPresentationResponseParams
Constants ¶
const ( // CAM签名/鉴权错误。 AUTHFAILURE = "AuthFailure" // 机构名称要求输入中英文或数字,不超过32个字符 AUTHORITY_AUTHORITYNAMELENGTHLONG = "Authority.AuthorityNameLengthLong" // 认证备注要求输入中英文或数字,不超过64个字符 AUTHORITY_AUTHORITYREMARKLENGTHLONG = "Authority.AuthorityRemarkLengthLong" // 该权威机构已被认证:<%ExtMsg%> AUTHORITY_ERRCODEAUTHORITYREGISTERED = "Authority.ErrCodeAuthorityRegistered" // 该DID已经认证为权威机构:<%ExtMsg%> AUTHORITY_ERRCODEDIDAUTHORITYREGISTERED = "Authority.ErrCodeDidAuthorityRegistered" // CAM鉴权失败 CAM_INVALIDAUTH = "Cam.InvalidAuth" // 创建凭证模板失败,请重新操作 CPT_CREATECPTFAILED = "Cpt.CreateCPTFailed" // 模板内容为无效的json格式 CPT_INVALIDCPTJSON = "Cpt.InvalidCPTJson" // 凭证模板不存在 CREDENTIAL_CPTNOTEXISTED = "Credential.CPTNotExisted" // 凭证过期:<%ExtMsg%> CREDENTIAL_CREDENTIALEXPIRED = "Credential.CredentialExpired" // 创建凭证表达失败 CREDENTIAL_FAILEDCREATEPRESENTATION = "Credential.FailedCreatePresentation" // 生成证明承诺失败 CREDENTIAL_GENERATECOMMITMENTFAILED = "Credential.GenerateCommitmentFailed" // 生成范围证明失败 CREDENTIAL_GENERATERANGEPROOF = "Credential.GenerateRangeProof" // 凭证持有人DID不匹配,请确认后重新操作:<%ExtMsg%> CREDENTIAL_HOLDERDIDNOTMATCH = "Credential.HolderDidNotMatch" // 无效的凭证ID,请确认后重新操作:<%ExtMsg%> CREDENTIAL_INVALIDCRDLID = "Credential.InvalidCRDLId" // 无效的凭证颁发者,请确认后重新操作 CREDENTIAL_INVALIDCRDLISSUER = "Credential.InvalidCRDLIssuer" // 无效的凭证声明,请确认声明格式:<%ExtMsg%> CREDENTIAL_INVALIDCLAIM = "Credential.InvalidClaim" // 无效的选择性披露策略,请确认后重新操作:<%ExtMsg%> CREDENTIAL_INVALIDDISCLOSUREPOLICY = "Credential.InvalidDisclosurePolicy" // 无效的操作类型声明,请确认后重新操作:<%ExtMsg%> CREDENTIAL_INVALIDOPERATECLAIM = "Credential.InvalidOperateClaim" // 无效请求参数,请确认参数格式:<%ExtMsg%> CREDENTIAL_INVALIDPARAS = "Credential.InvalidParas" // 无效的证明承诺 CREDENTIAL_INVALIDPROOFCOMMITMENT = "Credential.InvalidProofCommitment" // 无效的证明值,证明值要求是无符号整形 CREDENTIAL_INVALIDPROOFVALUE = "Credential.InvalidProofValue" // 无效的零知识证明内容 CREDENTIAL_INVALIDZEROPROOF = "Credential.InvalidZeroProof" // 凭证颁发者DID不匹配,请确认后重新操作:<%ExtMsg%> CREDENTIAL_ISSUERDIDNOTMATCH = "Credential.IssuerDidNotMatch" // 凭证声明缺少ID字段,请确认后重新操作 CREDENTIAL_NOIDINCLAIM = "Credential.NoIdInClaim" // 证明数值不存在 CREDENTIAL_PROOFVALUENOTEXISTED = "Credential.ProofValueNotExisted" // 凭证验证失败:<%ExtMsg%> CREDENTIAL_VERIFYCRDLFAILED = "Credential.VerifyCRDLFailed" // 零知识证明验证失败 CREDENTIAL_VERIFYZEROPROOFFAILED = "Credential.VerifyZeroProofFailed" // 数据库操作失败,请重新操作 DATABASE_FAILEDOPERATION = "DataBase.FailedOperation" // 您无操作权限 DID_PERMISSIONDENIED = "Did.PermissionDenied" // DID标识已存在 DIDFAILEDOPERATION_DIDEXISTED = "DidFailedOperation.DidExisted" // DID标识不存在:<%ExtMsg%> DIDFAILEDOPERATION_DIDNOTEXISTED = "DidFailedOperation.DidNotExisted" // DID属性objectId已存在 DIDFAILEDOPERATION_DIDOBJECTIDEXISTED = "DidFailedOperation.DidObjectIdExisted" // DID状态无效 DIDFAILEDOPERATION_DIDSTATUSINVALID = "DidFailedOperation.DidStatusInvalid" // 用户尚未创建DID服务,请确认后重新操作 DIDFAILEDOPERATION_DIDSVCNOTEXISTED = "DidFailedOperation.DidSvcNotExisted" // 获取DID文档失败,请重新操作 DIDFAILEDOPERATION_GETDIDDOCFILED = "DidFailedOperation.GetDidDocFiled" // 非权威机构DID:<%ExtMsg%> DIDFAILEDOPERATION_NOTAUTHORITY = "DidFailedOperation.NotAuthority" // 非DID创建者,无法更新DID状态 DIDFAILEDOPERATION_NOTDIDCREATOR = "DidFailedOperation.NotDidCreator" // DID私钥格式错误,请填写正确的DID私钥 DIDFAILEDOPERATION_PRIVATEKEYINVALID = "DidFailedOperation.PrivateKeyInvalid" // DID公钥格式错误,请填写正确的DID公钥 DIDFAILEDOPERATION_PUBLICKEYINVALID = "DidFailedOperation.PublicKeyInvalid" // DID服务请求错误,请稍后重试或联系客服 DIDSDK_UNKNOWNERROR = "DidSdk.UnknownError" // 用户接口鉴权失败 FAILEDOPERATION_INVALIDAUTH = "FailedOperation.InvalidAuth" // 无效的请求参数 FAILEDOPERATION_INVALIDPARAMETERVALUE = "FailedOperation.InvalidParameterValue" // 操作失败。 FAILEDOPERATION_OPERATIONEXCEPTION = "FailedOperation.OperationException" // 用户无接口访问权限 FAILEDOPERATION_PERMISSIONDENIED = "FailedOperation.PermissionDenied" // HTTP请求创建失败,请稍后重试,或联系客服 HTTPINVOKER_NEWQUESTERROR = "HttpInvoker.NewQuestError" // HTTP请求发送失败,请稍后重试,或联系客服 HTTPINVOKER_SENDQUESTERROR = "HttpInvoker.SendQuestError" // 内部错误。 INTERNALERROR = "InternalError" // API服务出错 INTERNALERROR_APIUNKNOWNERROR = "InternalError.ApiUnknownError" // 服务器异常。 INTERNALERROR_SERVEREXCEPTION = "InternalError.ServerException" // 服务已停止,请您检查当前是否有计费套餐包 INTERNALERROR_SERVICEDISABLED = "InternalError.ServiceDisabled" // 服务错误,请稍后重试,或联系客服 INTERNALERROR_SERVICEERROR = "InternalError.ServiceError" // 服务异常。 INTERNALERROR_SERVICEPANIC = "InternalError.ServicePanic" // 服务错误,请稍后重试,或联系客服 INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" // 参数错误。 INVALIDPARAMETER = "InvalidParameter" // 参数取值错误。 INVALIDPARAMETERVALUE = "InvalidParameterValue" // 无效的时间格式,请确认后重新操作 INVALIDPARAMETERVALUE_ILLEGALDATETIME = "InvalidParameterValue.IllegalDateTime" // 请求参数格式错误,请按照格式要求重新填写 INVALIDPARAMETERVALUE_ILLEGALVALUE = "InvalidParameterValue.IllegalValue" // 用户请求资源未存在:<%ExtMsg%> INVALIDPARAMETERVALUE_RESOURCENOTEXISTED = "InvalidParameterValue.ResourceNotExisted" // 资源不存在。 RESOURCENOTFOUND = "ResourceNotFound" // 操作不支持。 UNSUPPORTEDOPERATION = "UnsupportedOperation" )
const APIVersion = "2021-05-19"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CRDLArg ¶ added in v1.0.839
type CRDLArg struct { // CPT ID CPTId *uint64 `json:"CPTId,omitnil,omitempty" name:"CPTId"` // 签发者 did Issuer *string `json:"Issuer,omitnil,omitempty" name:"Issuer"` // 过期时间 ExpirationDate *string `json:"ExpirationDate,omitnil,omitempty" name:"ExpirationDate"` // 声明 ClaimJson *string `json:"ClaimJson,omitnil,omitempty" name:"ClaimJson"` // 凭证类型 Type []*string `json:"Type,omitnil,omitempty" name:"Type"` // 多方签名的用户did Parties []*string `json:"Parties,omitnil,omitempty" name:"Parties"` }
type ChainTransaction ¶ added in v1.0.839
type ChainTransaction struct { // 交易哈希 TransactionHash *string `json:"TransactionHash,omitnil,omitempty" name:"TransactionHash"` }
type Client ¶
func NewClient ¶
func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) CreateDisclosedCredential ¶ added in v1.0.840
func (c *Client) CreateDisclosedCredential(request *CreateDisclosedCredentialRequest) (response *CreateDisclosedCredentialResponse, err error)
CreateDisclosedCredential 根据披露策略创建选择性披露凭证
可能返回的错误码:
CAM_INVALIDAUTH = "Cam.InvalidAuth" CREDENTIAL_CPTNOTEXISTED = "Credential.CPTNotExisted" CREDENTIAL_CREDENTIALEXPIRED = "Credential.CredentialExpired" CREDENTIAL_FAILEDCREATEPRESENTATION = "Credential.FailedCreatePresentation" CREDENTIAL_HOLDERDIDNOTMATCH = "Credential.HolderDidNotMatch" CREDENTIAL_INVALIDCRDLID = "Credential.InvalidCRDLId" CREDENTIAL_INVALIDCRDLISSUER = "Credential.InvalidCRDLIssuer" CREDENTIAL_INVALIDCLAIM = "Credential.InvalidClaim" CREDENTIAL_INVALIDDISCLOSUREPOLICY = "Credential.InvalidDisclosurePolicy" CREDENTIAL_INVALIDOPERATECLAIM = "Credential.InvalidOperateClaim" CREDENTIAL_INVALIDPARAS = "Credential.InvalidParas" CREDENTIAL_ISSUERDIDNOTMATCH = "Credential.IssuerDidNotMatch" CREDENTIAL_NOIDINCLAIM = "Credential.NoIdInClaim" CREDENTIAL_VERIFYCRDLFAILED = "Credential.VerifyCRDLFailed" DATABASE_FAILEDOPERATION = "DataBase.FailedOperation" DIDSDK_UNKNOWNERROR = "DidSdk.UnknownError" FAILEDOPERATION_INVALIDAUTH = "FailedOperation.InvalidAuth" FAILEDOPERATION_OPERATIONEXCEPTION = "FailedOperation.OperationException" FAILEDOPERATION_PERMISSIONDENIED = "FailedOperation.PermissionDenied" HTTPINVOKER_NEWQUESTERROR = "HttpInvoker.NewQuestError" HTTPINVOKER_SENDQUESTERROR = "HttpInvoker.SendQuestError" INTERNALERROR_APIUNKNOWNERROR = "InternalError.ApiUnknownError" INTERNALERROR_SERVICEDISABLED = "InternalError.ServiceDisabled" INTERNALERROR_SERVICEERROR = "InternalError.ServiceError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETERVALUE_ILLEGALVALUE = "InvalidParameterValue.IllegalValue" INVALIDPARAMETERVALUE_RESOURCENOTEXISTED = "InvalidParameterValue.ResourceNotExisted"
func (*Client) CreateDisclosedCredentialWithContext ¶ added in v1.0.840
func (c *Client) CreateDisclosedCredentialWithContext(ctx context.Context, request *CreateDisclosedCredentialRequest) (response *CreateDisclosedCredentialResponse, err error)
CreateDisclosedCredential 根据披露策略创建选择性披露凭证
可能返回的错误码:
CAM_INVALIDAUTH = "Cam.InvalidAuth" CREDENTIAL_CPTNOTEXISTED = "Credential.CPTNotExisted" CREDENTIAL_CREDENTIALEXPIRED = "Credential.CredentialExpired" CREDENTIAL_FAILEDCREATEPRESENTATION = "Credential.FailedCreatePresentation" CREDENTIAL_HOLDERDIDNOTMATCH = "Credential.HolderDidNotMatch" CREDENTIAL_INVALIDCRDLID = "Credential.InvalidCRDLId" CREDENTIAL_INVALIDCRDLISSUER = "Credential.InvalidCRDLIssuer" CREDENTIAL_INVALIDCLAIM = "Credential.InvalidClaim" CREDENTIAL_INVALIDDISCLOSUREPOLICY = "Credential.InvalidDisclosurePolicy" CREDENTIAL_INVALIDOPERATECLAIM = "Credential.InvalidOperateClaim" CREDENTIAL_INVALIDPARAS = "Credential.InvalidParas" CREDENTIAL_ISSUERDIDNOTMATCH = "Credential.IssuerDidNotMatch" CREDENTIAL_NOIDINCLAIM = "Credential.NoIdInClaim" CREDENTIAL_VERIFYCRDLFAILED = "Credential.VerifyCRDLFailed" DATABASE_FAILEDOPERATION = "DataBase.FailedOperation" DIDSDK_UNKNOWNERROR = "DidSdk.UnknownError" FAILEDOPERATION_INVALIDAUTH = "FailedOperation.InvalidAuth" FAILEDOPERATION_OPERATIONEXCEPTION = "FailedOperation.OperationException" FAILEDOPERATION_PERMISSIONDENIED = "FailedOperation.PermissionDenied" HTTPINVOKER_NEWQUESTERROR = "HttpInvoker.NewQuestError" HTTPINVOKER_SENDQUESTERROR = "HttpInvoker.SendQuestError" INTERNALERROR_APIUNKNOWNERROR = "InternalError.ApiUnknownError" INTERNALERROR_SERVICEDISABLED = "InternalError.ServiceDisabled" INTERNALERROR_SERVICEERROR = "InternalError.ServiceError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETERVALUE_ILLEGALVALUE = "InvalidParameterValue.IllegalValue" INVALIDPARAMETERVALUE_RESOURCENOTEXISTED = "InvalidParameterValue.ResourceNotExisted"
func (*Client) CreatePresentation ¶ added in v1.0.840
func (c *Client) CreatePresentation(request *CreatePresentationRequest) (response *CreatePresentationResponse, err error)
CreatePresentation 创建凭证持有人的可验证表达
可能返回的错误码:
CAM_INVALIDAUTH = "Cam.InvalidAuth" CREDENTIAL_CPTNOTEXISTED = "Credential.CPTNotExisted" CREDENTIAL_CREDENTIALEXPIRED = "Credential.CredentialExpired" CREDENTIAL_FAILEDCREATEPRESENTATION = "Credential.FailedCreatePresentation" CREDENTIAL_GENERATECOMMITMENTFAILED = "Credential.GenerateCommitmentFailed" CREDENTIAL_GENERATERANGEPROOF = "Credential.GenerateRangeProof" CREDENTIAL_HOLDERDIDNOTMATCH = "Credential.HolderDidNotMatch" CREDENTIAL_INVALIDCRDLID = "Credential.InvalidCRDLId" CREDENTIAL_INVALIDCRDLISSUER = "Credential.InvalidCRDLIssuer" CREDENTIAL_INVALIDCLAIM = "Credential.InvalidClaim" CREDENTIAL_INVALIDDISCLOSUREPOLICY = "Credential.InvalidDisclosurePolicy" CREDENTIAL_INVALIDOPERATECLAIM = "Credential.InvalidOperateClaim" CREDENTIAL_INVALIDPARAS = "Credential.InvalidParas" CREDENTIAL_INVALIDPROOFCOMMITMENT = "Credential.InvalidProofCommitment" CREDENTIAL_INVALIDPROOFVALUE = "Credential.InvalidProofValue" CREDENTIAL_INVALIDZEROPROOF = "Credential.InvalidZeroProof" CREDENTIAL_ISSUERDIDNOTMATCH = "Credential.IssuerDidNotMatch" CREDENTIAL_NOIDINCLAIM = "Credential.NoIdInClaim" CREDENTIAL_PROOFVALUENOTEXISTED = "Credential.ProofValueNotExisted" CREDENTIAL_VERIFYCRDLFAILED = "Credential.VerifyCRDLFailed" CREDENTIAL_VERIFYZEROPROOFFAILED = "Credential.VerifyZeroProofFailed" DATABASE_FAILEDOPERATION = "DataBase.FailedOperation" DID_PERMISSIONDENIED = "Did.PermissionDenied" DIDFAILEDOPERATION_DIDNOTEXISTED = "DidFailedOperation.DidNotExisted" DIDFAILEDOPERATION_DIDSVCNOTEXISTED = "DidFailedOperation.DidSvcNotExisted" DIDSDK_UNKNOWNERROR = "DidSdk.UnknownError" FAILEDOPERATION_INVALIDAUTH = "FailedOperation.InvalidAuth" FAILEDOPERATION_INVALIDPARAMETERVALUE = "FailedOperation.InvalidParameterValue" FAILEDOPERATION_OPERATIONEXCEPTION = "FailedOperation.OperationException" FAILEDOPERATION_PERMISSIONDENIED = "FailedOperation.PermissionDenied" HTTPINVOKER_NEWQUESTERROR = "HttpInvoker.NewQuestError" HTTPINVOKER_SENDQUESTERROR = "HttpInvoker.SendQuestError" INTERNALERROR_APIUNKNOWNERROR = "InternalError.ApiUnknownError" INTERNALERROR_SERVICEDISABLED = "InternalError.ServiceDisabled" INTERNALERROR_SERVICEERROR = "InternalError.ServiceError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETERVALUE_ILLEGALDATETIME = "InvalidParameterValue.IllegalDateTime" INVALIDPARAMETERVALUE_ILLEGALVALUE = "InvalidParameterValue.IllegalValue" INVALIDPARAMETERVALUE_RESOURCENOTEXISTED = "InvalidParameterValue.ResourceNotExisted"
func (*Client) CreatePresentationWithContext ¶ added in v1.0.840
func (c *Client) CreatePresentationWithContext(ctx context.Context, request *CreatePresentationRequest) (response *CreatePresentationResponse, err error)
CreatePresentation 创建凭证持有人的可验证表达
可能返回的错误码:
CAM_INVALIDAUTH = "Cam.InvalidAuth" CREDENTIAL_CPTNOTEXISTED = "Credential.CPTNotExisted" CREDENTIAL_CREDENTIALEXPIRED = "Credential.CredentialExpired" CREDENTIAL_FAILEDCREATEPRESENTATION = "Credential.FailedCreatePresentation" CREDENTIAL_GENERATECOMMITMENTFAILED = "Credential.GenerateCommitmentFailed" CREDENTIAL_GENERATERANGEPROOF = "Credential.GenerateRangeProof" CREDENTIAL_HOLDERDIDNOTMATCH = "Credential.HolderDidNotMatch" CREDENTIAL_INVALIDCRDLID = "Credential.InvalidCRDLId" CREDENTIAL_INVALIDCRDLISSUER = "Credential.InvalidCRDLIssuer" CREDENTIAL_INVALIDCLAIM = "Credential.InvalidClaim" CREDENTIAL_INVALIDDISCLOSUREPOLICY = "Credential.InvalidDisclosurePolicy" CREDENTIAL_INVALIDOPERATECLAIM = "Credential.InvalidOperateClaim" CREDENTIAL_INVALIDPARAS = "Credential.InvalidParas" CREDENTIAL_INVALIDPROOFCOMMITMENT = "Credential.InvalidProofCommitment" CREDENTIAL_INVALIDPROOFVALUE = "Credential.InvalidProofValue" CREDENTIAL_INVALIDZEROPROOF = "Credential.InvalidZeroProof" CREDENTIAL_ISSUERDIDNOTMATCH = "Credential.IssuerDidNotMatch" CREDENTIAL_NOIDINCLAIM = "Credential.NoIdInClaim" CREDENTIAL_PROOFVALUENOTEXISTED = "Credential.ProofValueNotExisted" CREDENTIAL_VERIFYCRDLFAILED = "Credential.VerifyCRDLFailed" CREDENTIAL_VERIFYZEROPROOFFAILED = "Credential.VerifyZeroProofFailed" DATABASE_FAILEDOPERATION = "DataBase.FailedOperation" DID_PERMISSIONDENIED = "Did.PermissionDenied" DIDFAILEDOPERATION_DIDNOTEXISTED = "DidFailedOperation.DidNotExisted" DIDFAILEDOPERATION_DIDSVCNOTEXISTED = "DidFailedOperation.DidSvcNotExisted" DIDSDK_UNKNOWNERROR = "DidSdk.UnknownError" FAILEDOPERATION_INVALIDAUTH = "FailedOperation.InvalidAuth" FAILEDOPERATION_INVALIDPARAMETERVALUE = "FailedOperation.InvalidParameterValue" FAILEDOPERATION_OPERATIONEXCEPTION = "FailedOperation.OperationException" FAILEDOPERATION_PERMISSIONDENIED = "FailedOperation.PermissionDenied" HTTPINVOKER_NEWQUESTERROR = "HttpInvoker.NewQuestError" HTTPINVOKER_SENDQUESTERROR = "HttpInvoker.SendQuestError" INTERNALERROR_APIUNKNOWNERROR = "InternalError.ApiUnknownError" INTERNALERROR_SERVICEDISABLED = "InternalError.ServiceDisabled" INTERNALERROR_SERVICEERROR = "InternalError.ServiceError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETERVALUE_ILLEGALDATETIME = "InvalidParameterValue.IllegalDateTime" INVALIDPARAMETERVALUE_ILLEGALVALUE = "InvalidParameterValue.IllegalValue" INVALIDPARAMETERVALUE_RESOURCENOTEXISTED = "InvalidParameterValue.ResourceNotExisted"
func (*Client) CreateTDidByHost ¶ added in v1.0.839
func (c *Client) CreateTDidByHost(request *CreateTDidByHostRequest) (response *CreateTDidByHostResponse, err error)
CreateTDidByHost 自动生成公私钥对托管在DID平台,并注册DID标识
可能返回的错误码:
CAM_INVALIDAUTH = "Cam.InvalidAuth" DATABASE_FAILEDOPERATION = "DataBase.FailedOperation" DID_PERMISSIONDENIED = "Did.PermissionDenied" DIDFAILEDOPERATION_DIDEXISTED = "DidFailedOperation.DidExisted" DIDFAILEDOPERATION_DIDNOTEXISTED = "DidFailedOperation.DidNotExisted" DIDFAILEDOPERATION_DIDOBJECTIDEXISTED = "DidFailedOperation.DidObjectIdExisted" DIDFAILEDOPERATION_DIDSTATUSINVALID = "DidFailedOperation.DidStatusInvalid" DIDFAILEDOPERATION_DIDSVCNOTEXISTED = "DidFailedOperation.DidSvcNotExisted" DIDFAILEDOPERATION_GETDIDDOCFILED = "DidFailedOperation.GetDidDocFiled" DIDFAILEDOPERATION_NOTDIDCREATOR = "DidFailedOperation.NotDidCreator" DIDFAILEDOPERATION_PRIVATEKEYINVALID = "DidFailedOperation.PrivateKeyInvalid" DIDFAILEDOPERATION_PUBLICKEYINVALID = "DidFailedOperation.PublicKeyInvalid" DIDSDK_UNKNOWNERROR = "DidSdk.UnknownError" FAILEDOPERATION_INVALIDAUTH = "FailedOperation.InvalidAuth" FAILEDOPERATION_INVALIDPARAMETERVALUE = "FailedOperation.InvalidParameterValue" FAILEDOPERATION_OPERATIONEXCEPTION = "FailedOperation.OperationException" FAILEDOPERATION_PERMISSIONDENIED = "FailedOperation.PermissionDenied" HTTPINVOKER_NEWQUESTERROR = "HttpInvoker.NewQuestError" HTTPINVOKER_SENDQUESTERROR = "HttpInvoker.SendQuestError" INTERNALERROR_APIUNKNOWNERROR = "InternalError.ApiUnknownError" INTERNALERROR_SERVICEDISABLED = "InternalError.ServiceDisabled" INTERNALERROR_SERVICEERROR = "InternalError.ServiceError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETERVALUE_ILLEGALDATETIME = "InvalidParameterValue.IllegalDateTime" INVALIDPARAMETERVALUE_ILLEGALVALUE = "InvalidParameterValue.IllegalValue" INVALIDPARAMETERVALUE_RESOURCENOTEXISTED = "InvalidParameterValue.ResourceNotExisted"
func (*Client) CreateTDidByHostWithContext ¶ added in v1.0.839
func (c *Client) CreateTDidByHostWithContext(ctx context.Context, request *CreateTDidByHostRequest) (response *CreateTDidByHostResponse, err error)
CreateTDidByHost 自动生成公私钥对托管在DID平台,并注册DID标识
可能返回的错误码:
CAM_INVALIDAUTH = "Cam.InvalidAuth" DATABASE_FAILEDOPERATION = "DataBase.FailedOperation" DID_PERMISSIONDENIED = "Did.PermissionDenied" DIDFAILEDOPERATION_DIDEXISTED = "DidFailedOperation.DidExisted" DIDFAILEDOPERATION_DIDNOTEXISTED = "DidFailedOperation.DidNotExisted" DIDFAILEDOPERATION_DIDOBJECTIDEXISTED = "DidFailedOperation.DidObjectIdExisted" DIDFAILEDOPERATION_DIDSTATUSINVALID = "DidFailedOperation.DidStatusInvalid" DIDFAILEDOPERATION_DIDSVCNOTEXISTED = "DidFailedOperation.DidSvcNotExisted" DIDFAILEDOPERATION_GETDIDDOCFILED = "DidFailedOperation.GetDidDocFiled" DIDFAILEDOPERATION_NOTDIDCREATOR = "DidFailedOperation.NotDidCreator" DIDFAILEDOPERATION_PRIVATEKEYINVALID = "DidFailedOperation.PrivateKeyInvalid" DIDFAILEDOPERATION_PUBLICKEYINVALID = "DidFailedOperation.PublicKeyInvalid" DIDSDK_UNKNOWNERROR = "DidSdk.UnknownError" FAILEDOPERATION_INVALIDAUTH = "FailedOperation.InvalidAuth" FAILEDOPERATION_INVALIDPARAMETERVALUE = "FailedOperation.InvalidParameterValue" FAILEDOPERATION_OPERATIONEXCEPTION = "FailedOperation.OperationException" FAILEDOPERATION_PERMISSIONDENIED = "FailedOperation.PermissionDenied" HTTPINVOKER_NEWQUESTERROR = "HttpInvoker.NewQuestError" HTTPINVOKER_SENDQUESTERROR = "HttpInvoker.SendQuestError" INTERNALERROR_APIUNKNOWNERROR = "InternalError.ApiUnknownError" INTERNALERROR_SERVICEDISABLED = "InternalError.ServiceDisabled" INTERNALERROR_SERVICEERROR = "InternalError.ServiceError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETERVALUE_ILLEGALDATETIME = "InvalidParameterValue.IllegalDateTime" INVALIDPARAMETERVALUE_ILLEGALVALUE = "InvalidParameterValue.IllegalValue" INVALIDPARAMETERVALUE_RESOURCENOTEXISTED = "InvalidParameterValue.ResourceNotExisted"
func (*Client) CreateTDidByPubKey ¶ added in v1.0.839
func (c *Client) CreateTDidByPubKey(request *CreateTDidByPubKeyRequest) (response *CreateTDidByPubKeyResponse, err error)
CreateTDidByPubKey 使用导入的公钥文件注册DID标识
可能返回的错误码:
AUTHFAILURE = "AuthFailure" FAILEDOPERATION_INVALIDAUTH = "FailedOperation.InvalidAuth" FAILEDOPERATION_OPERATIONEXCEPTION = "FailedOperation.OperationException" INTERNALERROR = "InternalError" INTERNALERROR_SERVEREXCEPTION = "InternalError.ServerException" INTERNALERROR_SERVICEDISABLED = "InternalError.ServiceDisabled" INTERNALERROR_SERVICEERROR = "InternalError.ServiceError" INTERNALERROR_SERVICEPANIC = "InternalError.ServicePanic" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_ILLEGALVALUE = "InvalidParameterValue.IllegalValue" RESOURCENOTFOUND = "ResourceNotFound" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) CreateTDidByPubKeyWithContext ¶ added in v1.0.839
func (c *Client) CreateTDidByPubKeyWithContext(ctx context.Context, request *CreateTDidByPubKeyRequest) (response *CreateTDidByPubKeyResponse, err error)
CreateTDidByPubKey 使用导入的公钥文件注册DID标识
可能返回的错误码:
AUTHFAILURE = "AuthFailure" FAILEDOPERATION_INVALIDAUTH = "FailedOperation.InvalidAuth" FAILEDOPERATION_OPERATIONEXCEPTION = "FailedOperation.OperationException" INTERNALERROR = "InternalError" INTERNALERROR_SERVEREXCEPTION = "InternalError.ServerException" INTERNALERROR_SERVICEDISABLED = "InternalError.ServiceDisabled" INTERNALERROR_SERVICEERROR = "InternalError.ServiceError" INTERNALERROR_SERVICEPANIC = "InternalError.ServicePanic" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_ILLEGALVALUE = "InvalidParameterValue.IllegalValue" RESOURCENOTFOUND = "ResourceNotFound" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DeactivateTDid ¶ added in v1.0.839
func (c *Client) DeactivateTDid(request *DeactivateTDidRequest) (response *DeactivateTDidResponse, err error)
DeactivateTDid 更新DID标识的禁用状态
可能返回的错误码:
CAM_INVALIDAUTH = "Cam.InvalidAuth" CREDENTIAL_CREDENTIALEXPIRED = "Credential.CredentialExpired" CREDENTIAL_HOLDERDIDNOTMATCH = "Credential.HolderDidNotMatch" CREDENTIAL_INVALIDCRDLID = "Credential.InvalidCRDLId" CREDENTIAL_INVALIDCRDLISSUER = "Credential.InvalidCRDLIssuer" CREDENTIAL_INVALIDCLAIM = "Credential.InvalidClaim" CREDENTIAL_INVALIDOPERATECLAIM = "Credential.InvalidOperateClaim" CREDENTIAL_INVALIDPARAS = "Credential.InvalidParas" CREDENTIAL_ISSUERDIDNOTMATCH = "Credential.IssuerDidNotMatch" CREDENTIAL_NOIDINCLAIM = "Credential.NoIdInClaim" CREDENTIAL_VERIFYCRDLFAILED = "Credential.VerifyCRDLFailed" DATABASE_FAILEDOPERATION = "DataBase.FailedOperation" DID_PERMISSIONDENIED = "Did.PermissionDenied" DIDFAILEDOPERATION_DIDNOTEXISTED = "DidFailedOperation.DidNotExisted" DIDFAILEDOPERATION_DIDSTATUSINVALID = "DidFailedOperation.DidStatusInvalid" DIDFAILEDOPERATION_DIDSVCNOTEXISTED = "DidFailedOperation.DidSvcNotExisted" DIDFAILEDOPERATION_NOTDIDCREATOR = "DidFailedOperation.NotDidCreator" DIDSDK_UNKNOWNERROR = "DidSdk.UnknownError" FAILEDOPERATION_INVALIDAUTH = "FailedOperation.InvalidAuth" FAILEDOPERATION_OPERATIONEXCEPTION = "FailedOperation.OperationException" FAILEDOPERATION_PERMISSIONDENIED = "FailedOperation.PermissionDenied" HTTPINVOKER_NEWQUESTERROR = "HttpInvoker.NewQuestError" HTTPINVOKER_SENDQUESTERROR = "HttpInvoker.SendQuestError" INTERNALERROR_APIUNKNOWNERROR = "InternalError.ApiUnknownError" INTERNALERROR_SERVICEDISABLED = "InternalError.ServiceDisabled" INTERNALERROR_SERVICEERROR = "InternalError.ServiceError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETERVALUE_ILLEGALDATETIME = "InvalidParameterValue.IllegalDateTime" INVALIDPARAMETERVALUE_ILLEGALVALUE = "InvalidParameterValue.IllegalValue" INVALIDPARAMETERVALUE_RESOURCENOTEXISTED = "InvalidParameterValue.ResourceNotExisted"
func (*Client) DeactivateTDidWithContext ¶ added in v1.0.839
func (c *Client) DeactivateTDidWithContext(ctx context.Context, request *DeactivateTDidRequest) (response *DeactivateTDidResponse, err error)
DeactivateTDid 更新DID标识的禁用状态
可能返回的错误码:
CAM_INVALIDAUTH = "Cam.InvalidAuth" CREDENTIAL_CREDENTIALEXPIRED = "Credential.CredentialExpired" CREDENTIAL_HOLDERDIDNOTMATCH = "Credential.HolderDidNotMatch" CREDENTIAL_INVALIDCRDLID = "Credential.InvalidCRDLId" CREDENTIAL_INVALIDCRDLISSUER = "Credential.InvalidCRDLIssuer" CREDENTIAL_INVALIDCLAIM = "Credential.InvalidClaim" CREDENTIAL_INVALIDOPERATECLAIM = "Credential.InvalidOperateClaim" CREDENTIAL_INVALIDPARAS = "Credential.InvalidParas" CREDENTIAL_ISSUERDIDNOTMATCH = "Credential.IssuerDidNotMatch" CREDENTIAL_NOIDINCLAIM = "Credential.NoIdInClaim" CREDENTIAL_VERIFYCRDLFAILED = "Credential.VerifyCRDLFailed" DATABASE_FAILEDOPERATION = "DataBase.FailedOperation" DID_PERMISSIONDENIED = "Did.PermissionDenied" DIDFAILEDOPERATION_DIDNOTEXISTED = "DidFailedOperation.DidNotExisted" DIDFAILEDOPERATION_DIDSTATUSINVALID = "DidFailedOperation.DidStatusInvalid" DIDFAILEDOPERATION_DIDSVCNOTEXISTED = "DidFailedOperation.DidSvcNotExisted" DIDFAILEDOPERATION_NOTDIDCREATOR = "DidFailedOperation.NotDidCreator" DIDSDK_UNKNOWNERROR = "DidSdk.UnknownError" FAILEDOPERATION_INVALIDAUTH = "FailedOperation.InvalidAuth" FAILEDOPERATION_OPERATIONEXCEPTION = "FailedOperation.OperationException" FAILEDOPERATION_PERMISSIONDENIED = "FailedOperation.PermissionDenied" HTTPINVOKER_NEWQUESTERROR = "HttpInvoker.NewQuestError" HTTPINVOKER_SENDQUESTERROR = "HttpInvoker.SendQuestError" INTERNALERROR_APIUNKNOWNERROR = "InternalError.ApiUnknownError" INTERNALERROR_SERVICEDISABLED = "InternalError.ServiceDisabled" INTERNALERROR_SERVICEERROR = "InternalError.ServiceError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETERVALUE_ILLEGALDATETIME = "InvalidParameterValue.IllegalDateTime" INVALIDPARAMETERVALUE_ILLEGALVALUE = "InvalidParameterValue.IllegalValue" INVALIDPARAMETERVALUE_RESOURCENOTEXISTED = "InvalidParameterValue.ResourceNotExisted"
func (*Client) GetAppSummary ¶ added in v1.0.840
func (c *Client) GetAppSummary(request *GetAppSummaryRequest) (response *GetAppSummaryResponse, err error)
GetAppSummary 获取某个应用关键指标统计数据
可能返回的错误码:
CAM_INVALIDAUTH = "Cam.InvalidAuth" DATABASE_FAILEDOPERATION = "DataBase.FailedOperation" DIDSDK_UNKNOWNERROR = "DidSdk.UnknownError" FAILEDOPERATION_INVALIDAUTH = "FailedOperation.InvalidAuth" FAILEDOPERATION_OPERATIONEXCEPTION = "FailedOperation.OperationException" FAILEDOPERATION_PERMISSIONDENIED = "FailedOperation.PermissionDenied" HTTPINVOKER_NEWQUESTERROR = "HttpInvoker.NewQuestError" HTTPINVOKER_SENDQUESTERROR = "HttpInvoker.SendQuestError" INTERNALERROR_APIUNKNOWNERROR = "InternalError.ApiUnknownError" INTERNALERROR_SERVICEERROR = "InternalError.ServiceError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETERVALUE_ILLEGALVALUE = "InvalidParameterValue.IllegalValue" INVALIDPARAMETERVALUE_RESOURCENOTEXISTED = "InvalidParameterValue.ResourceNotExisted"
func (*Client) GetAppSummaryWithContext ¶ added in v1.0.840
func (c *Client) GetAppSummaryWithContext(ctx context.Context, request *GetAppSummaryRequest) (response *GetAppSummaryResponse, err error)
GetAppSummary 获取某个应用关键指标统计数据
可能返回的错误码:
CAM_INVALIDAUTH = "Cam.InvalidAuth" DATABASE_FAILEDOPERATION = "DataBase.FailedOperation" DIDSDK_UNKNOWNERROR = "DidSdk.UnknownError" FAILEDOPERATION_INVALIDAUTH = "FailedOperation.InvalidAuth" FAILEDOPERATION_OPERATIONEXCEPTION = "FailedOperation.OperationException" FAILEDOPERATION_PERMISSIONDENIED = "FailedOperation.PermissionDenied" HTTPINVOKER_NEWQUESTERROR = "HttpInvoker.NewQuestError" HTTPINVOKER_SENDQUESTERROR = "HttpInvoker.SendQuestError" INTERNALERROR_APIUNKNOWNERROR = "InternalError.ApiUnknownError" INTERNALERROR_SERVICEERROR = "InternalError.ServiceError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETERVALUE_ILLEGALVALUE = "InvalidParameterValue.IllegalValue" INVALIDPARAMETERVALUE_RESOURCENOTEXISTED = "InvalidParameterValue.ResourceNotExisted"
func (*Client) GetCredentialState ¶ added in v1.0.839
func (c *Client) GetCredentialState(request *GetCredentialStateRequest) (response *GetCredentialStateResponse, err error)
GetCredentialState 获取凭证链上状态信息
可能返回的错误码:
CAM_INVALIDAUTH = "Cam.InvalidAuth" DATABASE_FAILEDOPERATION = "DataBase.FailedOperation" DIDFAILEDOPERATION_DIDSVCNOTEXISTED = "DidFailedOperation.DidSvcNotExisted" DIDSDK_UNKNOWNERROR = "DidSdk.UnknownError" FAILEDOPERATION_INVALIDAUTH = "FailedOperation.InvalidAuth" FAILEDOPERATION_OPERATIONEXCEPTION = "FailedOperation.OperationException" FAILEDOPERATION_PERMISSIONDENIED = "FailedOperation.PermissionDenied" HTTPINVOKER_NEWQUESTERROR = "HttpInvoker.NewQuestError" HTTPINVOKER_SENDQUESTERROR = "HttpInvoker.SendQuestError" INTERNALERROR_APIUNKNOWNERROR = "InternalError.ApiUnknownError" INTERNALERROR_SERVICEERROR = "InternalError.ServiceError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETERVALUE_ILLEGALDATETIME = "InvalidParameterValue.IllegalDateTime" INVALIDPARAMETERVALUE_ILLEGALVALUE = "InvalidParameterValue.IllegalValue" INVALIDPARAMETERVALUE_RESOURCENOTEXISTED = "InvalidParameterValue.ResourceNotExisted"
func (*Client) GetCredentialStateWithContext ¶ added in v1.0.839
func (c *Client) GetCredentialStateWithContext(ctx context.Context, request *GetCredentialStateRequest) (response *GetCredentialStateResponse, err error)
GetCredentialState 获取凭证链上状态信息
可能返回的错误码:
CAM_INVALIDAUTH = "Cam.InvalidAuth" DATABASE_FAILEDOPERATION = "DataBase.FailedOperation" DIDFAILEDOPERATION_DIDSVCNOTEXISTED = "DidFailedOperation.DidSvcNotExisted" DIDSDK_UNKNOWNERROR = "DidSdk.UnknownError" FAILEDOPERATION_INVALIDAUTH = "FailedOperation.InvalidAuth" FAILEDOPERATION_OPERATIONEXCEPTION = "FailedOperation.OperationException" FAILEDOPERATION_PERMISSIONDENIED = "FailedOperation.PermissionDenied" HTTPINVOKER_NEWQUESTERROR = "HttpInvoker.NewQuestError" HTTPINVOKER_SENDQUESTERROR = "HttpInvoker.SendQuestError" INTERNALERROR_APIUNKNOWNERROR = "InternalError.ApiUnknownError" INTERNALERROR_SERVICEERROR = "InternalError.ServiceError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETERVALUE_ILLEGALDATETIME = "InvalidParameterValue.IllegalDateTime" INVALIDPARAMETERVALUE_ILLEGALVALUE = "InvalidParameterValue.IllegalValue" INVALIDPARAMETERVALUE_RESOURCENOTEXISTED = "InvalidParameterValue.ResourceNotExisted"
func (*Client) GetOverSummary ¶ added in v1.0.840
func (c *Client) GetOverSummary(request *GetOverSummaryRequest) (response *GetOverSummaryResponse, err error)
GetOverSummary 获取某个应用关键指标统计数据
可能返回的错误码:
CAM_INVALIDAUTH = "Cam.InvalidAuth" DATABASE_FAILEDOPERATION = "DataBase.FailedOperation" DIDSDK_UNKNOWNERROR = "DidSdk.UnknownError" FAILEDOPERATION_INVALIDAUTH = "FailedOperation.InvalidAuth" FAILEDOPERATION_OPERATIONEXCEPTION = "FailedOperation.OperationException" FAILEDOPERATION_PERMISSIONDENIED = "FailedOperation.PermissionDenied" HTTPINVOKER_NEWQUESTERROR = "HttpInvoker.NewQuestError" HTTPINVOKER_SENDQUESTERROR = "HttpInvoker.SendQuestError" INTERNALERROR_APIUNKNOWNERROR = "InternalError.ApiUnknownError" INTERNALERROR_SERVICEERROR = "InternalError.ServiceError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETERVALUE_ILLEGALVALUE = "InvalidParameterValue.IllegalValue" INVALIDPARAMETERVALUE_RESOURCENOTEXISTED = "InvalidParameterValue.ResourceNotExisted"
func (*Client) GetOverSummaryWithContext ¶ added in v1.0.840
func (c *Client) GetOverSummaryWithContext(ctx context.Context, request *GetOverSummaryRequest) (response *GetOverSummaryResponse, err error)
GetOverSummary 获取某个应用关键指标统计数据
可能返回的错误码:
CAM_INVALIDAUTH = "Cam.InvalidAuth" DATABASE_FAILEDOPERATION = "DataBase.FailedOperation" DIDSDK_UNKNOWNERROR = "DidSdk.UnknownError" FAILEDOPERATION_INVALIDAUTH = "FailedOperation.InvalidAuth" FAILEDOPERATION_OPERATIONEXCEPTION = "FailedOperation.OperationException" FAILEDOPERATION_PERMISSIONDENIED = "FailedOperation.PermissionDenied" HTTPINVOKER_NEWQUESTERROR = "HttpInvoker.NewQuestError" HTTPINVOKER_SENDQUESTERROR = "HttpInvoker.SendQuestError" INTERNALERROR_APIUNKNOWNERROR = "InternalError.ApiUnknownError" INTERNALERROR_SERVICEERROR = "InternalError.ServiceError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETERVALUE_ILLEGALVALUE = "InvalidParameterValue.IllegalValue" INVALIDPARAMETERVALUE_RESOURCENOTEXISTED = "InvalidParameterValue.ResourceNotExisted"
func (*Client) GetTDidByObjectId ¶ added in v1.0.840
func (c *Client) GetTDidByObjectId(request *GetTDidByObjectIdRequest) (response *GetTDidByObjectIdResponse, err error)
GetTDidByObjectId 通过业务层绑定的对象ID获取DID标识
可能返回的错误码:
CAM_INVALIDAUTH = "Cam.InvalidAuth" DATABASE_FAILEDOPERATION = "DataBase.FailedOperation" DID_PERMISSIONDENIED = "Did.PermissionDenied" DIDFAILEDOPERATION_DIDEXISTED = "DidFailedOperation.DidExisted" DIDFAILEDOPERATION_DIDNOTEXISTED = "DidFailedOperation.DidNotExisted" DIDFAILEDOPERATION_DIDOBJECTIDEXISTED = "DidFailedOperation.DidObjectIdExisted" DIDFAILEDOPERATION_DIDSTATUSINVALID = "DidFailedOperation.DidStatusInvalid" DIDFAILEDOPERATION_DIDSVCNOTEXISTED = "DidFailedOperation.DidSvcNotExisted" DIDFAILEDOPERATION_GETDIDDOCFILED = "DidFailedOperation.GetDidDocFiled" DIDSDK_UNKNOWNERROR = "DidSdk.UnknownError" FAILEDOPERATION_INVALIDAUTH = "FailedOperation.InvalidAuth" FAILEDOPERATION_OPERATIONEXCEPTION = "FailedOperation.OperationException" FAILEDOPERATION_PERMISSIONDENIED = "FailedOperation.PermissionDenied" HTTPINVOKER_NEWQUESTERROR = "HttpInvoker.NewQuestError" HTTPINVOKER_SENDQUESTERROR = "HttpInvoker.SendQuestError" INTERNALERROR_APIUNKNOWNERROR = "InternalError.ApiUnknownError" INTERNALERROR_SERVICEERROR = "InternalError.ServiceError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETERVALUE_ILLEGALDATETIME = "InvalidParameterValue.IllegalDateTime" INVALIDPARAMETERVALUE_ILLEGALVALUE = "InvalidParameterValue.IllegalValue" INVALIDPARAMETERVALUE_RESOURCENOTEXISTED = "InvalidParameterValue.ResourceNotExisted"
func (*Client) GetTDidByObjectIdWithContext ¶ added in v1.0.840
func (c *Client) GetTDidByObjectIdWithContext(ctx context.Context, request *GetTDidByObjectIdRequest) (response *GetTDidByObjectIdResponse, err error)
GetTDidByObjectId 通过业务层绑定的对象ID获取DID标识
可能返回的错误码:
CAM_INVALIDAUTH = "Cam.InvalidAuth" DATABASE_FAILEDOPERATION = "DataBase.FailedOperation" DID_PERMISSIONDENIED = "Did.PermissionDenied" DIDFAILEDOPERATION_DIDEXISTED = "DidFailedOperation.DidExisted" DIDFAILEDOPERATION_DIDNOTEXISTED = "DidFailedOperation.DidNotExisted" DIDFAILEDOPERATION_DIDOBJECTIDEXISTED = "DidFailedOperation.DidObjectIdExisted" DIDFAILEDOPERATION_DIDSTATUSINVALID = "DidFailedOperation.DidStatusInvalid" DIDFAILEDOPERATION_DIDSVCNOTEXISTED = "DidFailedOperation.DidSvcNotExisted" DIDFAILEDOPERATION_GETDIDDOCFILED = "DidFailedOperation.GetDidDocFiled" DIDSDK_UNKNOWNERROR = "DidSdk.UnknownError" FAILEDOPERATION_INVALIDAUTH = "FailedOperation.InvalidAuth" FAILEDOPERATION_OPERATIONEXCEPTION = "FailedOperation.OperationException" FAILEDOPERATION_PERMISSIONDENIED = "FailedOperation.PermissionDenied" HTTPINVOKER_NEWQUESTERROR = "HttpInvoker.NewQuestError" HTTPINVOKER_SENDQUESTERROR = "HttpInvoker.SendQuestError" INTERNALERROR_APIUNKNOWNERROR = "InternalError.ApiUnknownError" INTERNALERROR_SERVICEERROR = "InternalError.ServiceError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETERVALUE_ILLEGALDATETIME = "InvalidParameterValue.IllegalDateTime" INVALIDPARAMETERVALUE_ILLEGALVALUE = "InvalidParameterValue.IllegalValue" INVALIDPARAMETERVALUE_RESOURCENOTEXISTED = "InvalidParameterValue.ResourceNotExisted"
func (*Client) GetTDidDocument ¶ added in v1.0.839
func (c *Client) GetTDidDocument(request *GetTDidDocumentRequest) (response *GetTDidDocumentResponse, err error)
GetTDidDocument 获取DID标识的文档
可能返回的错误码:
CAM_INVALIDAUTH = "Cam.InvalidAuth" DATABASE_FAILEDOPERATION = "DataBase.FailedOperation" DIDFAILEDOPERATION_DIDNOTEXISTED = "DidFailedOperation.DidNotExisted" DIDFAILEDOPERATION_DIDSVCNOTEXISTED = "DidFailedOperation.DidSvcNotExisted" DIDFAILEDOPERATION_GETDIDDOCFILED = "DidFailedOperation.GetDidDocFiled" DIDSDK_UNKNOWNERROR = "DidSdk.UnknownError" FAILEDOPERATION_INVALIDAUTH = "FailedOperation.InvalidAuth" FAILEDOPERATION_OPERATIONEXCEPTION = "FailedOperation.OperationException" FAILEDOPERATION_PERMISSIONDENIED = "FailedOperation.PermissionDenied" HTTPINVOKER_NEWQUESTERROR = "HttpInvoker.NewQuestError" HTTPINVOKER_SENDQUESTERROR = "HttpInvoker.SendQuestError" INTERNALERROR_APIUNKNOWNERROR = "InternalError.ApiUnknownError" INTERNALERROR_SERVICEERROR = "InternalError.ServiceError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETERVALUE_ILLEGALDATETIME = "InvalidParameterValue.IllegalDateTime" INVALIDPARAMETERVALUE_ILLEGALVALUE = "InvalidParameterValue.IllegalValue" INVALIDPARAMETERVALUE_RESOURCENOTEXISTED = "InvalidParameterValue.ResourceNotExisted"
func (*Client) GetTDidDocumentWithContext ¶ added in v1.0.839
func (c *Client) GetTDidDocumentWithContext(ctx context.Context, request *GetTDidDocumentRequest) (response *GetTDidDocumentResponse, err error)
GetTDidDocument 获取DID标识的文档
可能返回的错误码:
CAM_INVALIDAUTH = "Cam.InvalidAuth" DATABASE_FAILEDOPERATION = "DataBase.FailedOperation" DIDFAILEDOPERATION_DIDNOTEXISTED = "DidFailedOperation.DidNotExisted" DIDFAILEDOPERATION_DIDSVCNOTEXISTED = "DidFailedOperation.DidSvcNotExisted" DIDFAILEDOPERATION_GETDIDDOCFILED = "DidFailedOperation.GetDidDocFiled" DIDSDK_UNKNOWNERROR = "DidSdk.UnknownError" FAILEDOPERATION_INVALIDAUTH = "FailedOperation.InvalidAuth" FAILEDOPERATION_OPERATIONEXCEPTION = "FailedOperation.OperationException" FAILEDOPERATION_PERMISSIONDENIED = "FailedOperation.PermissionDenied" HTTPINVOKER_NEWQUESTERROR = "HttpInvoker.NewQuestError" HTTPINVOKER_SENDQUESTERROR = "HttpInvoker.SendQuestError" INTERNALERROR_APIUNKNOWNERROR = "InternalError.ApiUnknownError" INTERNALERROR_SERVICEERROR = "InternalError.ServiceError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETERVALUE_ILLEGALDATETIME = "InvalidParameterValue.IllegalDateTime" INVALIDPARAMETERVALUE_ILLEGALVALUE = "InvalidParameterValue.IllegalValue" INVALIDPARAMETERVALUE_RESOURCENOTEXISTED = "InvalidParameterValue.ResourceNotExisted"
func (*Client) GetTDidPubKey ¶ added in v1.0.840
func (c *Client) GetTDidPubKey(request *GetTDidPubKeyRequest) (response *GetTDidPubKeyResponse, err error)
GetTDidPubKey 查询DID标识的认证公钥
可能返回的错误码:
CAM_INVALIDAUTH = "Cam.InvalidAuth" DATABASE_FAILEDOPERATION = "DataBase.FailedOperation" DIDFAILEDOPERATION_DIDNOTEXISTED = "DidFailedOperation.DidNotExisted" DIDFAILEDOPERATION_DIDSVCNOTEXISTED = "DidFailedOperation.DidSvcNotExisted" DIDFAILEDOPERATION_GETDIDDOCFILED = "DidFailedOperation.GetDidDocFiled" DIDSDK_UNKNOWNERROR = "DidSdk.UnknownError" FAILEDOPERATION_INVALIDAUTH = "FailedOperation.InvalidAuth" FAILEDOPERATION_OPERATIONEXCEPTION = "FailedOperation.OperationException" FAILEDOPERATION_PERMISSIONDENIED = "FailedOperation.PermissionDenied" HTTPINVOKER_NEWQUESTERROR = "HttpInvoker.NewQuestError" HTTPINVOKER_SENDQUESTERROR = "HttpInvoker.SendQuestError" INTERNALERROR_APIUNKNOWNERROR = "InternalError.ApiUnknownError" INTERNALERROR_SERVICEDISABLED = "InternalError.ServiceDisabled" INTERNALERROR_SERVICEERROR = "InternalError.ServiceError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETERVALUE_ILLEGALVALUE = "InvalidParameterValue.IllegalValue" INVALIDPARAMETERVALUE_RESOURCENOTEXISTED = "InvalidParameterValue.ResourceNotExisted"
func (*Client) GetTDidPubKeyWithContext ¶ added in v1.0.840
func (c *Client) GetTDidPubKeyWithContext(ctx context.Context, request *GetTDidPubKeyRequest) (response *GetTDidPubKeyResponse, err error)
GetTDidPubKey 查询DID标识的认证公钥
可能返回的错误码:
CAM_INVALIDAUTH = "Cam.InvalidAuth" DATABASE_FAILEDOPERATION = "DataBase.FailedOperation" DIDFAILEDOPERATION_DIDNOTEXISTED = "DidFailedOperation.DidNotExisted" DIDFAILEDOPERATION_DIDSVCNOTEXISTED = "DidFailedOperation.DidSvcNotExisted" DIDFAILEDOPERATION_GETDIDDOCFILED = "DidFailedOperation.GetDidDocFiled" DIDSDK_UNKNOWNERROR = "DidSdk.UnknownError" FAILEDOPERATION_INVALIDAUTH = "FailedOperation.InvalidAuth" FAILEDOPERATION_OPERATIONEXCEPTION = "FailedOperation.OperationException" FAILEDOPERATION_PERMISSIONDENIED = "FailedOperation.PermissionDenied" HTTPINVOKER_NEWQUESTERROR = "HttpInvoker.NewQuestError" HTTPINVOKER_SENDQUESTERROR = "HttpInvoker.SendQuestError" INTERNALERROR_APIUNKNOWNERROR = "InternalError.ApiUnknownError" INTERNALERROR_SERVICEDISABLED = "InternalError.ServiceDisabled" INTERNALERROR_SERVICEERROR = "InternalError.ServiceError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETERVALUE_ILLEGALVALUE = "InvalidParameterValue.IllegalValue" INVALIDPARAMETERVALUE_RESOURCENOTEXISTED = "InvalidParameterValue.ResourceNotExisted"
func (*Client) IssueCredential ¶ added in v1.0.839
func (c *Client) IssueCredential(request *IssueCredentialRequest) (response *IssueCredentialResponse, err error)
IssueCredential 颁发可验证凭证
可能返回的错误码:
CAM_INVALIDAUTH = "Cam.InvalidAuth" CREDENTIAL_CPTNOTEXISTED = "Credential.CPTNotExisted" CREDENTIAL_CREDENTIALEXPIRED = "Credential.CredentialExpired" CREDENTIAL_FAILEDCREATEPRESENTATION = "Credential.FailedCreatePresentation" CREDENTIAL_GENERATECOMMITMENTFAILED = "Credential.GenerateCommitmentFailed" CREDENTIAL_GENERATERANGEPROOF = "Credential.GenerateRangeProof" CREDENTIAL_HOLDERDIDNOTMATCH = "Credential.HolderDidNotMatch" CREDENTIAL_INVALIDCRDLID = "Credential.InvalidCRDLId" CREDENTIAL_INVALIDCRDLISSUER = "Credential.InvalidCRDLIssuer" CREDENTIAL_INVALIDCLAIM = "Credential.InvalidClaim" CREDENTIAL_INVALIDDISCLOSUREPOLICY = "Credential.InvalidDisclosurePolicy" CREDENTIAL_INVALIDOPERATECLAIM = "Credential.InvalidOperateClaim" CREDENTIAL_INVALIDPARAS = "Credential.InvalidParas" CREDENTIAL_INVALIDPROOFCOMMITMENT = "Credential.InvalidProofCommitment" CREDENTIAL_INVALIDPROOFVALUE = "Credential.InvalidProofValue" CREDENTIAL_INVALIDZEROPROOF = "Credential.InvalidZeroProof" CREDENTIAL_ISSUERDIDNOTMATCH = "Credential.IssuerDidNotMatch" CREDENTIAL_NOIDINCLAIM = "Credential.NoIdInClaim" CREDENTIAL_PROOFVALUENOTEXISTED = "Credential.ProofValueNotExisted" CREDENTIAL_VERIFYCRDLFAILED = "Credential.VerifyCRDLFailed" CREDENTIAL_VERIFYZEROPROOFFAILED = "Credential.VerifyZeroProofFailed" DATABASE_FAILEDOPERATION = "DataBase.FailedOperation" FAILEDOPERATION_INVALIDAUTH = "FailedOperation.InvalidAuth" FAILEDOPERATION_INVALIDPARAMETERVALUE = "FailedOperation.InvalidParameterValue" FAILEDOPERATION_OPERATIONEXCEPTION = "FailedOperation.OperationException" FAILEDOPERATION_PERMISSIONDENIED = "FailedOperation.PermissionDenied" HTTPINVOKER_NEWQUESTERROR = "HttpInvoker.NewQuestError" HTTPINVOKER_SENDQUESTERROR = "HttpInvoker.SendQuestError" INTERNALERROR_APIUNKNOWNERROR = "InternalError.ApiUnknownError" INTERNALERROR_SERVICEDISABLED = "InternalError.ServiceDisabled" INTERNALERROR_SERVICEERROR = "InternalError.ServiceError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETERVALUE_ILLEGALDATETIME = "InvalidParameterValue.IllegalDateTime" INVALIDPARAMETERVALUE_ILLEGALVALUE = "InvalidParameterValue.IllegalValue" INVALIDPARAMETERVALUE_RESOURCENOTEXISTED = "InvalidParameterValue.ResourceNotExisted"
func (*Client) IssueCredentialWithContext ¶ added in v1.0.839
func (c *Client) IssueCredentialWithContext(ctx context.Context, request *IssueCredentialRequest) (response *IssueCredentialResponse, err error)
IssueCredential 颁发可验证凭证
可能返回的错误码:
CAM_INVALIDAUTH = "Cam.InvalidAuth" CREDENTIAL_CPTNOTEXISTED = "Credential.CPTNotExisted" CREDENTIAL_CREDENTIALEXPIRED = "Credential.CredentialExpired" CREDENTIAL_FAILEDCREATEPRESENTATION = "Credential.FailedCreatePresentation" CREDENTIAL_GENERATECOMMITMENTFAILED = "Credential.GenerateCommitmentFailed" CREDENTIAL_GENERATERANGEPROOF = "Credential.GenerateRangeProof" CREDENTIAL_HOLDERDIDNOTMATCH = "Credential.HolderDidNotMatch" CREDENTIAL_INVALIDCRDLID = "Credential.InvalidCRDLId" CREDENTIAL_INVALIDCRDLISSUER = "Credential.InvalidCRDLIssuer" CREDENTIAL_INVALIDCLAIM = "Credential.InvalidClaim" CREDENTIAL_INVALIDDISCLOSUREPOLICY = "Credential.InvalidDisclosurePolicy" CREDENTIAL_INVALIDOPERATECLAIM = "Credential.InvalidOperateClaim" CREDENTIAL_INVALIDPARAS = "Credential.InvalidParas" CREDENTIAL_INVALIDPROOFCOMMITMENT = "Credential.InvalidProofCommitment" CREDENTIAL_INVALIDPROOFVALUE = "Credential.InvalidProofValue" CREDENTIAL_INVALIDZEROPROOF = "Credential.InvalidZeroProof" CREDENTIAL_ISSUERDIDNOTMATCH = "Credential.IssuerDidNotMatch" CREDENTIAL_NOIDINCLAIM = "Credential.NoIdInClaim" CREDENTIAL_PROOFVALUENOTEXISTED = "Credential.ProofValueNotExisted" CREDENTIAL_VERIFYCRDLFAILED = "Credential.VerifyCRDLFailed" CREDENTIAL_VERIFYZEROPROOFFAILED = "Credential.VerifyZeroProofFailed" DATABASE_FAILEDOPERATION = "DataBase.FailedOperation" FAILEDOPERATION_INVALIDAUTH = "FailedOperation.InvalidAuth" FAILEDOPERATION_INVALIDPARAMETERVALUE = "FailedOperation.InvalidParameterValue" FAILEDOPERATION_OPERATIONEXCEPTION = "FailedOperation.OperationException" FAILEDOPERATION_PERMISSIONDENIED = "FailedOperation.PermissionDenied" HTTPINVOKER_NEWQUESTERROR = "HttpInvoker.NewQuestError" HTTPINVOKER_SENDQUESTERROR = "HttpInvoker.SendQuestError" INTERNALERROR_APIUNKNOWNERROR = "InternalError.ApiUnknownError" INTERNALERROR_SERVICEDISABLED = "InternalError.ServiceDisabled" INTERNALERROR_SERVICEERROR = "InternalError.ServiceError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETERVALUE_ILLEGALDATETIME = "InvalidParameterValue.IllegalDateTime" INVALIDPARAMETERVALUE_ILLEGALVALUE = "InvalidParameterValue.IllegalValue" INVALIDPARAMETERVALUE_RESOURCENOTEXISTED = "InvalidParameterValue.ResourceNotExisted"
func (*Client) QueryAuthorityInfo ¶ added in v1.0.840
func (c *Client) QueryAuthorityInfo(request *QueryAuthorityInfoRequest) (response *QueryAuthorityInfoResponse, err error)
QueryAuthorityInfo 查询权威机构信息
可能返回的错误码:
AUTHORITY_AUTHORITYNAMELENGTHLONG = "Authority.AuthorityNameLengthLong" AUTHORITY_AUTHORITYREMARKLENGTHLONG = "Authority.AuthorityRemarkLengthLong" AUTHORITY_ERRCODEAUTHORITYREGISTERED = "Authority.ErrCodeAuthorityRegistered" AUTHORITY_ERRCODEDIDAUTHORITYREGISTERED = "Authority.ErrCodeDidAuthorityRegistered" CAM_INVALIDAUTH = "Cam.InvalidAuth" DATABASE_FAILEDOPERATION = "DataBase.FailedOperation" DIDFAILEDOPERATION_NOTAUTHORITY = "DidFailedOperation.NotAuthority" DIDSDK_UNKNOWNERROR = "DidSdk.UnknownError" FAILEDOPERATION_INVALIDAUTH = "FailedOperation.InvalidAuth" FAILEDOPERATION_OPERATIONEXCEPTION = "FailedOperation.OperationException" FAILEDOPERATION_PERMISSIONDENIED = "FailedOperation.PermissionDenied" HTTPINVOKER_NEWQUESTERROR = "HttpInvoker.NewQuestError" HTTPINVOKER_SENDQUESTERROR = "HttpInvoker.SendQuestError" INTERNALERROR_APIUNKNOWNERROR = "InternalError.ApiUnknownError" INTERNALERROR_SERVICEERROR = "InternalError.ServiceError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETERVALUE_ILLEGALVALUE = "InvalidParameterValue.IllegalValue" INVALIDPARAMETERVALUE_RESOURCENOTEXISTED = "InvalidParameterValue.ResourceNotExisted"
func (*Client) QueryAuthorityInfoWithContext ¶ added in v1.0.840
func (c *Client) QueryAuthorityInfoWithContext(ctx context.Context, request *QueryAuthorityInfoRequest) (response *QueryAuthorityInfoResponse, err error)
QueryAuthorityInfo 查询权威机构信息
可能返回的错误码:
AUTHORITY_AUTHORITYNAMELENGTHLONG = "Authority.AuthorityNameLengthLong" AUTHORITY_AUTHORITYREMARKLENGTHLONG = "Authority.AuthorityRemarkLengthLong" AUTHORITY_ERRCODEAUTHORITYREGISTERED = "Authority.ErrCodeAuthorityRegistered" AUTHORITY_ERRCODEDIDAUTHORITYREGISTERED = "Authority.ErrCodeDidAuthorityRegistered" CAM_INVALIDAUTH = "Cam.InvalidAuth" DATABASE_FAILEDOPERATION = "DataBase.FailedOperation" DIDFAILEDOPERATION_NOTAUTHORITY = "DidFailedOperation.NotAuthority" DIDSDK_UNKNOWNERROR = "DidSdk.UnknownError" FAILEDOPERATION_INVALIDAUTH = "FailedOperation.InvalidAuth" FAILEDOPERATION_OPERATIONEXCEPTION = "FailedOperation.OperationException" FAILEDOPERATION_PERMISSIONDENIED = "FailedOperation.PermissionDenied" HTTPINVOKER_NEWQUESTERROR = "HttpInvoker.NewQuestError" HTTPINVOKER_SENDQUESTERROR = "HttpInvoker.SendQuestError" INTERNALERROR_APIUNKNOWNERROR = "InternalError.ApiUnknownError" INTERNALERROR_SERVICEERROR = "InternalError.ServiceError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETERVALUE_ILLEGALVALUE = "InvalidParameterValue.IllegalValue" INVALIDPARAMETERVALUE_RESOURCENOTEXISTED = "InvalidParameterValue.ResourceNotExisted"
func (*Client) QueryCPT ¶ added in v1.0.840
func (c *Client) QueryCPT(request *QueryCPTRequest) (response *QueryCPTResponse, err error)
QueryCPT 查询凭证模板内容
可能返回的错误码:
CAM_INVALIDAUTH = "Cam.InvalidAuth" CPT_CREATECPTFAILED = "Cpt.CreateCPTFailed" CPT_INVALIDCPTJSON = "Cpt.InvalidCPTJson" CREDENTIAL_CPTNOTEXISTED = "Credential.CPTNotExisted" DATABASE_FAILEDOPERATION = "DataBase.FailedOperation" FAILEDOPERATION_INVALIDAUTH = "FailedOperation.InvalidAuth" FAILEDOPERATION_OPERATIONEXCEPTION = "FailedOperation.OperationException" FAILEDOPERATION_PERMISSIONDENIED = "FailedOperation.PermissionDenied" HTTPINVOKER_NEWQUESTERROR = "HttpInvoker.NewQuestError" HTTPINVOKER_SENDQUESTERROR = "HttpInvoker.SendQuestError" INTERNALERROR_APIUNKNOWNERROR = "InternalError.ApiUnknownError" INTERNALERROR_SERVICEERROR = "InternalError.ServiceError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETERVALUE_ILLEGALDATETIME = "InvalidParameterValue.IllegalDateTime" INVALIDPARAMETERVALUE_ILLEGALVALUE = "InvalidParameterValue.IllegalValue" INVALIDPARAMETERVALUE_RESOURCENOTEXISTED = "InvalidParameterValue.ResourceNotExisted"
func (*Client) QueryCPTWithContext ¶ added in v1.0.840
func (c *Client) QueryCPTWithContext(ctx context.Context, request *QueryCPTRequest) (response *QueryCPTResponse, err error)
QueryCPT 查询凭证模板内容
可能返回的错误码:
CAM_INVALIDAUTH = "Cam.InvalidAuth" CPT_CREATECPTFAILED = "Cpt.CreateCPTFailed" CPT_INVALIDCPTJSON = "Cpt.InvalidCPTJson" CREDENTIAL_CPTNOTEXISTED = "Credential.CPTNotExisted" DATABASE_FAILEDOPERATION = "DataBase.FailedOperation" FAILEDOPERATION_INVALIDAUTH = "FailedOperation.InvalidAuth" FAILEDOPERATION_OPERATIONEXCEPTION = "FailedOperation.OperationException" FAILEDOPERATION_PERMISSIONDENIED = "FailedOperation.PermissionDenied" HTTPINVOKER_NEWQUESTERROR = "HttpInvoker.NewQuestError" HTTPINVOKER_SENDQUESTERROR = "HttpInvoker.SendQuestError" INTERNALERROR_APIUNKNOWNERROR = "InternalError.ApiUnknownError" INTERNALERROR_SERVICEERROR = "InternalError.ServiceError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETERVALUE_ILLEGALDATETIME = "InvalidParameterValue.IllegalDateTime" INVALIDPARAMETERVALUE_ILLEGALVALUE = "InvalidParameterValue.IllegalValue" INVALIDPARAMETERVALUE_RESOURCENOTEXISTED = "InvalidParameterValue.ResourceNotExisted"
func (*Client) SetTDidAttribute ¶ added in v1.0.840
func (c *Client) SetTDidAttribute(request *SetTDidAttributeRequest) (response *SetTDidAttributeResponse, err error)
SetTDidAttribute 设置DID文档的自定义属性
可能返回的错误码:
CAM_INVALIDAUTH = "Cam.InvalidAuth" DATABASE_FAILEDOPERATION = "DataBase.FailedOperation" DID_PERMISSIONDENIED = "Did.PermissionDenied" DIDFAILEDOPERATION_DIDNOTEXISTED = "DidFailedOperation.DidNotExisted" DIDFAILEDOPERATION_DIDSTATUSINVALID = "DidFailedOperation.DidStatusInvalid" DIDFAILEDOPERATION_DIDSVCNOTEXISTED = "DidFailedOperation.DidSvcNotExisted" DIDFAILEDOPERATION_NOTDIDCREATOR = "DidFailedOperation.NotDidCreator" DIDSDK_UNKNOWNERROR = "DidSdk.UnknownError" FAILEDOPERATION_INVALIDAUTH = "FailedOperation.InvalidAuth" FAILEDOPERATION_OPERATIONEXCEPTION = "FailedOperation.OperationException" FAILEDOPERATION_PERMISSIONDENIED = "FailedOperation.PermissionDenied" HTTPINVOKER_NEWQUESTERROR = "HttpInvoker.NewQuestError" HTTPINVOKER_SENDQUESTERROR = "HttpInvoker.SendQuestError" INTERNALERROR_APIUNKNOWNERROR = "InternalError.ApiUnknownError" INTERNALERROR_SERVICEDISABLED = "InternalError.ServiceDisabled" INTERNALERROR_SERVICEERROR = "InternalError.ServiceError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETERVALUE_ILLEGALDATETIME = "InvalidParameterValue.IllegalDateTime" INVALIDPARAMETERVALUE_ILLEGALVALUE = "InvalidParameterValue.IllegalValue" INVALIDPARAMETERVALUE_RESOURCENOTEXISTED = "InvalidParameterValue.ResourceNotExisted"
func (*Client) SetTDidAttributeWithContext ¶ added in v1.0.840
func (c *Client) SetTDidAttributeWithContext(ctx context.Context, request *SetTDidAttributeRequest) (response *SetTDidAttributeResponse, err error)
SetTDidAttribute 设置DID文档的自定义属性
可能返回的错误码:
CAM_INVALIDAUTH = "Cam.InvalidAuth" DATABASE_FAILEDOPERATION = "DataBase.FailedOperation" DID_PERMISSIONDENIED = "Did.PermissionDenied" DIDFAILEDOPERATION_DIDNOTEXISTED = "DidFailedOperation.DidNotExisted" DIDFAILEDOPERATION_DIDSTATUSINVALID = "DidFailedOperation.DidStatusInvalid" DIDFAILEDOPERATION_DIDSVCNOTEXISTED = "DidFailedOperation.DidSvcNotExisted" DIDFAILEDOPERATION_NOTDIDCREATOR = "DidFailedOperation.NotDidCreator" DIDSDK_UNKNOWNERROR = "DidSdk.UnknownError" FAILEDOPERATION_INVALIDAUTH = "FailedOperation.InvalidAuth" FAILEDOPERATION_OPERATIONEXCEPTION = "FailedOperation.OperationException" FAILEDOPERATION_PERMISSIONDENIED = "FailedOperation.PermissionDenied" HTTPINVOKER_NEWQUESTERROR = "HttpInvoker.NewQuestError" HTTPINVOKER_SENDQUESTERROR = "HttpInvoker.SendQuestError" INTERNALERROR_APIUNKNOWNERROR = "InternalError.ApiUnknownError" INTERNALERROR_SERVICEDISABLED = "InternalError.ServiceDisabled" INTERNALERROR_SERVICEERROR = "InternalError.ServiceError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETERVALUE_ILLEGALDATETIME = "InvalidParameterValue.IllegalDateTime" INVALIDPARAMETERVALUE_ILLEGALVALUE = "InvalidParameterValue.IllegalValue" INVALIDPARAMETERVALUE_RESOURCENOTEXISTED = "InvalidParameterValue.ResourceNotExisted"
func (*Client) UpdateCredentialState ¶ added in v1.0.839
func (c *Client) UpdateCredentialState(request *UpdateCredentialStateRequest) (response *UpdateCredentialStateResponse, err error)
UpdateCredentialState 更新凭证的链上状态
可能返回的错误码:
CAM_INVALIDAUTH = "Cam.InvalidAuth" CPT_CREATECPTFAILED = "Cpt.CreateCPTFailed" CREDENTIAL_CPTNOTEXISTED = "Credential.CPTNotExisted" CREDENTIAL_CREDENTIALEXPIRED = "Credential.CredentialExpired" CREDENTIAL_FAILEDCREATEPRESENTATION = "Credential.FailedCreatePresentation" CREDENTIAL_GENERATECOMMITMENTFAILED = "Credential.GenerateCommitmentFailed" CREDENTIAL_GENERATERANGEPROOF = "Credential.GenerateRangeProof" CREDENTIAL_HOLDERDIDNOTMATCH = "Credential.HolderDidNotMatch" CREDENTIAL_INVALIDCRDLID = "Credential.InvalidCRDLId" CREDENTIAL_INVALIDCRDLISSUER = "Credential.InvalidCRDLIssuer" CREDENTIAL_INVALIDCLAIM = "Credential.InvalidClaim" CREDENTIAL_INVALIDDISCLOSUREPOLICY = "Credential.InvalidDisclosurePolicy" CREDENTIAL_INVALIDOPERATECLAIM = "Credential.InvalidOperateClaim" CREDENTIAL_INVALIDPARAS = "Credential.InvalidParas" CREDENTIAL_INVALIDPROOFCOMMITMENT = "Credential.InvalidProofCommitment" CREDENTIAL_INVALIDPROOFVALUE = "Credential.InvalidProofValue" CREDENTIAL_INVALIDZEROPROOF = "Credential.InvalidZeroProof" CREDENTIAL_ISSUERDIDNOTMATCH = "Credential.IssuerDidNotMatch" CREDENTIAL_NOIDINCLAIM = "Credential.NoIdInClaim" CREDENTIAL_PROOFVALUENOTEXISTED = "Credential.ProofValueNotExisted" CREDENTIAL_VERIFYCRDLFAILED = "Credential.VerifyCRDLFailed" CREDENTIAL_VERIFYZEROPROOFFAILED = "Credential.VerifyZeroProofFailed" DATABASE_FAILEDOPERATION = "DataBase.FailedOperation" DIDFAILEDOPERATION_DIDNOTEXISTED = "DidFailedOperation.DidNotExisted" DIDFAILEDOPERATION_DIDSVCNOTEXISTED = "DidFailedOperation.DidSvcNotExisted" DIDFAILEDOPERATION_NOTDIDCREATOR = "DidFailedOperation.NotDidCreator" DIDSDK_UNKNOWNERROR = "DidSdk.UnknownError" FAILEDOPERATION_INVALIDAUTH = "FailedOperation.InvalidAuth" FAILEDOPERATION_OPERATIONEXCEPTION = "FailedOperation.OperationException" FAILEDOPERATION_PERMISSIONDENIED = "FailedOperation.PermissionDenied" HTTPINVOKER_NEWQUESTERROR = "HttpInvoker.NewQuestError" HTTPINVOKER_SENDQUESTERROR = "HttpInvoker.SendQuestError" INTERNALERROR_SERVICEDISABLED = "InternalError.ServiceDisabled" INTERNALERROR_SERVICEERROR = "InternalError.ServiceError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETERVALUE_ILLEGALDATETIME = "InvalidParameterValue.IllegalDateTime" INVALIDPARAMETERVALUE_ILLEGALVALUE = "InvalidParameterValue.IllegalValue" INVALIDPARAMETERVALUE_RESOURCENOTEXISTED = "InvalidParameterValue.ResourceNotExisted"
func (*Client) UpdateCredentialStateWithContext ¶ added in v1.0.839
func (c *Client) UpdateCredentialStateWithContext(ctx context.Context, request *UpdateCredentialStateRequest) (response *UpdateCredentialStateResponse, err error)
UpdateCredentialState 更新凭证的链上状态
可能返回的错误码:
CAM_INVALIDAUTH = "Cam.InvalidAuth" CPT_CREATECPTFAILED = "Cpt.CreateCPTFailed" CREDENTIAL_CPTNOTEXISTED = "Credential.CPTNotExisted" CREDENTIAL_CREDENTIALEXPIRED = "Credential.CredentialExpired" CREDENTIAL_FAILEDCREATEPRESENTATION = "Credential.FailedCreatePresentation" CREDENTIAL_GENERATECOMMITMENTFAILED = "Credential.GenerateCommitmentFailed" CREDENTIAL_GENERATERANGEPROOF = "Credential.GenerateRangeProof" CREDENTIAL_HOLDERDIDNOTMATCH = "Credential.HolderDidNotMatch" CREDENTIAL_INVALIDCRDLID = "Credential.InvalidCRDLId" CREDENTIAL_INVALIDCRDLISSUER = "Credential.InvalidCRDLIssuer" CREDENTIAL_INVALIDCLAIM = "Credential.InvalidClaim" CREDENTIAL_INVALIDDISCLOSUREPOLICY = "Credential.InvalidDisclosurePolicy" CREDENTIAL_INVALIDOPERATECLAIM = "Credential.InvalidOperateClaim" CREDENTIAL_INVALIDPARAS = "Credential.InvalidParas" CREDENTIAL_INVALIDPROOFCOMMITMENT = "Credential.InvalidProofCommitment" CREDENTIAL_INVALIDPROOFVALUE = "Credential.InvalidProofValue" CREDENTIAL_INVALIDZEROPROOF = "Credential.InvalidZeroProof" CREDENTIAL_ISSUERDIDNOTMATCH = "Credential.IssuerDidNotMatch" CREDENTIAL_NOIDINCLAIM = "Credential.NoIdInClaim" CREDENTIAL_PROOFVALUENOTEXISTED = "Credential.ProofValueNotExisted" CREDENTIAL_VERIFYCRDLFAILED = "Credential.VerifyCRDLFailed" CREDENTIAL_VERIFYZEROPROOFFAILED = "Credential.VerifyZeroProofFailed" DATABASE_FAILEDOPERATION = "DataBase.FailedOperation" DIDFAILEDOPERATION_DIDNOTEXISTED = "DidFailedOperation.DidNotExisted" DIDFAILEDOPERATION_DIDSVCNOTEXISTED = "DidFailedOperation.DidSvcNotExisted" DIDFAILEDOPERATION_NOTDIDCREATOR = "DidFailedOperation.NotDidCreator" DIDSDK_UNKNOWNERROR = "DidSdk.UnknownError" FAILEDOPERATION_INVALIDAUTH = "FailedOperation.InvalidAuth" FAILEDOPERATION_OPERATIONEXCEPTION = "FailedOperation.OperationException" FAILEDOPERATION_PERMISSIONDENIED = "FailedOperation.PermissionDenied" HTTPINVOKER_NEWQUESTERROR = "HttpInvoker.NewQuestError" HTTPINVOKER_SENDQUESTERROR = "HttpInvoker.SendQuestError" INTERNALERROR_SERVICEDISABLED = "InternalError.ServiceDisabled" INTERNALERROR_SERVICEERROR = "InternalError.ServiceError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETERVALUE_ILLEGALDATETIME = "InvalidParameterValue.IllegalDateTime" INVALIDPARAMETERVALUE_ILLEGALVALUE = "InvalidParameterValue.IllegalValue" INVALIDPARAMETERVALUE_RESOURCENOTEXISTED = "InvalidParameterValue.ResourceNotExisted"
func (*Client) VerifyCredentials ¶ added in v1.0.839
func (c *Client) VerifyCredentials(request *VerifyCredentialsRequest) (response *VerifyCredentialsResponse, err error)
VerifyCredentials 验证已签名的可验证凭证
可能返回的错误码:
CREDENTIAL_CPTNOTEXISTED = "Credential.CPTNotExisted" CREDENTIAL_CREDENTIALEXPIRED = "Credential.CredentialExpired" CREDENTIAL_FAILEDCREATEPRESENTATION = "Credential.FailedCreatePresentation" CREDENTIAL_GENERATECOMMITMENTFAILED = "Credential.GenerateCommitmentFailed" CREDENTIAL_GENERATERANGEPROOF = "Credential.GenerateRangeProof" CREDENTIAL_HOLDERDIDNOTMATCH = "Credential.HolderDidNotMatch" CREDENTIAL_INVALIDCRDLID = "Credential.InvalidCRDLId" CREDENTIAL_INVALIDCRDLISSUER = "Credential.InvalidCRDLIssuer" CREDENTIAL_INVALIDCLAIM = "Credential.InvalidClaim" CREDENTIAL_INVALIDDISCLOSUREPOLICY = "Credential.InvalidDisclosurePolicy" CREDENTIAL_INVALIDOPERATECLAIM = "Credential.InvalidOperateClaim" CREDENTIAL_INVALIDPARAS = "Credential.InvalidParas" CREDENTIAL_INVALIDPROOFCOMMITMENT = "Credential.InvalidProofCommitment" CREDENTIAL_INVALIDPROOFVALUE = "Credential.InvalidProofValue" CREDENTIAL_INVALIDZEROPROOF = "Credential.InvalidZeroProof" CREDENTIAL_ISSUERDIDNOTMATCH = "Credential.IssuerDidNotMatch" CREDENTIAL_NOIDINCLAIM = "Credential.NoIdInClaim" CREDENTIAL_PROOFVALUENOTEXISTED = "Credential.ProofValueNotExisted" CREDENTIAL_VERIFYCRDLFAILED = "Credential.VerifyCRDLFailed" CREDENTIAL_VERIFYZEROPROOFFAILED = "Credential.VerifyZeroProofFailed" DATABASE_FAILEDOPERATION = "DataBase.FailedOperation" DIDFAILEDOPERATION_DIDNOTEXISTED = "DidFailedOperation.DidNotExisted" FAILEDOPERATION_INVALIDAUTH = "FailedOperation.InvalidAuth" FAILEDOPERATION_INVALIDPARAMETERVALUE = "FailedOperation.InvalidParameterValue" FAILEDOPERATION_OPERATIONEXCEPTION = "FailedOperation.OperationException" INTERNALERROR_SERVICEDISABLED = "InternalError.ServiceDisabled" INTERNALERROR_SERVICEERROR = "InternalError.ServiceError" INTERNALERROR_SERVICEPANIC = "InternalError.ServicePanic" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETERVALUE_ILLEGALVALUE = "InvalidParameterValue.IllegalValue"
func (*Client) VerifyCredentialsWithContext ¶ added in v1.0.839
func (c *Client) VerifyCredentialsWithContext(ctx context.Context, request *VerifyCredentialsRequest) (response *VerifyCredentialsResponse, err error)
VerifyCredentials 验证已签名的可验证凭证
可能返回的错误码:
CREDENTIAL_CPTNOTEXISTED = "Credential.CPTNotExisted" CREDENTIAL_CREDENTIALEXPIRED = "Credential.CredentialExpired" CREDENTIAL_FAILEDCREATEPRESENTATION = "Credential.FailedCreatePresentation" CREDENTIAL_GENERATECOMMITMENTFAILED = "Credential.GenerateCommitmentFailed" CREDENTIAL_GENERATERANGEPROOF = "Credential.GenerateRangeProof" CREDENTIAL_HOLDERDIDNOTMATCH = "Credential.HolderDidNotMatch" CREDENTIAL_INVALIDCRDLID = "Credential.InvalidCRDLId" CREDENTIAL_INVALIDCRDLISSUER = "Credential.InvalidCRDLIssuer" CREDENTIAL_INVALIDCLAIM = "Credential.InvalidClaim" CREDENTIAL_INVALIDDISCLOSUREPOLICY = "Credential.InvalidDisclosurePolicy" CREDENTIAL_INVALIDOPERATECLAIM = "Credential.InvalidOperateClaim" CREDENTIAL_INVALIDPARAS = "Credential.InvalidParas" CREDENTIAL_INVALIDPROOFCOMMITMENT = "Credential.InvalidProofCommitment" CREDENTIAL_INVALIDPROOFVALUE = "Credential.InvalidProofValue" CREDENTIAL_INVALIDZEROPROOF = "Credential.InvalidZeroProof" CREDENTIAL_ISSUERDIDNOTMATCH = "Credential.IssuerDidNotMatch" CREDENTIAL_NOIDINCLAIM = "Credential.NoIdInClaim" CREDENTIAL_PROOFVALUENOTEXISTED = "Credential.ProofValueNotExisted" CREDENTIAL_VERIFYCRDLFAILED = "Credential.VerifyCRDLFailed" CREDENTIAL_VERIFYZEROPROOFFAILED = "Credential.VerifyZeroProofFailed" DATABASE_FAILEDOPERATION = "DataBase.FailedOperation" DIDFAILEDOPERATION_DIDNOTEXISTED = "DidFailedOperation.DidNotExisted" FAILEDOPERATION_INVALIDAUTH = "FailedOperation.InvalidAuth" FAILEDOPERATION_INVALIDPARAMETERVALUE = "FailedOperation.InvalidParameterValue" FAILEDOPERATION_OPERATIONEXCEPTION = "FailedOperation.OperationException" INTERNALERROR_SERVICEDISABLED = "InternalError.ServiceDisabled" INTERNALERROR_SERVICEERROR = "InternalError.ServiceError" INTERNALERROR_SERVICEPANIC = "InternalError.ServicePanic" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETERVALUE_ILLEGALVALUE = "InvalidParameterValue.IllegalValue"
func (*Client) VerifyPresentation ¶ added in v1.0.840
func (c *Client) VerifyPresentation(request *VerifyPresentationRequest) (response *VerifyPresentationResponse, err error)
VerifyPresentation 验证可验证表达的内容
可能返回的错误码:
CAM_INVALIDAUTH = "Cam.InvalidAuth" CREDENTIAL_CPTNOTEXISTED = "Credential.CPTNotExisted" CREDENTIAL_CREDENTIALEXPIRED = "Credential.CredentialExpired" CREDENTIAL_FAILEDCREATEPRESENTATION = "Credential.FailedCreatePresentation" CREDENTIAL_HOLDERDIDNOTMATCH = "Credential.HolderDidNotMatch" CREDENTIAL_INVALIDCRDLID = "Credential.InvalidCRDLId" CREDENTIAL_INVALIDCRDLISSUER = "Credential.InvalidCRDLIssuer" CREDENTIAL_INVALIDCLAIM = "Credential.InvalidClaim" CREDENTIAL_INVALIDDISCLOSUREPOLICY = "Credential.InvalidDisclosurePolicy" CREDENTIAL_INVALIDOPERATECLAIM = "Credential.InvalidOperateClaim" CREDENTIAL_INVALIDPARAS = "Credential.InvalidParas" CREDENTIAL_ISSUERDIDNOTMATCH = "Credential.IssuerDidNotMatch" CREDENTIAL_NOIDINCLAIM = "Credential.NoIdInClaim" CREDENTIAL_VERIFYCRDLFAILED = "Credential.VerifyCRDLFailed" DATABASE_FAILEDOPERATION = "DataBase.FailedOperation" DIDFAILEDOPERATION_DIDNOTEXISTED = "DidFailedOperation.DidNotExisted" DIDFAILEDOPERATION_DIDSVCNOTEXISTED = "DidFailedOperation.DidSvcNotExisted" DIDSDK_UNKNOWNERROR = "DidSdk.UnknownError" FAILEDOPERATION_INVALIDAUTH = "FailedOperation.InvalidAuth" FAILEDOPERATION_OPERATIONEXCEPTION = "FailedOperation.OperationException" FAILEDOPERATION_PERMISSIONDENIED = "FailedOperation.PermissionDenied" HTTPINVOKER_NEWQUESTERROR = "HttpInvoker.NewQuestError" HTTPINVOKER_SENDQUESTERROR = "HttpInvoker.SendQuestError" INTERNALERROR_APIUNKNOWNERROR = "InternalError.ApiUnknownError" INTERNALERROR_SERVICEDISABLED = "InternalError.ServiceDisabled" INTERNALERROR_SERVICEERROR = "InternalError.ServiceError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETERVALUE_ILLEGALDATETIME = "InvalidParameterValue.IllegalDateTime" INVALIDPARAMETERVALUE_ILLEGALVALUE = "InvalidParameterValue.IllegalValue" INVALIDPARAMETERVALUE_RESOURCENOTEXISTED = "InvalidParameterValue.ResourceNotExisted"
func (*Client) VerifyPresentationWithContext ¶ added in v1.0.840
func (c *Client) VerifyPresentationWithContext(ctx context.Context, request *VerifyPresentationRequest) (response *VerifyPresentationResponse, err error)
VerifyPresentation 验证可验证表达的内容
可能返回的错误码:
CAM_INVALIDAUTH = "Cam.InvalidAuth" CREDENTIAL_CPTNOTEXISTED = "Credential.CPTNotExisted" CREDENTIAL_CREDENTIALEXPIRED = "Credential.CredentialExpired" CREDENTIAL_FAILEDCREATEPRESENTATION = "Credential.FailedCreatePresentation" CREDENTIAL_HOLDERDIDNOTMATCH = "Credential.HolderDidNotMatch" CREDENTIAL_INVALIDCRDLID = "Credential.InvalidCRDLId" CREDENTIAL_INVALIDCRDLISSUER = "Credential.InvalidCRDLIssuer" CREDENTIAL_INVALIDCLAIM = "Credential.InvalidClaim" CREDENTIAL_INVALIDDISCLOSUREPOLICY = "Credential.InvalidDisclosurePolicy" CREDENTIAL_INVALIDOPERATECLAIM = "Credential.InvalidOperateClaim" CREDENTIAL_INVALIDPARAS = "Credential.InvalidParas" CREDENTIAL_ISSUERDIDNOTMATCH = "Credential.IssuerDidNotMatch" CREDENTIAL_NOIDINCLAIM = "Credential.NoIdInClaim" CREDENTIAL_VERIFYCRDLFAILED = "Credential.VerifyCRDLFailed" DATABASE_FAILEDOPERATION = "DataBase.FailedOperation" DIDFAILEDOPERATION_DIDNOTEXISTED = "DidFailedOperation.DidNotExisted" DIDFAILEDOPERATION_DIDSVCNOTEXISTED = "DidFailedOperation.DidSvcNotExisted" DIDSDK_UNKNOWNERROR = "DidSdk.UnknownError" FAILEDOPERATION_INVALIDAUTH = "FailedOperation.InvalidAuth" FAILEDOPERATION_OPERATIONEXCEPTION = "FailedOperation.OperationException" FAILEDOPERATION_PERMISSIONDENIED = "FailedOperation.PermissionDenied" HTTPINVOKER_NEWQUESTERROR = "HttpInvoker.NewQuestError" HTTPINVOKER_SENDQUESTERROR = "HttpInvoker.SendQuestError" INTERNALERROR_APIUNKNOWNERROR = "InternalError.ApiUnknownError" INTERNALERROR_SERVICEDISABLED = "InternalError.ServiceDisabled" INTERNALERROR_SERVICEERROR = "InternalError.ServiceError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETERVALUE_ILLEGALDATETIME = "InvalidParameterValue.IllegalDateTime" INVALIDPARAMETERVALUE_ILLEGALVALUE = "InvalidParameterValue.IllegalValue" INVALIDPARAMETERVALUE_RESOURCENOTEXISTED = "InvalidParameterValue.ResourceNotExisted"
type CreateDisclosedCredentialRequest ¶ added in v1.0.840
type CreateDisclosedCredentialRequest struct { *tchttp.BaseRequest // 披露策略id,PolicyJson和PolicyId任选其一 PolicyId *uint64 `json:"PolicyId,omitnil,omitempty" name:"PolicyId"` // 凭证文本内容,FunctionArg和CredentialText任选其一 CredentialData *string `json:"CredentialData,omitnil,omitempty" name:"CredentialData"` // 披露策略文本 PolicyJson *string `json:"PolicyJson,omitnil,omitempty" name:"PolicyJson"` // DID应用ID DAPId *uint64 `json:"DAPId,omitnil,omitempty" name:"DAPId"` }
func NewCreateDisclosedCredentialRequest ¶ added in v1.0.840
func NewCreateDisclosedCredentialRequest() (request *CreateDisclosedCredentialRequest)
func (*CreateDisclosedCredentialRequest) FromJsonString ¶ added in v1.0.840
func (r *CreateDisclosedCredentialRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateDisclosedCredentialRequest) ToJsonString ¶ added in v1.0.840
func (r *CreateDisclosedCredentialRequest) ToJsonString() string
type CreateDisclosedCredentialRequestParams ¶ added in v1.0.840
type CreateDisclosedCredentialRequestParams struct { // 披露策略id,PolicyJson和PolicyId任选其一 PolicyId *uint64 `json:"PolicyId,omitnil,omitempty" name:"PolicyId"` // 凭证文本内容,FunctionArg和CredentialText任选其一 CredentialData *string `json:"CredentialData,omitnil,omitempty" name:"CredentialData"` // 披露策略文本 PolicyJson *string `json:"PolicyJson,omitnil,omitempty" name:"PolicyJson"` // DID应用ID DAPId *uint64 `json:"DAPId,omitnil,omitempty" name:"DAPId"` }
Predefined struct for user
type CreateDisclosedCredentialResponse ¶ added in v1.0.840
type CreateDisclosedCredentialResponse struct { *tchttp.BaseResponse Response *CreateDisclosedCredentialResponseParams `json:"Response"` }
func NewCreateDisclosedCredentialResponse ¶ added in v1.0.840
func NewCreateDisclosedCredentialResponse() (response *CreateDisclosedCredentialResponse)
func (*CreateDisclosedCredentialResponse) FromJsonString ¶ added in v1.0.840
func (r *CreateDisclosedCredentialResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateDisclosedCredentialResponse) ToJsonString ¶ added in v1.0.840
func (r *CreateDisclosedCredentialResponse) ToJsonString() string
type CreateDisclosedCredentialResponseParams ¶ added in v1.0.840
type CreateDisclosedCredentialResponseParams struct { // 凭证字符串 CredentialData *string `json:"CredentialData,omitnil,omitempty" name:"CredentialData"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type CreatePresentationRequest ¶ added in v1.0.840
type CreatePresentationRequest struct { *tchttp.BaseRequest // DID应用id DAPId *uint64 `json:"DAPId,omitnil,omitempty" name:"DAPId"` // 凭证列表 Credentials []*string `json:"Credentials,omitnil,omitempty" name:"Credentials"` // VP持有人的DID标识 Did *string `json:"Did,omitnil,omitempty" name:"Did"` // VP随机验证码 VerifyCode *string `json:"VerifyCode,omitnil,omitempty" name:"VerifyCode"` // 选择性披露策略 PolicyJson *string `json:"PolicyJson,omitnil,omitempty" name:"PolicyJson"` // 是否签名,ture时signatureValue为待签名内容由调用端自行签名,false时signatureValue为平台自动已签名的内容。默认false Unsigned *bool `json:"Unsigned,omitnil,omitempty" name:"Unsigned"` // 可验证凭证证明列表 CredentialList []*CredentialProof `json:"CredentialList,omitnil,omitempty" name:"CredentialList"` }
func NewCreatePresentationRequest ¶ added in v1.0.840
func NewCreatePresentationRequest() (request *CreatePresentationRequest)
func (*CreatePresentationRequest) FromJsonString ¶ added in v1.0.840
func (r *CreatePresentationRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreatePresentationRequest) ToJsonString ¶ added in v1.0.840
func (r *CreatePresentationRequest) ToJsonString() string
type CreatePresentationRequestParams ¶ added in v1.0.840
type CreatePresentationRequestParams struct { // DID应用id DAPId *uint64 `json:"DAPId,omitnil,omitempty" name:"DAPId"` // 凭证列表 Credentials []*string `json:"Credentials,omitnil,omitempty" name:"Credentials"` // VP持有人的DID标识 Did *string `json:"Did,omitnil,omitempty" name:"Did"` // VP随机验证码 VerifyCode *string `json:"VerifyCode,omitnil,omitempty" name:"VerifyCode"` // 选择性披露策略 PolicyJson *string `json:"PolicyJson,omitnil,omitempty" name:"PolicyJson"` // 是否签名,ture时signatureValue为待签名内容由调用端自行签名,false时signatureValue为平台自动已签名的内容。默认false Unsigned *bool `json:"Unsigned,omitnil,omitempty" name:"Unsigned"` // 可验证凭证证明列表 CredentialList []*CredentialProof `json:"CredentialList,omitnil,omitempty" name:"CredentialList"` }
Predefined struct for user
type CreatePresentationResponse ¶ added in v1.0.840
type CreatePresentationResponse struct { *tchttp.BaseResponse Response *CreatePresentationResponseParams `json:"Response"` }
func NewCreatePresentationResponse ¶ added in v1.0.840
func NewCreatePresentationResponse() (response *CreatePresentationResponse)
func (*CreatePresentationResponse) FromJsonString ¶ added in v1.0.840
func (r *CreatePresentationResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreatePresentationResponse) ToJsonString ¶ added in v1.0.840
func (r *CreatePresentationResponse) ToJsonString() string
type CreatePresentationResponseParams ¶ added in v1.0.840
type CreatePresentationResponseParams struct { // 可验证表达内容 PresentationData *string `json:"PresentationData,omitnil,omitempty" name:"PresentationData"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type CreateTDidByHostRequest ¶ added in v1.0.839
type CreateTDidByHostRequest struct { *tchttp.BaseRequest // DID应用ID DAPId *uint64 `json:"DAPId,omitnil,omitempty" name:"DAPId"` // 自定义DID文档json属性 CustomAttribute *string `json:"CustomAttribute,omitnil,omitempty" name:"CustomAttribute"` }
func NewCreateTDidByHostRequest ¶ added in v1.0.839
func NewCreateTDidByHostRequest() (request *CreateTDidByHostRequest)
func (*CreateTDidByHostRequest) FromJsonString ¶ added in v1.0.839
func (r *CreateTDidByHostRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateTDidByHostRequest) ToJsonString ¶ added in v1.0.839
func (r *CreateTDidByHostRequest) ToJsonString() string
type CreateTDidByHostRequestParams ¶ added in v1.0.839
type CreateTDidByHostRequestParams struct { // DID应用ID DAPId *uint64 `json:"DAPId,omitnil,omitempty" name:"DAPId"` // 自定义DID文档json属性 CustomAttribute *string `json:"CustomAttribute,omitnil,omitempty" name:"CustomAttribute"` }
Predefined struct for user
type CreateTDidByHostResponse ¶ added in v1.0.839
type CreateTDidByHostResponse struct { *tchttp.BaseResponse Response *CreateTDidByHostResponseParams `json:"Response"` }
func NewCreateTDidByHostResponse ¶ added in v1.0.839
func NewCreateTDidByHostResponse() (response *CreateTDidByHostResponse)
func (*CreateTDidByHostResponse) FromJsonString ¶ added in v1.0.839
func (r *CreateTDidByHostResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateTDidByHostResponse) ToJsonString ¶ added in v1.0.839
func (r *CreateTDidByHostResponse) ToJsonString() string
type CreateTDidByHostResponseParams ¶ added in v1.0.839
type CreateTDidByHostResponseParams struct { // DID标识 Did *string `json:"Did,omitnil,omitempty" name:"Did"` // 链上交易信息 Transaction *ChainTransaction `json:"Transaction,omitnil,omitempty" name:"Transaction"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type CreateTDidByPubKeyRequest ¶ added in v1.0.839
type CreateTDidByPubKeyRequest struct { *tchttp.BaseRequest // DID应用id DAPId *uint64 `json:"DAPId,omitnil,omitempty" name:"DAPId"` // pem格式的认证公钥 PublicKey *string `json:"PublicKey,omitnil,omitempty" name:"PublicKey"` // 自定义DID初始化属性json字符串 CustomAttribute *string `json:"CustomAttribute,omitnil,omitempty" name:"CustomAttribute"` // 0:did存在返回错误,1:did存在返回该did,默认:0 IgnoreExisted *uint64 `json:"IgnoreExisted,omitnil,omitempty" name:"IgnoreExisted"` }
func NewCreateTDidByPubKeyRequest ¶ added in v1.0.839
func NewCreateTDidByPubKeyRequest() (request *CreateTDidByPubKeyRequest)
func (*CreateTDidByPubKeyRequest) FromJsonString ¶ added in v1.0.839
func (r *CreateTDidByPubKeyRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateTDidByPubKeyRequest) ToJsonString ¶ added in v1.0.839
func (r *CreateTDidByPubKeyRequest) ToJsonString() string
type CreateTDidByPubKeyRequestParams ¶ added in v1.0.839
type CreateTDidByPubKeyRequestParams struct { // DID应用id DAPId *uint64 `json:"DAPId,omitnil,omitempty" name:"DAPId"` // pem格式的认证公钥 PublicKey *string `json:"PublicKey,omitnil,omitempty" name:"PublicKey"` // 自定义DID初始化属性json字符串 CustomAttribute *string `json:"CustomAttribute,omitnil,omitempty" name:"CustomAttribute"` // 0:did存在返回错误,1:did存在返回该did,默认:0 IgnoreExisted *uint64 `json:"IgnoreExisted,omitnil,omitempty" name:"IgnoreExisted"` }
Predefined struct for user
type CreateTDidByPubKeyResponse ¶ added in v1.0.839
type CreateTDidByPubKeyResponse struct { *tchttp.BaseResponse Response *CreateTDidByPubKeyResponseParams `json:"Response"` }
func NewCreateTDidByPubKeyResponse ¶ added in v1.0.839
func NewCreateTDidByPubKeyResponse() (response *CreateTDidByPubKeyResponse)
func (*CreateTDidByPubKeyResponse) FromJsonString ¶ added in v1.0.839
func (r *CreateTDidByPubKeyResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateTDidByPubKeyResponse) ToJsonString ¶ added in v1.0.839
func (r *CreateTDidByPubKeyResponse) ToJsonString() string
type CreateTDidByPubKeyResponseParams ¶ added in v1.0.839
type CreateTDidByPubKeyResponseParams struct { // did标识 Did *string `json:"Did,omitnil,omitempty" name:"Did"` // 链上交易信息 Transaction *ChainTransaction `json:"Transaction,omitnil,omitempty" name:"Transaction"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type CredentialProof ¶ added in v1.0.840
type CredentialProof struct { // 可验证凭证内容 Credential *string `json:"Credential,omitnil,omitempty" name:"Credential"` }
type CredentialState ¶ added in v1.0.839
type CredentialState struct { // 凭证唯一id Id *string `json:"Id,omitnil,omitempty" name:"Id"` // 凭证状态(0:吊销;1:有效) Status *uint64 `json:"Status,omitnil,omitempty" name:"Status"` // 凭证颁发者Did Issuer *string `json:"Issuer,omitnil,omitempty" name:"Issuer"` // VC摘要,对应凭证Proof的vcDigest字段 VCDigest *string `json:"VCDigest,omitnil,omitempty" name:"VCDigest"` // 交易摘要,对应凭证Proof的txDigest字段 TXDigest *string `json:"TXDigest,omitnil,omitempty" name:"TXDigest"` // 颁布凭证的UTC时间戳 IssueTime *uint64 `json:"IssueTime,omitnil,omitempty" name:"IssueTime"` // 凭证过期的UTC时间戳 ExpireTime *uint64 `json:"ExpireTime,omitnil,omitempty" name:"ExpireTime"` // 凭证模板id CPTId *uint64 `json:"CPTId,omitnil,omitempty" name:"CPTId"` // 凭证签名 Signature *string `json:"Signature,omitnil,omitempty" name:"Signature"` // 元数据摘要 MetaDigest *string `json:"MetaDigest,omitnil,omitempty" name:"MetaDigest"` }
type DeactivateTDidRequest ¶ added in v1.0.839
type DeactivateTDidRequest struct { *tchttp.BaseRequest // DID标识符 Did *string `json:"Did,omitnil,omitempty" name:"Did"` // 设置DID禁用状态的临时凭证内容,通过创建凭证接口(CreateCredential)生成并签名,凭证类型为:OperateCredential, 为安全起见凭证过期时间不适合太长,建议设置为1分钟内 OperateCredential *string `json:"OperateCredential,omitnil,omitempty" name:"OperateCredential"` // DID应用Id DAPId *uint64 `json:"DAPId,omitnil,omitempty" name:"DAPId"` // 是否禁用 Deactivated *string `json:"Deactivated,omitnil,omitempty" name:"Deactivated"` }
func NewDeactivateTDidRequest ¶ added in v1.0.839
func NewDeactivateTDidRequest() (request *DeactivateTDidRequest)
func (*DeactivateTDidRequest) FromJsonString ¶ added in v1.0.839
func (r *DeactivateTDidRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeactivateTDidRequest) ToJsonString ¶ added in v1.0.839
func (r *DeactivateTDidRequest) ToJsonString() string
type DeactivateTDidRequestParams ¶ added in v1.0.839
type DeactivateTDidRequestParams struct { // DID标识符 Did *string `json:"Did,omitnil,omitempty" name:"Did"` // 设置DID禁用状态的临时凭证内容,通过创建凭证接口(CreateCredential)生成并签名,凭证类型为:OperateCredential, 为安全起见凭证过期时间不适合太长,建议设置为1分钟内 OperateCredential *string `json:"OperateCredential,omitnil,omitempty" name:"OperateCredential"` // DID应用Id DAPId *uint64 `json:"DAPId,omitnil,omitempty" name:"DAPId"` // 是否禁用 Deactivated *string `json:"Deactivated,omitnil,omitempty" name:"Deactivated"` }
Predefined struct for user
type DeactivateTDidResponse ¶ added in v1.0.839
type DeactivateTDidResponse struct { *tchttp.BaseResponse Response *DeactivateTDidResponseParams `json:"Response"` }
func NewDeactivateTDidResponse ¶ added in v1.0.839
func NewDeactivateTDidResponse() (response *DeactivateTDidResponse)
func (*DeactivateTDidResponse) FromJsonString ¶ added in v1.0.839
func (r *DeactivateTDidResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeactivateTDidResponse) ToJsonString ¶ added in v1.0.839
func (r *DeactivateTDidResponse) ToJsonString() string
type DeactivateTDidResponseParams ¶ added in v1.0.839
type DeactivateTDidResponseParams struct { // 上链交易信息 Transaction *ChainTransaction `json:"Transaction,omitnil,omitempty" name:"Transaction"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type DidAttribute ¶ added in v1.0.840
type GetAppSummaryRequest ¶ added in v1.0.840
type GetAppSummaryRequest struct { *tchttp.BaseRequest // DID应用Id DAPId *uint64 `json:"DAPId,omitnil,omitempty" name:"DAPId"` }
func NewGetAppSummaryRequest ¶ added in v1.0.840
func NewGetAppSummaryRequest() (request *GetAppSummaryRequest)
func (*GetAppSummaryRequest) FromJsonString ¶ added in v1.0.840
func (r *GetAppSummaryRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetAppSummaryRequest) ToJsonString ¶ added in v1.0.840
func (r *GetAppSummaryRequest) ToJsonString() string
type GetAppSummaryRequestParams ¶ added in v1.0.840
type GetAppSummaryRequestParams struct { // DID应用Id DAPId *uint64 `json:"DAPId,omitnil,omitempty" name:"DAPId"` }
Predefined struct for user
type GetAppSummaryResponse ¶ added in v1.0.840
type GetAppSummaryResponse struct { *tchttp.BaseResponse Response *GetAppSummaryResponseParams `json:"Response"` }
func NewGetAppSummaryResponse ¶ added in v1.0.840
func NewGetAppSummaryResponse() (response *GetAppSummaryResponse)
func (*GetAppSummaryResponse) FromJsonString ¶ added in v1.0.840
func (r *GetAppSummaryResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetAppSummaryResponse) ToJsonString ¶ added in v1.0.840
func (r *GetAppSummaryResponse) ToJsonString() string
type GetAppSummaryResponseParams ¶ added in v1.0.840
type GetAppSummaryResponseParams struct { // 用户参与应用的统计指标 // 注意:此字段可能返回 null,表示取不到有效值。 AppCounter *ResourceCounterData `json:"AppCounter,omitnil,omitempty" name:"AppCounter"` // 用户创建资源的统计指标 // 注意:此字段可能返回 null,表示取不到有效值。 UserCounter *ResourceCounterData `json:"UserCounter,omitnil,omitempty" name:"UserCounter"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type GetCredentialStateRequest ¶ added in v1.0.839
type GetCredentialStateRequest struct { *tchttp.BaseRequest // 凭证唯一Id CredentialId *string `json:"CredentialId,omitnil,omitempty" name:"CredentialId"` // 用户应用Id DAPId *uint64 `json:"DAPId,omitnil,omitempty" name:"DAPId"` }
func NewGetCredentialStateRequest ¶ added in v1.0.839
func NewGetCredentialStateRequest() (request *GetCredentialStateRequest)
func (*GetCredentialStateRequest) FromJsonString ¶ added in v1.0.839
func (r *GetCredentialStateRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetCredentialStateRequest) ToJsonString ¶ added in v1.0.839
func (r *GetCredentialStateRequest) ToJsonString() string
type GetCredentialStateRequestParams ¶ added in v1.0.839
type GetCredentialStateRequestParams struct { // 凭证唯一Id CredentialId *string `json:"CredentialId,omitnil,omitempty" name:"CredentialId"` // 用户应用Id DAPId *uint64 `json:"DAPId,omitnil,omitempty" name:"DAPId"` }
Predefined struct for user
type GetCredentialStateResponse ¶ added in v1.0.839
type GetCredentialStateResponse struct { *tchttp.BaseResponse Response *GetCredentialStateResponseParams `json:"Response"` }
func NewGetCredentialStateResponse ¶ added in v1.0.839
func NewGetCredentialStateResponse() (response *GetCredentialStateResponse)
func (*GetCredentialStateResponse) FromJsonString ¶ added in v1.0.839
func (r *GetCredentialStateResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetCredentialStateResponse) ToJsonString ¶ added in v1.0.839
func (r *GetCredentialStateResponse) ToJsonString() string
type GetCredentialStateResponseParams ¶ added in v1.0.839
type GetCredentialStateResponseParams struct { // 凭证状态信息 // 注意:此字段可能返回 null,表示取不到有效值。 CredentialState *CredentialState `json:"CredentialState,omitnil,omitempty" name:"CredentialState"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type GetOverSummaryRequest ¶ added in v1.0.840
type GetOverSummaryRequest struct {
*tchttp.BaseRequest
}
func NewGetOverSummaryRequest ¶ added in v1.0.840
func NewGetOverSummaryRequest() (request *GetOverSummaryRequest)
func (*GetOverSummaryRequest) FromJsonString ¶ added in v1.0.840
func (r *GetOverSummaryRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetOverSummaryRequest) ToJsonString ¶ added in v1.0.840
func (r *GetOverSummaryRequest) ToJsonString() string
type GetOverSummaryRequestParams ¶ added in v1.0.840
type GetOverSummaryRequestParams struct { }
Predefined struct for user
type GetOverSummaryResponse ¶ added in v1.0.840
type GetOverSummaryResponse struct { *tchttp.BaseResponse Response *GetOverSummaryResponseParams `json:"Response"` }
func NewGetOverSummaryResponse ¶ added in v1.0.840
func NewGetOverSummaryResponse() (response *GetOverSummaryResponse)
func (*GetOverSummaryResponse) FromJsonString ¶ added in v1.0.840
func (r *GetOverSummaryResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetOverSummaryResponse) ToJsonString ¶ added in v1.0.840
func (r *GetOverSummaryResponse) ToJsonString() string
type GetOverSummaryResponseParams ¶ added in v1.0.840
type GetOverSummaryResponseParams struct { // 用户参与应用的统计指标 // 注意:此字段可能返回 null,表示取不到有效值。 AppCounter *ResourceCounterData `json:"AppCounter,omitnil,omitempty" name:"AppCounter"` // 用户部署应用的统计指标 // 注意:此字段可能返回 null,表示取不到有效值。 UserCounter *ResourceCounterData `json:"UserCounter,omitnil,omitempty" name:"UserCounter"` // 用户参与的应用总数 // 注意:此字段可能返回 null,表示取不到有效值。 AppCnt *uint64 `json:"AppCnt,omitnil,omitempty" name:"AppCnt"` // 用户部署的应用总数 // 注意:此字段可能返回 null,表示取不到有效值。 DeployCnt *uint64 `json:"DeployCnt,omitnil,omitempty" name:"DeployCnt"` // 部署网络子链总数 // 注意:此字段可能返回 null,表示取不到有效值。 ChainCnt *uint64 `json:"ChainCnt,omitnil,omitempty" name:"ChainCnt"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type GetTDidByObjectIdRequest ¶ added in v1.0.840
type GetTDidByObjectIdRequest struct { *tchttp.BaseRequest // 业务层为DID设置的唯一标识 ObjectId *string `json:"ObjectId,omitnil,omitempty" name:"ObjectId"` // DID应用Id DAPId *uint64 `json:"DAPId,omitnil,omitempty" name:"DAPId"` }
func NewGetTDidByObjectIdRequest ¶ added in v1.0.840
func NewGetTDidByObjectIdRequest() (request *GetTDidByObjectIdRequest)
func (*GetTDidByObjectIdRequest) FromJsonString ¶ added in v1.0.840
func (r *GetTDidByObjectIdRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetTDidByObjectIdRequest) ToJsonString ¶ added in v1.0.840
func (r *GetTDidByObjectIdRequest) ToJsonString() string
type GetTDidByObjectIdRequestParams ¶ added in v1.0.840
type GetTDidByObjectIdRequestParams struct { // 业务层为DID设置的唯一标识 ObjectId *string `json:"ObjectId,omitnil,omitempty" name:"ObjectId"` // DID应用Id DAPId *uint64 `json:"DAPId,omitnil,omitempty" name:"DAPId"` }
Predefined struct for user
type GetTDidByObjectIdResponse ¶ added in v1.0.840
type GetTDidByObjectIdResponse struct { *tchttp.BaseResponse Response *GetTDidByObjectIdResponseParams `json:"Response"` }
func NewGetTDidByObjectIdResponse ¶ added in v1.0.840
func NewGetTDidByObjectIdResponse() (response *GetTDidByObjectIdResponse)
func (*GetTDidByObjectIdResponse) FromJsonString ¶ added in v1.0.840
func (r *GetTDidByObjectIdResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetTDidByObjectIdResponse) ToJsonString ¶ added in v1.0.840
func (r *GetTDidByObjectIdResponse) ToJsonString() string
type GetTDidByObjectIdResponseParams ¶ added in v1.0.840
type GetTDidByObjectIdResponseParams struct { // DID标识 // 注意:此字段可能返回 null,表示取不到有效值。 Did *string `json:"Did,omitnil,omitempty" name:"Did"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type GetTDidDocumentRequest ¶ added in v1.0.839
type GetTDidDocumentRequest struct { *tchttp.BaseRequest // DID标识 Did *string `json:"Did,omitnil,omitempty" name:"Did"` // DID应用ID DAPId *uint64 `json:"DAPId,omitnil,omitempty" name:"DAPId"` }
func NewGetTDidDocumentRequest ¶ added in v1.0.839
func NewGetTDidDocumentRequest() (request *GetTDidDocumentRequest)
func (*GetTDidDocumentRequest) FromJsonString ¶ added in v1.0.839
func (r *GetTDidDocumentRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetTDidDocumentRequest) ToJsonString ¶ added in v1.0.839
func (r *GetTDidDocumentRequest) ToJsonString() string
type GetTDidDocumentRequestParams ¶ added in v1.0.839
type GetTDidDocumentRequestParams struct { // DID标识 Did *string `json:"Did,omitnil,omitempty" name:"Did"` // DID应用ID DAPId *uint64 `json:"DAPId,omitnil,omitempty" name:"DAPId"` }
Predefined struct for user
type GetTDidDocumentResponse ¶ added in v1.0.839
type GetTDidDocumentResponse struct { *tchttp.BaseResponse Response *GetTDidDocumentResponseParams `json:"Response"` }
func NewGetTDidDocumentResponse ¶ added in v1.0.839
func NewGetTDidDocumentResponse() (response *GetTDidDocumentResponse)
func (*GetTDidDocumentResponse) FromJsonString ¶ added in v1.0.839
func (r *GetTDidDocumentResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetTDidDocumentResponse) ToJsonString ¶ added in v1.0.839
func (r *GetTDidDocumentResponse) ToJsonString() string
type GetTDidDocumentResponseParams ¶ added in v1.0.839
type GetTDidDocumentResponseParams struct { // DID文档内容 Document *string `json:"Document,omitnil,omitempty" name:"Document"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type GetTDidPubKeyRequest ¶ added in v1.0.840
type GetTDidPubKeyRequest struct { *tchttp.BaseRequest // DID标识 Did *string `json:"Did,omitnil,omitempty" name:"Did"` // DID应用Id DAPId *uint64 `json:"DAPId,omitnil,omitempty" name:"DAPId"` }
func NewGetTDidPubKeyRequest ¶ added in v1.0.840
func NewGetTDidPubKeyRequest() (request *GetTDidPubKeyRequest)
func (*GetTDidPubKeyRequest) FromJsonString ¶ added in v1.0.840
func (r *GetTDidPubKeyRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetTDidPubKeyRequest) ToJsonString ¶ added in v1.0.840
func (r *GetTDidPubKeyRequest) ToJsonString() string
type GetTDidPubKeyRequestParams ¶ added in v1.0.840
type GetTDidPubKeyRequestParams struct { // DID标识 Did *string `json:"Did,omitnil,omitempty" name:"Did"` // DID应用Id DAPId *uint64 `json:"DAPId,omitnil,omitempty" name:"DAPId"` }
Predefined struct for user
type GetTDidPubKeyResponse ¶ added in v1.0.840
type GetTDidPubKeyResponse struct { *tchttp.BaseResponse Response *GetTDidPubKeyResponseParams `json:"Response"` }
func NewGetTDidPubKeyResponse ¶ added in v1.0.840
func NewGetTDidPubKeyResponse() (response *GetTDidPubKeyResponse)
func (*GetTDidPubKeyResponse) FromJsonString ¶ added in v1.0.840
func (r *GetTDidPubKeyResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetTDidPubKeyResponse) ToJsonString ¶ added in v1.0.840
func (r *GetTDidPubKeyResponse) ToJsonString() string
type GetTDidPubKeyResponseParams ¶ added in v1.0.840
type GetTDidPubKeyResponseParams struct { // DID公钥数组 AuthPublicKeyList []*string `json:"AuthPublicKeyList,omitnil,omitempty" name:"AuthPublicKeyList"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type IssueCredentialRequest ¶ added in v1.0.839
type IssueCredentialRequest struct { *tchttp.BaseRequest // 参数集合,详见示例 CRDLArg *CRDLArg `json:"CRDLArg,omitnil,omitempty" name:"CRDLArg"` // 是否未签名 UnSigned *bool `json:"UnSigned,omitnil,omitempty" name:"UnSigned"` // DID应用id DAPId *uint64 `json:"DAPId,omitnil,omitempty" name:"DAPId"` }
func NewIssueCredentialRequest ¶ added in v1.0.839
func NewIssueCredentialRequest() (request *IssueCredentialRequest)
func (*IssueCredentialRequest) FromJsonString ¶ added in v1.0.839
func (r *IssueCredentialRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*IssueCredentialRequest) ToJsonString ¶ added in v1.0.839
func (r *IssueCredentialRequest) ToJsonString() string
type IssueCredentialRequestParams ¶ added in v1.0.839
type IssueCredentialRequestParams struct { // 参数集合,详见示例 CRDLArg *CRDLArg `json:"CRDLArg,omitnil,omitempty" name:"CRDLArg"` // 是否未签名 UnSigned *bool `json:"UnSigned,omitnil,omitempty" name:"UnSigned"` // DID应用id DAPId *uint64 `json:"DAPId,omitnil,omitempty" name:"DAPId"` }
Predefined struct for user
type IssueCredentialResponse ¶ added in v1.0.839
type IssueCredentialResponse struct { *tchttp.BaseResponse Response *IssueCredentialResponseParams `json:"Response"` }
func NewIssueCredentialResponse ¶ added in v1.0.839
func NewIssueCredentialResponse() (response *IssueCredentialResponse)
func (*IssueCredentialResponse) FromJsonString ¶ added in v1.0.839
func (r *IssueCredentialResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*IssueCredentialResponse) ToJsonString ¶ added in v1.0.839
func (r *IssueCredentialResponse) ToJsonString() string
type IssueCredentialResponseParams ¶ added in v1.0.839
type IssueCredentialResponseParams struct { // 可验证凭证内容 CredentialData *string `json:"CredentialData,omitnil,omitempty" name:"CredentialData"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type QueryAuthorityInfoRequest ¶ added in v1.0.840
type QueryAuthorityInfoRequest struct { *tchttp.BaseRequest // DID标识 Did *string `json:"Did,omitnil,omitempty" name:"Did"` // DID应用id DAPId *uint64 `json:"DAPId,omitnil,omitempty" name:"DAPId"` // 权威机构名称 Name *string `json:"Name,omitnil,omitempty" name:"Name"` }
func NewQueryAuthorityInfoRequest ¶ added in v1.0.840
func NewQueryAuthorityInfoRequest() (request *QueryAuthorityInfoRequest)
func (*QueryAuthorityInfoRequest) FromJsonString ¶ added in v1.0.840
func (r *QueryAuthorityInfoRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*QueryAuthorityInfoRequest) ToJsonString ¶ added in v1.0.840
func (r *QueryAuthorityInfoRequest) ToJsonString() string
type QueryAuthorityInfoRequestParams ¶ added in v1.0.840
type QueryAuthorityInfoRequestParams struct { // DID标识 Did *string `json:"Did,omitnil,omitempty" name:"Did"` // DID应用id DAPId *uint64 `json:"DAPId,omitnil,omitempty" name:"DAPId"` // 权威机构名称 Name *string `json:"Name,omitnil,omitempty" name:"Name"` }
Predefined struct for user
type QueryAuthorityInfoResponse ¶ added in v1.0.840
type QueryAuthorityInfoResponse struct { *tchttp.BaseResponse Response *QueryAuthorityInfoResponseParams `json:"Response"` }
func NewQueryAuthorityInfoResponse ¶ added in v1.0.840
func NewQueryAuthorityInfoResponse() (response *QueryAuthorityInfoResponse)
func (*QueryAuthorityInfoResponse) FromJsonString ¶ added in v1.0.840
func (r *QueryAuthorityInfoResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*QueryAuthorityInfoResponse) ToJsonString ¶ added in v1.0.840
func (r *QueryAuthorityInfoResponse) ToJsonString() string
type QueryAuthorityInfoResponseParams ¶ added in v1.0.840
type QueryAuthorityInfoResponseParams struct { // 名称 Name *string `json:"Name,omitnil,omitempty" name:"Name"` // 权威机构did Did *string `json:"Did,omitnil,omitempty" name:"Did"` // 状态:1为已认证,2为未认证 Status *uint64 `json:"Status,omitnil,omitempty" name:"Status"` // 机构备注信息 Description *string `json:"Description,omitnil,omitempty" name:"Description"` // 认证时间 RecognizeTime *string `json:"RecognizeTime,omitnil,omitempty" name:"RecognizeTime"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type QueryCPTRequest ¶ added in v1.0.840
type QueryCPTRequest struct { *tchttp.BaseRequest // DID应用id DAPId *uint64 `json:"DAPId,omitnil,omitempty" name:"DAPId"` // 凭证模板id CPTId *int64 `json:"CPTId,omitnil,omitempty" name:"CPTId"` }
func NewQueryCPTRequest ¶ added in v1.0.840
func NewQueryCPTRequest() (request *QueryCPTRequest)
func (*QueryCPTRequest) FromJsonString ¶ added in v1.0.840
func (r *QueryCPTRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*QueryCPTRequest) ToJsonString ¶ added in v1.0.840
func (r *QueryCPTRequest) ToJsonString() string
type QueryCPTRequestParams ¶ added in v1.0.840
type QueryCPTRequestParams struct { // DID应用id DAPId *uint64 `json:"DAPId,omitnil,omitempty" name:"DAPId"` // 凭证模板id CPTId *int64 `json:"CPTId,omitnil,omitempty" name:"CPTId"` }
Predefined struct for user
type QueryCPTResponse ¶ added in v1.0.840
type QueryCPTResponse struct { *tchttp.BaseResponse Response *QueryCPTResponseParams `json:"Response"` }
func NewQueryCPTResponse ¶ added in v1.0.840
func NewQueryCPTResponse() (response *QueryCPTResponse)
func (*QueryCPTResponse) FromJsonString ¶ added in v1.0.840
func (r *QueryCPTResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*QueryCPTResponse) ToJsonString ¶ added in v1.0.840
func (r *QueryCPTResponse) ToJsonString() string
type QueryCPTResponseParams ¶ added in v1.0.840
type QueryCPTResponseParams struct { // 凭证模板内容 CPTJson *string `json:"CPTJson,omitnil,omitempty" name:"CPTJson"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type ResourceCounterData ¶ added in v1.0.840
type ResourceCounterData struct { // DID总数 // 注意:此字段可能返回 null,表示取不到有效值。 DidCnt *uint64 `json:"DidCnt,omitnil,omitempty" name:"DidCnt"` // VC总数 // 注意:此字段可能返回 null,表示取不到有效值。 VCCnt *uint64 `json:"VCCnt,omitnil,omitempty" name:"VCCnt"` // CPT总数 // 注意:此字段可能返回 null,表示取不到有效值。 CPTCnt *uint64 `json:"CPTCnt,omitnil,omitempty" name:"CPTCnt"` // VC验证总数 // 注意:此字段可能返回 null,表示取不到有效值。 VerifyCnt *uint64 `json:"VerifyCnt,omitnil,omitempty" name:"VerifyCnt"` // 权威机构数量 // 注意:此字段可能返回 null,表示取不到有效值。 AuthCnt *uint64 `json:"AuthCnt,omitnil,omitempty" name:"AuthCnt"` }
type SetTDidAttributeRequest ¶ added in v1.0.840
type SetTDidAttributeRequest struct { *tchttp.BaseRequest // DID标识符 Did *string `json:"Did,omitnil,omitempty" name:"Did"` // 属性名值对数组 Attributes []*DidAttribute `json:"Attributes,omitnil,omitempty" name:"Attributes"` // DID应用Id DAPId *uint64 `json:"DAPId,omitnil,omitempty" name:"DAPId"` // 操作鉴权凭证 OperateCredential *string `json:"OperateCredential,omitnil,omitempty" name:"OperateCredential"` }
func NewSetTDidAttributeRequest ¶ added in v1.0.840
func NewSetTDidAttributeRequest() (request *SetTDidAttributeRequest)
func (*SetTDidAttributeRequest) FromJsonString ¶ added in v1.0.840
func (r *SetTDidAttributeRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*SetTDidAttributeRequest) ToJsonString ¶ added in v1.0.840
func (r *SetTDidAttributeRequest) ToJsonString() string
type SetTDidAttributeRequestParams ¶ added in v1.0.840
type SetTDidAttributeRequestParams struct { // DID标识符 Did *string `json:"Did,omitnil,omitempty" name:"Did"` // 属性名值对数组 Attributes []*DidAttribute `json:"Attributes,omitnil,omitempty" name:"Attributes"` // DID应用Id DAPId *uint64 `json:"DAPId,omitnil,omitempty" name:"DAPId"` // 操作鉴权凭证 OperateCredential *string `json:"OperateCredential,omitnil,omitempty" name:"OperateCredential"` }
Predefined struct for user
type SetTDidAttributeResponse ¶ added in v1.0.840
type SetTDidAttributeResponse struct { *tchttp.BaseResponse Response *SetTDidAttributeResponseParams `json:"Response"` }
func NewSetTDidAttributeResponse ¶ added in v1.0.840
func NewSetTDidAttributeResponse() (response *SetTDidAttributeResponse)
func (*SetTDidAttributeResponse) FromJsonString ¶ added in v1.0.840
func (r *SetTDidAttributeResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*SetTDidAttributeResponse) ToJsonString ¶ added in v1.0.840
func (r *SetTDidAttributeResponse) ToJsonString() string
type SetTDidAttributeResponseParams ¶ added in v1.0.840
type SetTDidAttributeResponseParams struct { // 上链交易信息 Transaction *ChainTransaction `json:"Transaction,omitnil,omitempty" name:"Transaction"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type UpdateCredentialStateRequest ¶ added in v1.0.839
type UpdateCredentialStateRequest struct { *tchttp.BaseRequest // DID应用Id DAPId *uint64 `json:"DAPId,omitnil,omitempty" name:"DAPId"` // 更新VC状态的临时凭证内容,通过创建凭证接口(CreateCredential)生成并签名,凭证类型为:OperateCredential, 为安全起见凭证过期时间不适合太长,建议设置为1分钟内 OperateCredential *string `json:"OperateCredential,omitnil,omitempty" name:"OperateCredential"` }
func NewUpdateCredentialStateRequest ¶ added in v1.0.839
func NewUpdateCredentialStateRequest() (request *UpdateCredentialStateRequest)
func (*UpdateCredentialStateRequest) FromJsonString ¶ added in v1.0.839
func (r *UpdateCredentialStateRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpdateCredentialStateRequest) ToJsonString ¶ added in v1.0.839
func (r *UpdateCredentialStateRequest) ToJsonString() string
type UpdateCredentialStateRequestParams ¶ added in v1.0.839
type UpdateCredentialStateRequestParams struct { // DID应用Id DAPId *uint64 `json:"DAPId,omitnil,omitempty" name:"DAPId"` // 更新VC状态的临时凭证内容,通过创建凭证接口(CreateCredential)生成并签名,凭证类型为:OperateCredential, 为安全起见凭证过期时间不适合太长,建议设置为1分钟内 OperateCredential *string `json:"OperateCredential,omitnil,omitempty" name:"OperateCredential"` }
Predefined struct for user
type UpdateCredentialStateResponse ¶ added in v1.0.839
type UpdateCredentialStateResponse struct { *tchttp.BaseResponse Response *UpdateCredentialStateResponseParams `json:"Response"` }
func NewUpdateCredentialStateResponse ¶ added in v1.0.839
func NewUpdateCredentialStateResponse() (response *UpdateCredentialStateResponse)
func (*UpdateCredentialStateResponse) FromJsonString ¶ added in v1.0.839
func (r *UpdateCredentialStateResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpdateCredentialStateResponse) ToJsonString ¶ added in v1.0.839
func (r *UpdateCredentialStateResponse) ToJsonString() string
type UpdateCredentialStateResponseParams ¶ added in v1.0.839
type UpdateCredentialStateResponseParams struct { // 更新是否成功 // 注意:此字段可能返回 null,表示取不到有效值。 Result *bool `json:"Result,omitnil,omitempty" name:"Result"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type VerifyCredentialsRequest ¶ added in v1.0.839
type VerifyCredentialsRequest struct { *tchttp.BaseRequest // 0:仅验证签名,1:验证签名和链上状态,2, 仅验证链上状态,默认为0, 3.验证DID和凭证状态以及签名,4. 验证历史凭证有效性 VerifyType *uint64 `json:"VerifyType,omitnil,omitempty" name:"VerifyType"` // 凭证内容 CredentialData *string `json:"CredentialData,omitnil,omitempty" name:"CredentialData"` // DID应用id DAPId *uint64 `json:"DAPId,omitnil,omitempty" name:"DAPId"` }
func NewVerifyCredentialsRequest ¶ added in v1.0.839
func NewVerifyCredentialsRequest() (request *VerifyCredentialsRequest)
func (*VerifyCredentialsRequest) FromJsonString ¶ added in v1.0.839
func (r *VerifyCredentialsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*VerifyCredentialsRequest) ToJsonString ¶ added in v1.0.839
func (r *VerifyCredentialsRequest) ToJsonString() string
type VerifyCredentialsRequestParams ¶ added in v1.0.839
type VerifyCredentialsRequestParams struct { // 0:仅验证签名,1:验证签名和链上状态,2, 仅验证链上状态,默认为0, 3.验证DID和凭证状态以及签名,4. 验证历史凭证有效性 VerifyType *uint64 `json:"VerifyType,omitnil,omitempty" name:"VerifyType"` // 凭证内容 CredentialData *string `json:"CredentialData,omitnil,omitempty" name:"CredentialData"` // DID应用id DAPId *uint64 `json:"DAPId,omitnil,omitempty" name:"DAPId"` }
Predefined struct for user
type VerifyCredentialsResponse ¶ added in v1.0.839
type VerifyCredentialsResponse struct { *tchttp.BaseResponse Response *VerifyCredentialsResponseParams `json:"Response"` }
func NewVerifyCredentialsResponse ¶ added in v1.0.839
func NewVerifyCredentialsResponse() (response *VerifyCredentialsResponse)
func (*VerifyCredentialsResponse) FromJsonString ¶ added in v1.0.839
func (r *VerifyCredentialsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*VerifyCredentialsResponse) ToJsonString ¶ added in v1.0.839
func (r *VerifyCredentialsResponse) ToJsonString() string
type VerifyCredentialsResponseParams ¶ added in v1.0.839
type VerifyCredentialsResponseParams struct { // 是否验证成功 Result *bool `json:"Result,omitnil,omitempty" name:"Result"` // 验证返回码 VerifyCode *uint64 `json:"VerifyCode,omitnil,omitempty" name:"VerifyCode"` // 验证结果信息 VerifyMessage *string `json:"VerifyMessage,omitnil,omitempty" name:"VerifyMessage"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type VerifyPresentationRequest ¶ added in v1.0.840
type VerifyPresentationRequest struct { *tchttp.BaseRequest // VP持有人的did标识 Did *string `json:"Did,omitnil,omitempty" name:"Did"` // 可验证表达内容 PresentationData *string `json:"PresentationData,omitnil,omitempty" name:"PresentationData"` // DID应用id DAPId *uint64 `json:"DAPId,omitnil,omitempty" name:"DAPId"` // 随机验证码 VerifyCode *string `json:"VerifyCode,omitnil,omitempty" name:"VerifyCode"` }
func NewVerifyPresentationRequest ¶ added in v1.0.840
func NewVerifyPresentationRequest() (request *VerifyPresentationRequest)
func (*VerifyPresentationRequest) FromJsonString ¶ added in v1.0.840
func (r *VerifyPresentationRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*VerifyPresentationRequest) ToJsonString ¶ added in v1.0.840
func (r *VerifyPresentationRequest) ToJsonString() string
type VerifyPresentationRequestParams ¶ added in v1.0.840
type VerifyPresentationRequestParams struct { // VP持有人的did标识 Did *string `json:"Did,omitnil,omitempty" name:"Did"` // 可验证表达内容 PresentationData *string `json:"PresentationData,omitnil,omitempty" name:"PresentationData"` // DID应用id DAPId *uint64 `json:"DAPId,omitnil,omitempty" name:"DAPId"` // 随机验证码 VerifyCode *string `json:"VerifyCode,omitnil,omitempty" name:"VerifyCode"` }
Predefined struct for user
type VerifyPresentationResponse ¶ added in v1.0.840
type VerifyPresentationResponse struct { *tchttp.BaseResponse Response *VerifyPresentationResponseParams `json:"Response"` }
func NewVerifyPresentationResponse ¶ added in v1.0.840
func NewVerifyPresentationResponse() (response *VerifyPresentationResponse)
func (*VerifyPresentationResponse) FromJsonString ¶ added in v1.0.840
func (r *VerifyPresentationResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*VerifyPresentationResponse) ToJsonString ¶ added in v1.0.840
func (r *VerifyPresentationResponse) ToJsonString() string
type VerifyPresentationResponseParams ¶ added in v1.0.840
type VerifyPresentationResponseParams struct { // 是否验证成功 Result *bool `json:"Result,omitnil,omitempty" name:"Result"` // 验证返回码 VerifyCode *uint64 `json:"VerifyCode,omitnil,omitempty" name:"VerifyCode"` // 验证消息 VerifyMessage *string `json:"VerifyMessage,omitnil,omitempty" name:"VerifyMessage"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user