Glossary

Trusted Platform Module (TPM)

A TPM is a dedicated security chip that provides hardware-based cryptographic functions and secure key storage.

Key Takeaways

  • A Trusted Platform Module (TPM) is a tamper-resistant chip, specified by the Trusted Computing Group (TCG) and standardized as ISO/IEC 11889, that generates, stores, and manages cryptographic keys entirely in hardware so private keys never leave the chip.
  • TPMs provide platform measurement through PCR registers, sealed storage bound to system state, remote attestation, and a hardware random number generator: capabilities that overlap with but differ from the secure elements used in hardware wallets.
  • In Bitcoin infrastructure, TPMs can protect node integrity through measured boot, secure key storage for signing operations, and attestation that a machine is running trusted software: relevant for custody setups, mining firmware, and enterprise node deployments.

What Is a Trusted Platform Module?

A Trusted Platform Module (TPM) is a dedicated microcontroller soldered onto a computer's motherboard (or integrated into its CPU) that provides hardware-rooted security functions. It generates and stores cryptographic keys, performs digital signatures, encrypts data, and produces random numbers: all inside a tamper-resistant boundary that prevents software from extracting key material.

The specification is maintained by the Trusted Computing Group (TCG), an industry consortium. TPM 2.0, the current version, was standardized internationally as ISO/IEC 11889. Unlike a general-purpose hardware security module (HSM) that sits in a server rack, a TPM is a low-cost chip built into nearly every modern PC, laptop, and server. Windows 11 requires a TPM 2.0 chip, making the technology ubiquitous across consumer and enterprise hardware.

The core design philosophy is "roots of trust": a small, verifiable hardware component that bootstraps trust for the rest of the system. By measuring each stage of the boot process and sealing secrets to those measurements, a TPM can ensure that sensitive data is only accessible when the platform is running known, unmodified software.

How It Works

A TPM operates through four main capabilities: key management, platform measurement, sealed storage, and random number generation. Each capability builds on the others to create a layered security model.

Key Hierarchy

TPM 2.0 organizes keys into three persistent hierarchies, each rooted in a unique seed burned into the chip during manufacturing or ownership setup:

  • Endorsement Hierarchy: contains the Endorsement Key (EK), a unique key pair created at manufacture. The EK's public portion identifies the TPM as genuine, and its private portion never leaves the chip. It is used for identity and attestation, not general signing.
  • Storage Hierarchy: contains the Storage Root Key (SRK), which protects application keys. Any key created under this hierarchy is encrypted by the SRK so it cannot be used outside the TPM. Clearing ownership generates a new SRK, invalidating all keys beneath it.
  • Platform Hierarchy: reserved for firmware-level operations, controlled by the platform manufacturer rather than the end user.

TPM 2.0 also includes a null hierarchy with a seed that resets on every reboot, useful for ephemeral session keys. Primary keys are derived deterministically from hierarchy seeds using a key derivation function, so they can be recreated without persistent storage on the TPM.

Platform Measurement (PCR Registers)

Platform Configuration Registers (PCRs) are special hash registers inside the TPM that record the state of the system during boot. A typical PC TPM contains 24 PCRs. TPM 2.0 supports separate PCR banks per hash algorithm (such as SHA-256), replacing the fixed SHA-1 requirement of TPM 1.2.

PCRs can be read at any time but can only be written through the "extend" operation:

// PCR extend operation (conceptual)
// New PCR value = Hash(old_value || new_measurement)
PCR[n] = SHA256(PCR[n] || measurement_hash)

// This creates an ordered, tamper-evident chain
// Boot firmware measures itself into PCR[0]
// Bootloader is measured into PCR[4]
// OS kernel is measured into PCR[8]
// Each stage extends the register before passing control

Because each extension chains the new measurement with the previous PCR value, the final register contents form a tamper-evident log of everything that loaded. Changing any boot component: firmware, bootloader, or kernel: produces different PCR values, which downstream systems can detect.

Sealed Storage

Sealed storage encrypts data into a blob that is tied to specific PCR values. The TPM will only decrypt (unseal) the blob if the current PCR values match the ones recorded at sealing time. This binds secrets to a particular software and hardware configuration.

In practice, sealed storage typically protects a symmetric encryption key (such as an AES key) rather than bulk data, because the TPM's internal operations handle only small data blocks. The sealed AES key then encrypts larger datasets like disk volumes or key databases.

If an attacker modifies the boot chain: for example, by replacing the bootloader with a compromised version: the PCR values change, and the TPM refuses to unseal the protected data. This is the mechanism behind full-disk encryption schemes like BitLocker.

Remote Attestation

A TPM can produce a signed "quote" of its PCR values using an Attestation Identity Key (AIK). A remote verifier can check this quote against expected values to confirm that a machine booted a known, trusted software stack. This is valuable for fleet management, secure enclaves, and any scenario where one party needs to verify the integrity of a remote system.

Supported Algorithms

The TPM 2.0 PC Client profile mandates the following algorithms:

