Skip to main content

Module mtc

Module mtc 

Source
Expand description

Python bindings for synta.mtc — Merkle Tree Certificate (MTC) ASN.1 types.

Exposes synta.mtc — a submodule containing all ASN.1 types from the MTC specification (draft-ietf-plants-merkle-tree-certs), decoded from DER.

§Classes

Python nameSchema typeDescription
HashAlgorithmHash algorithm enum (SHA-2/SHA-3)
ProofNodeProofNodeLeft/right hash in inclusion path
SubtreeSubtreeHash subtree range
SubtreeProofSubtreeProofLeft + right subtrees
InclusionProofInclusionProofLog inclusion proof
LogIDLogIDLog identifier (hash alg + pubkey)
CosignerIDCosignerIDCosigner identity
CheckpointCheckpointSigned tree checkpoint
SubtreeSignatureSubtreeSignatureCosigner subtree signature
TbsCertificateLogEntryTBSCertificateLogEntryLog entry for a certificate
MerkleTreeCertEntryMerkleTreeCertEntryCHOICE: null or TBS entry
LandmarkIDLandmarkIDLandmark log identifier
StandaloneCertificateStandaloneCertificateFull standalone MTC certificate
LandmarkCertificateLandmarkCertificateLandmark certificate
IssuanceLogBuilderIn-memory Merkle log builder
ValidationPolicyHash alg / cosig / expiry policy
TrustAnchorLog trust anchor + revocation list
CertificateValidatorRelying-party certificate validator

Functions§

register_mtc_module
Register all MTC classes into the synta.mtc submodule. Populate the synta.mtc module with all classes.