Skip to content

Commit 9703e38

Browse files
committed
Clarify transactions and queries
1 parent 76704c0 commit 9703e38

File tree

1 file changed

+54
-26
lines changed

1 file changed

+54
-26
lines changed

docs/transactions.md

+54-26
Original file line numberDiff line numberDiff line change
@@ -834,7 +834,7 @@ All PKI related methods are based on this restriction.
834834

835835
**Status: Implemented**
836836

837-
Proposes a new PAA certificate.
837+
Proposes a new PAA (self-signed root certificate).
838838

839839
If more than 1 Trustee signature is required to add the PAA certificate, the PAA certificate
840840
will be in a pending state until sufficient number of approvals is received.
@@ -868,7 +868,7 @@ The PAA certificate is immutable. It can only be revoked by either the owner or
868868

869869
**Status: Implemented**
870870

871-
Approves the proposed PAA certificate. It also can be used for revote (i.e. change vote from reject to approve)
871+
Approves the proposed PAA (self-signed root certificate). It also can be used for revote (i.e. change vote from reject to approve)
872872

873873
The PAA certificate is not active until sufficient number of Trustees approve it.
874874

@@ -892,7 +892,7 @@ The PAA certificate is not active until sufficient number of Trustees approve it
892892

893893
**Status: Implemented**
894894

895-
Rejects the proposed PAA certificate. It also can be used for revote (i.e. change vote from approve to reject)
895+
Rejects the proposed PAA (self-signed root certificate). It also can be used for revote (i.e. change vote from approve to reject)
896896

897897
If proposed PAA certificate has only proposer's approval and no rejects then proposer can send this transaction to remove the proposal
898898

@@ -920,9 +920,11 @@ The certificate is not reject until sufficient number of Trustees reject it.
920920

921921
**Status: Implemented**
922922

