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
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

Structs§

PyCheckpoint
A signed Merkle tree checkpoint.
PyCosignerID
Cosigner identity: hash algorithm and public key (mirrors LogID).
PyInclusionProof
Merkle tree inclusion proof for a log entry.
PyLandmarkCertificate
A Merkle Tree Landmark Certificate.
PyLandmarkID
Landmark log identifier: a LogID plus the tree size at issuance.
PyLogID
Log identifier: the hash algorithm OID and the log’s public key DER.
PyMerkleTreeCertEntry
CHOICE: a null log entry or a TBSCertificateLogEntry.
PyProofNode
A node in a Merkle inclusion proof path.
PyStandaloneCertificate
A full standalone Merkle Tree Certificate.
PySubtree
A hash subtree range in the Merkle tree.
PySubtreeProof
Proof consisting of optional left and right subtree lists.
PySubtreeSignature
A cosigner’s signature over a subtree and checkpoint.
PyTbsCertificateLogEntry
To-be-signed log entry for a certificate.

Functions§

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