Skip to content

Commit 202c388

Browse files
authored
Merge pull request #578 from zigbee-alliance/update_transactions_spec
Correct transactions documentation
2 parents 9cc424c + 59679db commit 202c388

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

docs/transactions.md

+17-17
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ If one of `OTA_URl`, `OTA_checksum` or `OTA_checksum_type` fields is set, then t
315315
- pid: `uint16` - model product ID (positive non-zero)
316316
- softwareVersion: `uint32` - model software version
317317
- softwareVersionSting: `string` - model software version string
318-
- cdVersionNumber `uint32` - CD Version Number of the certification
318+
- cdVersionNumber `uint16` - CD Version Number of the certification
319319
- minApplicableSoftwareVersion `uint32` - MinApplicableSoftwareVersion should specify the lowest SoftwareVersion for which this image can be applied
320320
- maxApplicableSoftwareVersion `uint32` - MaxApplicableSoftwareVersion should specify the highest SoftwareVersion for which this image can be applied
321321
- firmwareInformation `optional(string)` - FirmwareInformation field included in the Device Attestation response when this Software Image boots on the device
@@ -860,7 +860,7 @@ The PAA certificate is immutable. It can only be revoked by either the owner or
860860
- Parameters:
861861
- cert: `string` - PEM encoded certificate. The corresponding CLI parameter can contain either a PEM string or a path to a file containing the data.
862862
- info: `optional(string)` - information/notes for the proposal. Can contain up to 4096 characters.
863-
- time: `optional(int64)` - proposal time (number of nanoseconds elapsed since January 1, 1970 UTC). CLI uses the current time for that field.
863+
- time: `optional(int64)` - proposal time (number of nanoseconds elapsed since January 1, 1970 UTC). This field cannot be specified using a CLI command and will use the current time by default.
864864
- vid: `uint16` - Vendor ID (positive non-zero). Must be equal to the Certificate's `vid` field for VID-scoped PAA.
865865
- schemaVersion: `optional(uint16)` - Certificate's schema version to support backward/forward compatability(default 0)
866866
- In State: `pki/ProposedCertificate/value/<Certificate's Subject>/<Certificate's Subject Key ID>`
@@ -891,7 +891,7 @@ The PAA certificate is not active until sufficient number of Trustees approve it
891891
- subject: `string` - proposed certificates's `Subject` is base64 encoded subject DER sequence bytes.
892892
- subject_key_id: `string` - proposed certificates'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`.
893893
- info: `optional(string)` - information/notes for the approval. Can contain up to 4096 characters.
894-
- time: `optional(int64)` - approval time (number of nanoseconds elapsed since January 1, 1970 UTC). CLI uses the current time for that field.
894+
- time: `optional(int64)` - proposal time (number of nanoseconds elapsed since January 1, 1970 UTC). This field cannot be specified using a CLI command and will use the current time by default.
895895
- In State: `pki/ApprovedCertificates/value/<Certificate's Subject>/<Certificate's Subject Key ID>`.
896896
- Number of required approvals:
897897
- greater than or equal 2/3 of Trustees (proposal by a Trustee is also counted as an approval)
@@ -918,7 +918,7 @@ The certificate is not reject until sufficient number of Trustees reject it.
918918
- subject_key_id: `string` - proposed certificates's `Subject Key Id` in hex string format, e.g:
919919
`5A:88:0E:6C:36:53:D0:7F:B0:89:71:A3:F4:73:79:09:30:E6:2B:DB`
920920
- info: `optional(string)` - information/notes for the reject. Can contain up to 4096 characters.
921-
- time: `optional(int64)` - reject time (number of nanoseconds elapsed since January 1, 1970 UTC). CLI uses the current time for that field.
921+
- time: `optional(int64)` - reject time (number of nanoseconds elapsed since January 1, 1970 UTC). This field cannot be specified using a CLI command and will use the current time by default.
922922
- In State: `pki/RejectedCertificates/value/<Certificate's Subject>/<Certificate's Subject Key ID>`
923923
- Number of required rejects:
924924
- more than 1/3 of Trustees
@@ -952,7 +952,7 @@ then the certificate will be in a pending state until sufficient number of other
952952
- serial-number: `optional(string)` - certificate's serial number.
953953
- revoke-child: `optional(bool)` - to revoke child certificates in the chain - default is false.
954954
- info: `optional(string)` - information/notes for the revocation proposal. Can contain up to 4096 characters.
955-
- time: `optional(int64)` - revocation proposal time (number of nanoseconds elapsed since January 1, 1970 UTC). CLI uses the current time for that field.
955+
- time: `optional(int64)` - revocation proposal time (number of nanoseconds elapsed since January 1, 1970 UTC). This field cannot be specified using a CLI command and will use the current time by default.
956956
- In State: `pki/ProposedCertificateRevocation/value/<Certificate's Subject>/<Certificate's Subject Key ID>`
957957
- CLI command:
958958
- `dcld tx pki propose-revoke-x509-root-cert --subject=<base64 string> --subject-key-id=<hex string> --from=<account>`
@@ -982,7 +982,7 @@ The revocation is not applied until sufficient number of Trustees approve it.
982982
- subject_key_id: `string` - certificates'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`.
983983
- serial-number: `optional(string)` - certificate's serial number.
984984
- info: `optional(string)` - information/notes for the revocation approval. Can contain up to 4096 characters.
985-
- time: `optional(int64)` - revocation approval time (number of nanoseconds elapsed since January 1, 1970 UTC). CLI uses the current time for that field.
985+
- time: `optional(int64)` - revocation approval time (number of nanoseconds elapsed since January 1, 1970 UTC). This field cannot be specified using a CLI command and will use the current time by default.
986986
- In State: `pki/RevokedCertificates/value/<Certificate's Subject>/<Certificate's Subject Key ID>`
987987
- Number of required approvals:
988988
- greater than or equal 2/3 of Trustees (proposal by a Trustee is also counted as an approval)
@@ -1005,7 +1005,7 @@ Assigns a Vendor ID (VID) to non-VID scoped PAAs (self-signed root certificate)
10051005
- subject_key_id: `string` - certificates'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`.
10061006
- vid: `uint16` - Vendor ID (positive non-zero). Must be the same as `vid` field in the VID-scoped PAA certificate.
10071007
- CLI command:
1008-
- `dcld pki assign-vid --subject=<base64 string> --subject-key-id=<hex string> --vid=<uint16> --from=<account>`
1008+
- `dcld tx pki assign-vid --subject=<base64 string> --subject-key-id=<hex string> --vid=<uint16> --from=<account>`
10091009
- Validation:
10101010
- PAA Certificate with the provided `subject` and `subject_key_id` must exist in the ledger.
10111011
- If the PAA is a VID scoped one, then the `vid` field must be equal to the VID value in the PAA's subject.
@@ -1160,7 +1160,7 @@ Root certificates can not be revoked this way, use [PROPOSE_REVOKE_PAA](#propos
11601160
- serial-number: `optional(string)` - certificate's serial number.
11611161
- revoke-child: `optional(bool)` - to revoke child certificates in the chain - default is false.
11621162
- info: `optional(string)` - information/notes for the revocation. Can contain up to 4096 characters.
1163-
- time: `optional(int64)` - revocation time (number of nanoseconds elapsed since January 1, 1970 UTC). CLI uses the current time for that field.
1163+
- time: `optional(int64)` - revocation time (number of nanoseconds elapsed since January 1, 1970 UTC). This field cannot be specified using a CLI command and will use the current time by default.
11641164
- In State: `pki/RevokedCertificates/value/<Certificate's Subject>/<Certificate's Subject Key ID>`
11651165
- CLI command:
11661166
- `dcld tx pki revoke-x509-cert --subject=<base64 string> --subject-key-id=<hex string> --from=<account>`
@@ -1402,7 +1402,7 @@ Revoked certificates can be retrieved by using the [GET_REVOKED_CERT](#get_revok
14021402
- serial_number: `optional(string)` - certificate's serial number. If not provided, the transaction will revoke all certificates that match the given `subject` and `subject_key_id` combination.
14031403
- revoke-child: `optional(bool)` - if true, then all certificates in the chain signed by the revoked certificate (intermediate, leaf) are revoked as well. If false, only the current root cert is revoked (default: false).
14041404
- info: `optional(string)` - information/notes for the revocation. Can contain up to 4096 characters.
1405-
- time: `optional(int64)` - revocation time (number of nanoseconds elapsed since January 1, 1970 UTC). CLI uses the current time for that field.
1405+
- time: `optional(int64)` - revocation time (number of nanoseconds elapsed since January 1, 1970 UTC). This field cannot be specified using a CLI command and will use the current time by default.
14061406
- In State:
14071407
- `pki/RevokedCertificates/value/<Certificate's Subject>/<Certificate's Subject Key ID>`
14081408
- `pki/RevokedNocRootCertificates/value/<Certificate's Subject>/<Certificate's Subject Key ID>`
@@ -1483,7 +1483,7 @@ Revoked certificates can be retrieved by using the [GET_REVOKED_CERT](#get_revok
14831483
- serial_number: `optional(string)` - certificate's serial number. If not provided, the transaction will revoke all certificates that match the given `subject` and `subject_key_id` combination.
14841484
- revoke-child: `optional(bool)` - if true, then all certificates in the chain signed by the revoked certificate (leaf) are revoked as well. If false, only the current cert is revoked (default: false).
14851485
- info: `optional(string)` - information/notes for the revocation. Can contain up to 4096 characters.
1486-
- time: `optional(int64)` - revocation time (number of nanoseconds elapsed since January 1, 1970 UTC). CLI uses the current time for that field.
1486+
- time: `optional(int64)` - revocation time (number of nanoseconds elapsed since January 1, 1970 UTC). This field cannot be specified using a CLI command and will use the current time by default.
14871487
- In State:
14881488
- `pki/RevokedCertificates/value/<Certificate's Subject>/<Certificate's Subject Key ID>`
14891489
- CLI command:
@@ -1761,12 +1761,12 @@ will be in a pending state until sufficient number of approvals is received.
17611761
- pid_ranges: `optional(array<uint16 range>)` - the list of product-id ranges (range item separated with "-"), comma-separated, in increasing order, associated with this account: `1-100,201-300...`
17621762
- roles: `array<string>` - the list of roles, comma-separated, assigning to the account. Supported roles: `Vendor`, `TestHouse`, `CertificationCenter`, `Trustee`, `NodeAdmin`, `VendorAdmin`.
17631763
- info: `optional(string)` - information/notes for the proposal
1764-
- time: `optional(int64)` - proposal time (number of nanoseconds elapsed since January 1, 1970 UTC). CLI uses the current time for that field.
1764+
- time: `optional(int64)` - proposal time (number of nanoseconds elapsed since January 1, 1970 UTC). This field cannot be specified using a CLI command and will use the current time by default.
17651765
- In State: `dclauth/PendingAccount/value/<address>`
17661766
- Who can send:
17671767
- Trustee
17681768
- CLI command:
1769-
- `dcld tx auth propose-add-account --address=<bench32 encoded string> --pubkey=<protobuf JSON encoded> --roles=<role1,role2,...> --vid=<uint16> --pid_ranges=<uint16-range,uint16-range,...> --from=<account>`
1769+
- `dcld tx auth propose-add-account --address=<bench32 encoded string> --pubkey='<protobuf JSON encoded>' --roles=<role1,role2,...> --vid=<uint16> --pid_ranges=<uint16-range,uint16-range,...> --from=<account>`
17701770

17711771
### APPROVE_ADD_ACCOUNT
17721772

@@ -1779,7 +1779,7 @@ The account is not active until sufficient number of Trustees approve it.
17791779
- Parameters:
17801780
- address: `string` - account address; Bech32 encoded
17811781
- info: `optional(string)` - information/notes for the approval
1782-
- time: `optional(int64)` - approval time (number of nanoseconds elapsed since January 1, 1970 UTC). CLI uses the current time for that field.
1782+
- time: `optional(int64)` - approval time (number of nanoseconds elapsed since January 1, 1970 UTC). This field cannot be specified using a CLI command and will use the current time by default.
17831783
- In State: `dclauth/Account/value/<address>`
17841784
- Who can send:
17851785
- Trustee
@@ -1804,7 +1804,7 @@ The account is not reject until sufficient number of Trustees reject it.
18041804
- Parameters:
18051805
- address: `string` - account address; Bech32 encoded
18061806
- info: `optional(string)` - information/notes for the reject
1807-
- time: `optional(int64)` - reject time (number of nanoseconds elapsed since January 1, 1970 UTC). CLI uses the current time for that field.
1807+
- time: `optional(int64)` - reject time (number of nanoseconds elapsed since January 1, 1970 UTC). This field cannot be specified using a CLI command and will use the current time by default.
18081808
- In State: `dclauth/RejectedAccount/value/<address>`
18091809
- Who can send:
18101810
- Trustee
@@ -1826,7 +1826,7 @@ will be in a pending state until sufficient number of approvals is received.
18261826
- Parameters:
18271827
- address: `string` - account address; Bech32 encoded
18281828
- info: `optional(string)` - information/notes for the revocation proposal
1829-
- time: `optional(int64)` - revocation proposal time (number of nanoseconds elapsed since January 1, 1970 UTC). CLI uses the current time for that field.
1829+
- time: `optional(int64)` - revocation proposal time (number of nanoseconds elapsed since January 1, 1970 UTC). This field cannot be specified using a CLI command and will use the current time by default.
18301830
- In State: `dclauth/Account/value/<address>`
18311831
- Who can send:
18321832
- Trustee
@@ -1844,7 +1844,7 @@ The account is not revoked until sufficient number of Trustees approve it.
18441844
- Parameters:
18451845
- address: `string` - account address; Bech32 encoded
18461846
- info: `optional(string)` - information/notes for the revocation approval
1847-
- time: `optional(int64)` - revocation approval time (number of nanoseconds elapsed since January 1, 1970 UTC). CLI uses the current time for that field.
1847+
- time: `optional(int64)` - revocation approval time (number of nanoseconds elapsed since January 1, 1970 UTC). This field cannot be specified using a CLI command and will use the current time by default.
18481848
- In State: `dclauth/Account/value/<address>`
18491849
- Who can send:
18501850
- Trustee
@@ -2025,7 +2025,7 @@ Adds a new Validator node.
20252025
- Who can send:
20262026
- NodeAdmin
20272027
- CLI command:
2028-
- `dcld tx validator add-node --pubkey=<protobuf JSON encoded> --moniker=<string> --from=<account>`
2028+
- `dcld tx validator add-node --pubkey='<protobuf JSON encoded>' --moniker=<string> --from=<account>`
20292029

20302030
### DISABLE_VALIDATOR_NODE
20312031

0 commit comments

Comments
 (0)