CategoryAlgorithms
HashingSHA-1, SHA-256
AsymmetricRSA (2048-bit), ECC (NIST P-256)
SymmetricAES-128
MACHMAC
Mask generationMGF1 (PKCS#1)

Additional algorithms are defined as optional in the specification. Notably, the standard ECC curve is NIST P-256, not secp256k1 (the curve used by Bitcoin). This distinction matters for Bitcoin applications, as discussed below.

TPM vs. Secure Element vs. HSM

Three types of hardware security devices overlap in function but differ in form factor, portability, and intended use:

FeatureTPMSecure ElementHSM
Form factorChip on motherboard or in CPUSmall IC in card or dongleRack-mounted appliance or PCIe card
PortabilityBound to host platformRemovable, works across devicesFixed in data center
Primary purposePlatform integrity and measurementIdentity and transaction signingHigh-throughput key operations
Key throughputLow (single operations)Low to moderateHigh (thousands of ops/sec)
Typical crypto useDisk encryption, boot attestationPayment cards, hardware walletsCertificate authorities, custody
Bitcoin curve (secp256k1)Not standardSupported in some (e.g., Ledger)Supported in many models

A critical difference: TPMs are physically bound to their host platform. Unlike a smart card or secure element that can be removed and used with different devices, a TPM stays on its motherboard. This makes TPMs ideal for platform identity and integrity checks but less suited for portable signing devices that move between machines.

Use Cases

Bitcoin Node Platform Integrity

A Bitcoin node operator can use TPM-based measured boot to verify that the node software has not been tampered with. By recording the hash of each boot component into PCRs and sealing the node's private keys to those measurements, the operator ensures that keys are only accessible when the machine is running the expected firmware and operating system. If malware modifies the boot chain, the TPM refuses to unseal the keys.

Remote attestation extends this further: a custody provider running multiple nodes can verify that each machine booted a known configuration before authorizing it to participate in signing operations. This is relevant for enterprise multisig setups where multiple machines contribute to a threshold signing scheme.

Disk Encryption for Key Material

Full-disk encryption sealed to TPM PCRs protects cold storage keys at rest. Even if the physical drive is removed and placed in another machine, the data remains encrypted because the new machine's TPM has different PCR values. This provides defense-in-depth beyond password-based encryption alone.

Mining Firmware Verification

ASIC mining operations face supply-chain risks where compromised firmware could redirect hashrate or steal mining rewards. TPM-based attestation can verify that mining controllers are running authenticated firmware, reducing the risk of firmware supply-chain attacks.

Experimental Blockchain Wallets

Academic research has explored using TPMs as blockchain hardware wallets. The TPMWallet concept, presented at IEEE conferences, uses the TPM's key generation and signing capabilities to create a wallet that operates entirely within the TPM's trust boundary. Policy conditions can be attached so the TPM only signs transactions when specific criteria are met.

However, commodity TPMs face a fundamental limitation for Bitcoin: they typically support NIST P-256 for ECC operations, not secp256k1. Bitcoin transactions require secp256k1 signatures, meaning a standard TPM cannot directly sign Bitcoin transactions without custom firmware or software-side curve operations. This is why dedicated hardware wallets from vendors like Ledger and Trezor use specialized secure elements or general-purpose microcontrollers that implement secp256k1 natively.

Risks and Considerations

Curve Limitations for Bitcoin

As noted, standard TPMs do not implement secp256k1. While a TPM can protect symmetric keys used to encrypt a Bitcoin wallet file, it cannot natively perform ECDSA or Schnorr signatures on the Bitcoin curve. The private key would need to exist outside the TPM for signing, partially negating the hardware isolation benefit.

Platform Binding

Keys sealed to a TPM are irrecoverable if the TPM or motherboard fails. Unlike a seed phrase backup that can restore a wallet on any device, TPM-sealed keys are bound to that specific chip. For Bitcoin key management, this means TPM-based protection should complement, not replace, standard backup procedures.

Firmware and Supply-Chain Trust

A TPM's security depends on its firmware and manufacturing process. Vulnerabilities have been discovered in TPM implementations (such as the 2017 Infineon RSA key generation flaw that affected millions of chips). The chain of trust extends back to the manufacturer, introducing a trust assumption that may conflict with Bitcoin's trust-minimized philosophy. For hardware wallet security, purpose-built secure elements with open-source firmware undergo more targeted scrutiny.

Limited Throughput

TPMs are designed for low-frequency operations: boot attestation, occasional key operations, and disk encryption key unsealing. They are not built for high-throughput cryptographic workloads. An HSM is better suited for applications requiring thousands of signing operations per second, such as institutional custody or exchange hot wallets.

Post-Quantum Considerations

Current TPM 2.0 algorithms (RSA-2048 and ECC P-256) are vulnerable to quantum attacks. The TCG has acknowledged this and is working on post-quantum algorithm support for future TPM specifications, but deployed TPMs cannot be upgraded in hardware. For long-term key protection, this is a consideration when relying on TPM-based security for Bitcoin key management.

Why It Matters for Bitcoin and Spark

While TPMs are not direct substitutes for the secure elements and signing devices used in Bitcoin wallets, they play an important supporting role in the broader security stack. For platforms like Spark, where self-custodial infrastructure runs on servers and user devices, TPM-backed measured boot and sealed storage can protect the environment that wallet software runs in: even if the TPM does not sign Bitcoin transactions directly.

As Bitcoin custody moves toward multi-party computation and threshold signing, the integrity of each signing participant's platform becomes critical. A compromised operating system on a signing machine can leak key shares regardless of how they are stored. TPM-based attestation provides a hardware-rooted mechanism to verify that each participant in a signing quorum is running trusted software, adding a layer of defense that software alone cannot provide.

This glossary entry is for informational purposes only and does not constitute financial or investment advice. Always do your own research before using any protocol or technology.