923-
Proposes revocation of the given PAA certificate by a Trustee.
923+
Proposes revocation of the given PAA (self-signed root certificate) by a Trustee.
924+
925+
Revocation works as a soft-delete, meaning that the certificates are not entirely removed but moved from the approved list to the revoked list.
926+
Revoked certificates can be retrieved by using the [GET_REVOKED_CERT](#get_revoked_cert) query.
924927

925-
Revocation here just means removing it from the ledger.
926928
If a Revocation Distribution Point needs to be published (such as RFC5280 Certificate Revocation List), please use [ADD_REVOCATION_DISTRIBUTION_POINT](#add_revocation_distribution_point).
927929

928930
If `revoke-child` flag is set to `true` then all the certificates in the chain signed by the revoked certificate will be revoked as well.
@@ -953,10 +955,11 @@ then the certificate will be in a pending state until sufficient number of other
953955

954956
**Status: Implemented**
955957

956-
Approves the revocation of the given PAA certificate by a Trustee.
957-
All the certificates in the chain signed by the revoked certificate will be revoked as well.
958+
Approves the revocation of the given PAA (self-signed root certificate) by a Trustee.
959+
960+
Revocation works as a soft-delete, meaning that the certificates are not entirely removed but moved from the approved list to the revoked list.
961+
Revoked certificates can be retrieved by using the [GET_REVOKED_CERT](#get_revoked_cert) query.
958962

959-
Revocation here just means removing it from the ledger.
960963
If a Revocation Distribution Point needs to be published (such as RFC5280 Certificate Revocation List), please use [ADD_REVOCATION_DISTRIBUTION_POINT](#add_revocation_distribution_point).
961964

962965
The revocation is not applied until sufficient number of Trustees approve it.
@@ -982,7 +985,7 @@ The revocation is not applied until sufficient number of Trustees approve it.
982985

983986
**Status: Implemented**
984987

985-
Assigns a Vendor ID (VID) to non-VID scoped PAAs (root certificates) already present on the ledger.
988+
Assigns a Vendor ID (VID) to non-VID scoped PAAs (self-signed root certificate) already present on the ledger.
986989

987990
- Who can send:
988991
- Vendor Admin
@@ -1087,7 +1090,7 @@ Deletes a PKI Revocation distribution endpoint (such as RFC5280 Certificate Revo
10871090

10881091
**Status: Implemented**
10891092

1090-
Adds a PAI certificate signed by a chain of certificates which must be already present on the ledger.
1093+
Adds a PAI (intermediate certificate) signed by a chain of certificates which must be already present on the ledger.
10911094

10921095
- Who can send:
10931096
- Vendor Account
@@ -1125,9 +1128,12 @@ Adds a PAI certificate signed by a chain of certificates which must be already p
11251128

11261129
**Status: Implemented**
11271130

1128-
Revokes the given PAI certificate.
1131+
Revokes the given PAI (intermediate certificate).
1132+
1133+
Revocation works as a soft-delete, meaning that the certificates are not entirely removed but moved from the approved list to the revoked list.
1134+
Revoked certificates can be retrieved by using the [GET_REVOKED_CERT](#get_revoked_cert) query.
1135+
To entirely remove a PAI certificate, please use [REMOVE_PAI](#remove_pai).
11291136

1130-
Revocation here just means removing it from the ledger.
11311137
If a Revocation Distribution Point needs to be published (such as RFC5280 Certificate Revocation List), please use [ADD_REVOCATION_DISTRIBUTION_POINT](#add_revocation_distribution_point).
11321138

11331139
If `revoke-child` flag is set to `true` then all the certificates in the chain signed by the revoked certificate will be revoked as well.
@@ -1154,9 +1160,9 @@ Root certificates can not be revoked this way, use [PROPOSE_REVOKE_PAA](#propos
11541160

11551161
**Status: Implemented**
11561162

1157-
Removes the given PAI certificate from approved and revoked certificates list.
1163+
This transaction completely removes the given PAI (intermediate certificate) from both the approved and revoked certificates list.
11581164

1159-
PAA certificate can not be removed this way.
1165+
PAA (self-signed root certificate) can not be removed this way.
11601166

11611167
- Who can send: Vendor account
11621168
- the sender's VID must match the VID of the removing certificate's owner.
@@ -1375,6 +1381,9 @@ This transaction adds a NOC root certificate owned by the Vendor.
13751381
This transaction revokes a NOC root certificate owned by the Vendor.
13761382
Revoked NOC root certificates can be re-added using the [ADD_NOC_ROOT](#add_noc_root) transaction.
13771383

1384+
Revocation works as a soft-delete, meaning that the certificates are not entirely removed but moved from the approved list to the revoked list.
1385+
Revoked certificates can be retrieved by using the [GET_REVOKED_CERT](#get_revoked_cert) query.
1386+
13781387
- Who can send: Vendor account
13791388
- Vid field associated with the corresponding NOC root certificate on the ledger must be equal to the Vendor account's VID.
13801389
- Parameters:
@@ -1416,7 +1425,7 @@ already present on the ledger.
14161425
- Parameters:
14171426
- cert: `string` - The NOC non-root Certificate, encoded in X.509v3 PEM format. Can be a PEM string or a file path.
14181427
- certificate-schema-version: `optional(uint16)` - Certificate's schema version to support backward/forward compatability(default 0)
1419-
- schemaVersion: `optional(uint16)` - Schema version to support backward/forward compatability(default 0)
1428+
- schemaVersion: `optional(uint16)` - Schema version to support backward/forward compatability(default 0)
14201429
- In State:
14211430
- `pki/ApprovedCertificates/value/<Subject>/<SubjectKeyID>`
14221431
- `pki/ApprovedCertificatesBySubject/value/<Subject>`
@@ -1433,6 +1442,9 @@ already present on the ledger.
14331442
This transaction revokes a NOC ICA certificate owned by the Vendor.
14341443
Revoked NOC ICA certificates can be re-added using the [ADD_NOC_ICA](#add_noc_ica) transaction.
14351444

1445+
Revocation works as a soft-delete, meaning that the certificates are not entirely removed but moved from the approved list to the revoked list.
1446+
Revoked certificates can be retrieved by using the [GET_REVOKED_CERT](#get_revoked_cert) query.
1447+
14361448
- Who can send: Vendor account
14371449
- Vid field associated with the corresponding NOC certificate on the ledger must be equal to the Vendor account's VID.
14381450
- Validation:
@@ -1456,6 +1468,9 @@ Revoked NOC ICA certificates can be re-added using the [ADD_NOC_ICA](#add_noc_ic
14561468

14571469
Retrieve NOC root certificates associated with a specific VID.
14581470

1471+
Revoked NOC root certificates are not returned.
1472+
Use [GET_ALL_REVOKED_NOC_ROOT](#get_revoked_noc_root) to get a list of all revoked NOC root certificates.
1473+
14591474
- Who can send: Any account
14601475
- Parameters:
14611476
- vid: `uint16` - Vendor ID (positive non-zero)
@@ -1470,6 +1485,9 @@ Retrieve NOC root certificates associated with a specific VID.
14701485

14711486
Retrieve NOC ICA certificates associated with a specific VID.
14721487

1488+
Revoked certificates are not returned.
1489+
Use [GET_ALL_REVOKED_CERT](#get_all_revoked_certs) to get a list of all revoked certificates.
1490+
14731491
- Who can send: Any account
14741492
- Parameters:
14751493
- vid: `uint16` - Vendor ID (positive non-zero)
@@ -1484,6 +1502,8 @@ Retrieve NOC ICA certificates associated with a specific VID.
14841502

14851503
Gets a revoked NOC root certificate by the given subject and subject key ID attributes.
14861504

1505+
Revocation works as a soft-delete, meaning that the certificates are not entirely removed but moved from the approved list to the revoked list.
1506+
14871507
- Parameters:
14881508
- subject: `string` - Base64 encoded subject DER sequence bytes of the certificate.
14891509
- subject_key_id: `string` - Certificate's `Subject Key Id` in hex string format, e.g., `5A:88:0E:6C:36:53:D0:7F:B0:89:71:A3:F4:73:79:09:30:E6:2B:DB`.
@@ -1496,7 +1516,10 @@ Gets a revoked NOC root certificate by the given subject and subject key ID attr
14961516

14971517
**Status: Implemented**
14981518

1499-
Retrieve a list of all of NOC root certificates
1519+
Retrieve a list of all of NOC root certificates.
1520+
1521+
Revoked NOC root certificates are not returned.
1522+
Use [GET_ALL_REVOKED_NOC_ROOT](#get_revoked_noc_root) to get a list of all revoked NOC root certificates.
15001523

15011524
- Who can send: Any account
15021525
- Parameters:
@@ -1512,6 +1535,9 @@ Retrieve a list of all of NOC root certificates
15121535

15131536
Retrieve a list of all of NOC ICA certificates
15141537

1538+
Revoked certificates are not returned.
1539+
Use [GET_ALL_REVOKED_CERT](#get_all_revoked_certs) to get a list of all revoked certificates.
1540+
15151541
- Who can send: Any account
15161542
- Parameters:
15171543
- Common pagination parameters
@@ -1524,6 +1550,8 @@ Retrieve a list of all of NOC ICA certificates
15241550

15251551
Gets all revoked NOC root certificates.
15261552

1553+
Revocation works as a soft-delete, meaning that the certificates are not entirely removed but moved from the approved list to the revoked list.
1554+
15271555
- Who can send: Any account
15281556
- Parameters:
15291557
- Common pagination parameters
@@ -1538,9 +1566,9 @@ Gets all revoked NOC root certificates.
15381566

15391567
**Status: Implemented**
15401568

1541-
Gets a certificate (either root or non-root) by the given subject and subject key ID attributes.
1569+
Gets a certificate by the given subject and subject key ID attributes. This query works for all types of certificates (PAA, PAI, NOC_ROOT, NOC_ICA).
15421570
Revoked certificates are not returned.
1543-
Use [GET_ALL_REVOKED_CERTS](#get_all_revoked_certs) to get a list of all revoked certificates.
1571+
Use [GET_REVOKED_CERT](#get_revoked_cert) to get a revoked certificate.
15441572

15451573
- Parameters:
15461574
- subject: `string` - certificates's `Subject` is base64 encoded subject DER sequence bytes
@@ -1554,9 +1582,9 @@ Use [GET_ALL_REVOKED_CERTS](#get_all_revoked_certs) to get a list of all revoked
15541582

15551583
**Status: Implemented**
15561584

1557-
Gets a revoked certificate (either root or non-root) by the given subject and subject key ID attributes.
1585+
Gets a revoked certificate by the given subject and subject key ID attributes. This query works for all types of certificates (PAA, PAI, NOC_ROOT, NOC_ICA).
15581586

1559-
Revocation here just means removing it from the ledger.
1587+
Revocation works as a soft-delete, meaning that the certificates are not entirely removed but moved from the approved list to the revoked list.
15601588
If a Revocation Distribution Point (such as RFC5280 Certificate Revocation List) published to the ledger needs to be queried, please use [GET_PKI_REVOCATION_DISTRIBUTION_POINT](#get_pki_revocation_distribution_point).
15611589

15621590
- Parameters:
@@ -1571,7 +1599,7 @@ If a Revocation Distribution Point (such as RFC5280 Certificate Revocation List)
15711599

15721600
**Status: Implemented**
15731601

1574-
Gets all certificates (either root or non-root) by the given subject key ID attribute.
1602+
Gets all certificates by the given subject key ID attribute. This query works for all types of certificates (PAA, PAI, NOC_ROOT, NOC_ICA).
15751603

15761604
Revoked certificates are not returned.
15771605
Use `GET_ALL_REVOKED_CERTS` to get a list of all revoked certificates.
@@ -1587,7 +1615,7 @@ Use `GET_ALL_REVOKED_CERTS` to get a list of all revoked certificates.
15871615

15881616
**Status: Implemented**
15891617

1590-
Gets all certificates (either root or non-root) associated with a subject.
1618+
Gets all certificates associated with a subject. This query works for all types of certificates (PAA, PAI, NOC_ROOT, NOC_ICA).
15911619

15921620
Revoked certificates are not returned.
15931621
Use [GET_ALL_REVOKED_CERTS](#get_all_revoked_certs) to get a list of all revoked certificates.
@@ -1603,7 +1631,7 @@ Use [GET_ALL_REVOKED_CERTS](#get_all_revoked_certs) to get a list of all revoked
16031631

16041632
**Status: Implemented**
16051633

1606-
Gets all child certificates for the given certificate.
1634+
Gets all child certificates for the given certificate. This query works for both PAI and NOC_ICA.
16071635
Revoked certificates are not returned.
16081636

16091637
- Parameters:
@@ -1618,7 +1646,7 @@ Revoked certificates are not returned.
16181646

16191647
**Status: Implemented**
16201648

1621-
Gets all certificates (both root and non-root).
1649+
Gets all certificates. This query works for all types of certificates (PAA, PAI, NOC_ROOT, NOC_ICA).
16221650

16231651
Revoked certificates are not returned.
16241652
Use [GET_ALL_REVOKED_CERTS](#get_all_revoked_certs) to get a list of all revoked certificates.
@@ -1636,9 +1664,9 @@ Should be sent to trusted nodes only.
16361664

16371665
**Status: Implemented**
16381666

1639-
Gets all revoked certificates (both root and non-root).
1667+
Gets all revoked certificates. This query works for all types of certificates (PAA, PAI, NOC_ROOT, NOC_ICA).
16401668

1641-
Revocation here just means removing it from the ledger.
1669+
Revocation works as a soft-delete, meaning that the certificates are not entirely removed but moved from the approved list to the revoked list.
16421670
If a Revocation Distribution Point (such as RFC5280 Certificate Revocation List) published to the ledger needs to be queried, please use [GET_PKI_REVOCATION_DISTRIBUTION_POINT](#get_pki_revocation_distribution_point).
16431671

16441672
Should be sent to trusted nodes only.

0 commit comments

Comments
 (0)