zigbee-alliance / distributed-compliance-ledger

DCL is a public permissioned ledger framework for certification of device models. The ledger is based on Cosmos SDK and CometBFT (Tendermint).
Apache License 2.0
89 stars 44 forks source link

[DCL REST API] Query the Matter PAA certificate with only subjectKeyId #519

Closed wqx6 closed 9 months ago

wqx6 commented 1 year ago

Now we can query a certain Matter PAA certificate with DCL REST APIs if we have both subject and subjectKeyId or only subject of that PAA certificate.

curl -X 'GET' 'https://on.dcl.csa-iot.org/dcl/pki/certificates/{subject}/{subjectKeyId}'

curl -X 'GET' 'https://on.dcl.csa-iot.org/dcl/pki/certificates/{subject}'

Could we have a DCL REST API that can be used to query PAA certificate with only subjectKeyId? Like this:

curl -X 'GET' 'https://on.dcl.csa-iot.org/dcl/pki/certificates?subjectKeyId={subjectKeyId}'
jcps07 commented 1 year ago

DCL-TT: Recommended for 1.3

ashcherbakov commented 11 months ago

What is important here: We will need to write a migration script for existing PAAs (on TestNet and MainNet) which will be executed during upgrade. The migration script should construct the new index to allow querying by SKID.

akarabashov commented 9 months ago

PR: https://github.com/zigbee-alliance/distributed-compliance-ledger/pull/532

akarabashov commented 9 months ago
wqx6 commented 3 months ago

@ashcherbakov Hi, is the new REST API of querying PAA with SKID available now? If yes, how can I use the API. I didn't see update in https://on.dcl.csa-iot.org/

ashcherbakov commented 3 months ago

It's implemented, but not deployed to TestNet and MainNet yet. You can look at the API at https://zigbee-alliance.github.io/distributed-compliance-ledger/