MQ消息接口说明

接口状态有两种,"可用"和"已废弃"。

MQ消息列表

消息编号 消息描述 消息标识
2001 匿名连接请求 ConnectRequest
2002 数字证明验证 Proof
2003 数字证照请求 CredentialRequest
2004 数字证照累加器创建结果 AccumulatorCreate
2005 数字证照累加器更新结果 AccumulatorUpdate

匿名连接请求

MQ消息描述:c端用户发来的匿名连接请求

MQ消息编号:2001

MQ消息队列名称:ConnectRequest

名称 类型 描述
theirDid String 对手方did,参考did定义
nonce String 业务流对应的随机值

消息示例

{
    "code": "SUCCESS",
    "message":  {
        "code":"10000",
        "reason":"请求成功"
    }, 
    "detail":   {
        "theirDid": "did:brop:9Yp3ZD8FYpXUFNcxWs9cCy",
        "nonce":"00E0740081F"
    }
}

数字证明验证

MQ消息描述:proofrequest请求发送后的对应的验证结果

MQ消息编号:2002

MQ消息队列名称:Proof

名称 类型 描述
nonce String proofrequest的随机值

消息示例

{
    "code": "SUCCESS",
    "message":  {
        "code":"10000",
        "reason":"请求成功"
    }, 
    "detail":   {
        "nonce":"00E0740081F"
    }
}

数字证照请求

MQ消息描述:用户需要开具数字证照的请求

MQ消息编号:2003

MQ消息队列名称:CredentialRequest

名称 类型 描述
credDefId String 数字证照声明ID
nonce String CredentialOffer中提供的随机数
proverDid String 申请人did,参考did定义
credReqMetadata String idemix构造的CredentialRequest

消息示例

{
    "code": "SUCCESS",
    "message":  {
        "code":"10000",
        "reason":"请求成功"
    }, 
    "detail":   {
        "credDefId":"LthQv1uEJtvB9SCo3NJicR",
        "nonce":"00E0740081F",
        "proverDid":"did:brop:9Yp3ZD8FYpXUFNcxWs9cCy",
        "credReqMetadata":"credReqMetadata"
    }
}

数字证照累加器创建结果

MQ消息描述:创建累加器请求发送后的对应的上链结果

MQ消息编号:2004

MQ消息队列名称:AccumulatorCreate

名称 类型 描述
revRegId String 累加器ID

消息示例

{
    "code": "SUCCESS",
    "message":  {
        "code":"10000",
        "reason":"请求成功"
    }, 
    "detail":   {
        "revRegId":"{\"bytes\":\"07A56AED11157C14812E3C132C0416F7C7C346870071FDD1F0C0BED9CE43B64FAA25A27C50451E7D177F481CE581BB32D8B49A2105136C60EE44B0411BB77C651D05DD6A8F30EB7A9096438E773AA26B038A58A404DC7C1740FEF44218BF1557FE50969103C5E557596045B253FC3162260015BB615891A60E379E4952A49D3F95A99257BE138C185A3F15F705521A555CCB0F6CE4318DB73605C25EEE2605181E36BA22418F238DC014D72853F37B67413969D901A43EAA96FA2C417EE634D70DF8612F25672C21134522F74E4AF0E83B2096050A2FC1E91F54BD1E1055CC2F636CE5F8CE41C49CB9BDE52D95E4ACED\",\"type\":\"GT\",\"flag\":false}"
    }
}

数字证照累加器更新结果

MQ消息描述:更新累加器请求发送后的对应的上链结果

MQ消息编号:2005

MQ消息队列名称:AccumulatorUpdate

名称 类型 描述
revRegId String 累加器ID

消息示例

{
    "code": "SUCCESS",
    "message":  {
        "code":"10000",
        "reason":"请求成功"
    }, 
    "detail":   {
        "revRegId":"{\"bytes\":\"07A56AED11157C14812E3C132C0416F7C7C346870071FDD1F0C0BED9CE43B64FAA25A27C50451E7D177F481CE581BB32D8B49A2105136C60EE44B0411BB77C651D05DD6A8F30EB7A9096438E773AA26B038A58A404DC7C1740FEF44218BF1557FE50969103C5E557596045B253FC3162260015BB615891A60E379E4952A49D3F95A99257BE138C185A3F15F705521A555CCB0F6CE4318DB73605C25EEE2605181E36BA22418F238DC014D72853F37B67413969D901A43EAA96FA2C417EE634D70DF8612F25672C21134522F74E4AF0E83B2096050A2FC1E91F54BD1E1055CC2F636CE5F8CE41C49CB9BDE52D95E4ACED\",\"type\":\"GT\",\"flag\":false}"
    }
}

results matching ""

    No results matching ""