Get desktop application:
View/edit binary Protocol Buffers messages
Defines the way empty / node / leaf hashes are constructed incorporating preimage protection, which can be application specific.
Used in:
Hash strategy cannot be determined. Included to enable detection of mismatched proto versions being used. Represents an invalid value.
Certificate Transparency strategy: leaf hash prefix = 0x00, node prefix = 0x01, empty hash is digest([]byte{}), as defined in the specification.
Sparse Merkle Tree strategy: leaf hash prefix = 0x00, node prefix = 0x01, empty branch is recursively computed from empty leaf nodes. NOT secure in a multi tree environment. For testing only.
Append-only log strategy where leaf nodes are defined as the ObjectHash. All other properties are equal to RFC6962_SHA256.
The CONIKS sparse tree hasher with SHA512_256 as the hash algorithm.
The CONIKS sparse tree hasher with SHA256 as the hash algorithm.
LogRootFormat specifies the fields that are covered by the SignedLogRoot signature, as well as their ordering and formats.
MapRootFormat specifies the fields that are covered by the SignedMapRoot signature, as well as their ordering and formats.
Proof holds a consistency or inclusion proof for a Merkle tree, as returned by the API.
Used in:
leaf_index indicates the requested leaf index when this message is used for a leaf inclusion proof. This field is set to zero when this message is used for a consistency proof.
SignedLogRoot represents a commitment by a Log to a particular tree.
Used in:
key_hint is a hint to identify the public key for signature verification. key_hint is not authenticated and may be incorrect or missing, in which case all known public keys may be used to verify the signature. When directly communicating with a Trillian gRPC server, the key_hint will typically contain the LogID encoded as a big-endian 64-bit integer; however, in other contexts the key_hint is likely to have different contents (e.g. it could be a GUID, a URL + TreeID, or it could be derived from the public key itself).
log_root holds the TLS-serialization of the following structure (described in RFC5246 notation): Clients should validate log_root_signature with VerifySignedLogRoot before deserializing log_root. enum { v1(1), (65535)} Version; struct { uint64 tree_size; opaque root_hash<0..128>; uint64 timestamp_nanos; uint64 revision; opaque metadata<0..65535>; } LogRootV1; struct { Version version; select(version) { case v1: LogRootV1; } } LogRoot; A serialized v1 log root will therefore be laid out as: +---+---+---+---+---+---+---+---+---+---+---+---+---+---+-....--+ | ver=1 | tree_size |len| root_hashlen | +---+---+---+---+---+---+---+---+---+---+---+---+---+---+-....--+ +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ | timestamp_nanos | revision | +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ +---+---+---+---+---+-....---+ | len | metadata | +---+---+---+---+---+-....---+ (with all integers encoded big-endian).
log_root_signature is the raw signature over log_root.
SignedMapRoot represents a commitment by a Map to a particular tree.
map_root holds the TLS-serialization of the following structure (described in RFC5246 notation): Clients should validate signature with VerifySignedMapRoot before deserializing map_root. enum { v1(1), (65535)} Version; struct { opaque root_hash<0..128>; uint64 timestamp_nanos; uint64 revision; opaque metadata<0..65535>; } MapRootV1; struct { Version version; select(version) { case v1: MapRootV1; } } MapRoot;
Signature is the raw signature over MapRoot.
Represents a tree, which may be either a verifiable log or map. Readonly attributes are assigned at tree creation, after which they may not be modified. Note: Many APIs within the rest of the code require these objects to be provided. For safety they should be obtained via Admin API calls and not created dynamically.
ID of the tree. Readonly.
State of the tree. Trees are ACTIVE after creation. At any point the tree may transition between ACTIVE, DRAINING and FROZEN states.
Type of the tree. Readonly after Tree creation. Exception: Can be switched from PREORDERED_LOG to LOG if the Tree is and remains in the FROZEN state.
Hash strategy to be used by the tree. Readonly.
Hash algorithm to be used by the tree. Readonly.
Signature algorithm to be used by the tree. Readonly.
Display name of the tree. Optional.
Description of the tree, Optional.
Identifies the private key used for signing tree heads and entry timestamps. This can be any type of message to accommodate different key management systems, e.g. PEM files, HSMs, etc. Private keys are write-only: they're never returned by RPCs. The private_key message can be changed after a tree is created, but the underlying key must remain the same - this is to enable migrating a key from one provider to another.
Storage-specific settings. Varies according to the storage implementation backing Trillian.
The public key used for verifying tree heads and entry timestamps. Readonly.
Interval after which a new signed root is produced even if there have been no submission. If zero, this behavior is disabled.
Time of tree creation. Readonly.
Time of last tree update. Readonly (automatically assigned on updates).
If true, the tree has been deleted. Deleted trees may be undeleted during a certain time window, after which they're permanently deleted (and unrecoverable). Readonly.
Time of tree deletion, if any. Readonly.
State of the tree.
Used in:
Tree state cannot be determined. Included to enable detection of mismatched proto versions being used. Represents an invalid value.
Active trees are able to respond to both read and write requests.
Frozen trees are only able to respond to read requests, writing to a frozen tree is forbidden. Trees should not be frozen when there are entries in the queue that have not yet been integrated. See the DRAINING state for this case.
Deprecated: now tracked in Tree.deleted.
Deprecated: now tracked in Tree.deleted.
A tree that is draining will continue to integrate queued entries. No new entries should be accepted.
Type of the tree.
Used in:
Tree type cannot be determined. Included to enable detection of mismatched proto versions being used. Represents an invalid value.
Tree represents a verifiable log.
Tree represents a verifiable map.
Tree represents a verifiable pre-ordered log, i.e., a log whose entries are placed according to sequence numbers assigned outside of Trillian.