TSD
application/timestamped-data
Magic Bytes
Offset: 0
30 80 06 0B 2A 86 48 86 F7
Timestamped Data (TSD) is a cryptographic file format standardized by the Internet Engineering Task Force (IETF) to encapsulate digital documents with verifiable time-stamp tokens. It is primarily utilized in legal, medical, and financial sectors to provide non-repudiable evidence that specific digital information existed at a point in time and has not been altered. This container format is considered safe, though its security relies on the integrity of the issuing timestamp authority and the cryptographic strength of hashing algorithms.
Validation Code
How to validate .tsd files in Python
Python
def is_tsd(file_path: str) -> bool:
"""Check if file is a valid TSD by magic bytes."""
signature = bytes([0x30, 0x80, 0x06, 0x0B, 0x2A, 0x86, 0x48, 0x86, 0xF7])
with open(file_path, "rb") as f:
return f.read(9) == signature
How to validate .tsd files in Node.js
Node.js
function isTSD(buffer: Buffer): boolean {
const signature = Buffer.from([0x30, 0x80, 0x06, 0x0B, 0x2A, 0x86, 0x48, 0x86, 0xF7]);
return buffer.subarray(0, 9).equals(signature);
}
Go
func IsTSD(data []byte) bool {
signature := []byte{0x30, 0x80, 0x06, 0x0B, 0x2A, 0x86, 0x48, 0x86, 0xF7}
if len(data) < 9 {
return false
}
return bytes.Equal(data[:9], signature)
}
API Endpoint
GET
/api/v1/tsd
curl https://filesignature.org/api/v1/tsd