Book a free call

GDPR and Blockchain: How the Two Fit Together

GDPR demands data that can be corrected and deleted, while blockchains keep data forever. The two fit together only when personal data stays off the chain.

Hertiv engineering teamReviewed by a senior engineer
7 min read
GDPR and Blockchain: How the Two Fit Together
On this page

Short answer

GDPR and blockchain fit together when personal data is kept off the chain and only hashes or references are stored on it. The tension is real: GDPR gives people the right to have their data corrected and erased, while a blockchain is designed so records cannot be changed or deleted. Teams resolve it with off-chain storage, clear controller roles and permissioned networks.

What is the clash between GDPR and blockchain?

The clash between GDPR and blockchain is a clash between two design goals. GDPR, the EU data protection law in force since 25 May 2018, gives people control over their personal data, while a blockchain is built to keep a permanent, shared record that no single party can change.

GDPR rests on principles in Article 5: data must be collected for a stated purpose, kept to what is needed, kept accurate and kept only as long as needed. People also have rights to access, correct and erase their data. A blockchain does the opposite by default: it copies data to many nodes and makes past records very hard to change.

That does not make the two incompatible. It makes the design matter. A blockchain that stores names, addresses or health details in plain text will struggle with GDPR. A blockchain that stores only hashes and keeps the personal data elsewhere can usually be built to fit. GDPR-compliant software development starts from the same point: the design decides whether the law is met.

Where do GDPR and blockchain actually conflict?

GDPR and blockchain conflict in four places, and each one has a design answer. The table below sets out the clash and the fix that teams actually use.

GDPR requirementWhat a blockchain doesDesign fix
Data minimisationCopies data to many nodesStore the minimum on-chain
Right to erasureRecords cannot be deletedDelete off-chain, destroy the key
RectificationPast blocks cannot be editedCorrect off-chain, add a new record
AccountabilityNo single operatorName a controller in a contract
Cross-border transfersNodes sit worldwidePermissioned network, agreed locations

The table shows a pattern. Every conflict has a design answer, but none of them is free. Each one adds a database, a contract or a governance step, which is why GDPR work should start before the chain is chosen, not after it is built. What GDPR compliance means in practice is a set of these design choices, made early.

Who is the data controller on a blockchain?

GDPR assigns duties to a data controller, the party that decides why and how personal data is processed, and to processors that act on the controller's instructions. On a blockchain those roles are not obvious, because no single company runs the network.

The French regulator CNIL, the first European data protection authority to publish blockchain guidance in September 2018, gave a practical answer. Participants who decide what data goes on the chain and have the right to write to it are controllers. Miners and validators who only check and record transactions at others' direction are processors.

That reading has a direct consequence for projects. If a group of companies runs a shared chain for a common purpose, they should name one of them as controller in a contract, or set up a company to hold the role. Leaving the role unnamed does not remove it; it leaves every participant exposed. Implementing GDPR compliance starts with naming these roles before any data flows.

Smart contract developers sit in between. Depending on what they decide, they can be controllers, processors or neither, much like other software developers. A developer who writes code to someone else's specification is not automatically a controller.

Is a public key personal data?

A public key is likely to be personal data under GDPR, because it can be linked to a person when it is used with an exchange account, a wallet address list or any other identifying record. It is pseudonymous rather than anonymous: the name is hidden, but the link can still be made.

That matters because public keys must sit on the chain for the system to work. The CNIL accepted this and pointed to technical measures that reduce the link, such as one-time keys and zero-knowledge proofs, which let a user prove something without revealing the underlying data.

The practical rule is simple. Treat keys and wallet addresses as personal data, limit where they appear, and avoid publishing them next to names, emails or delivery addresses. A chain that mixes identity data with transaction data creates a GDPR problem that no later fix can fully undo.

How do teams build a GDPR-friendly blockchain?

Teams build a GDPR-friendly blockchain by keeping personal data off the chain and putting only the minimum on it. The personal data lives in a controlled database or document store, where it can be corrected, limited and deleted. The chain holds a hash, a commitment or a status marker that proves the data existed and has not been tampered with.

  1. Map every personal data field. List each field the system handles and ask whether the chain needs it.
  2. Decide what must be on-chain. In most designs the answer is nothing personal, only hashes and references.
  3. Store the rest off-chain. Use a controlled store with access rules and retention periods.
  4. Hash the off-chain record. Store the hash on the chain so the record can be verified without being exposed.
  5. Write the erasure procedure before launch. Agree how a deletion request deletes the data and breaks the link.
  6. Name the controller and processors. Put the roles in contracts, not in a slide deck.

Permissioned networks make this easier. When the participants are known and the nodes sit in agreed places, the team can control who sees what, where data travels and who can delete it.

Public chains can still be used, but the team must accept that anyone can copy the data, which raises the bar for what may go on the chain. Machine learning GDPR compliance faces the same off-chain discipline: the model trains on controlled data, not on data copied everywhere.

What did the CNIL guidance actually say?

The CNIL published its blockchain guidance in September 2018, the first from a European data protection authority on the topic. It did not declare blockchains compliant or non-compliant. It gave a framework: identify the actors, classify them as controllers or processors, and judge each use case on its design.

On erasure, the CNIL offered a middle ground. Deleting the off-chain data and destroying the key that links it to the on-chain hash can make the remaining data almost inaccessible, which approximates the effect of erasure. The CNIL was careful to add that this only works if the personal data itself is really gone, not just hidden behind a key that someone still holds.

The guidance also warned teams to ask whether a blockchain is the right tool at all. A shared database with access controls solves many of the same problems with far less GDPR friction. The CNIL's point was that the technology should serve the purpose, not the other way round. Blockchain regulatory compliance for enterprises carries the same warning for every regulated use case.

Example (hypothetical): a delivery ledger that respects erasure

Example (hypothetical): a retailer builds a delivery ledger that records 50,000 deliveries a year. Each delivery record holds the customer's name, address and phone number. The team stores those details in its own database and writes only a 32-byte hash of each record to the chain.

The arithmetic is small. 50,000 records at 32 bytes each is 1,600,000 bytes, about 1.6 megabytes of hashes on the chain for a full year. The personal data never touches the chain, so the ledger can prove a delivery happened without exposing who received it.

When a customer asks for erasure, the team deletes the database row and destroys the key that links the hash to that customer. About 40 such requests arrive each year, and each one is handled in 3 working days. The hash stays on the chain, but it no longer points to a person, which is the outcome the erasure right is meant to achieve.

What are the common mistakes?

The most common GDPR and blockchain mistakes are storing personal data on the chain, assuming immutability beats the law, and launching without a named controller or an erasure procedure.

  • Storing names or emails on-chain. Personal data in plain text on a public chain cannot be erased, which is the core conflict.
  • Assuming immutability beats the law. A technical property is not a legal defence. GDPR duties apply whatever the architecture.
  • No named controller. A shared chain with no controller leaves every participant carrying duties nobody agreed to.
  • Treating hashes as anonymous. A hash that links to a person through a key or a database is pseudonymous personal data, not anonymous data.
  • Forgetting where nodes sit. Nodes in many countries mean transfers to many countries, which need a legal basis.
  • No erasure procedure at launch. Erasure designed after launch is a rebuild. Erasure designed before launch is a procedure.

Key takeaways

  • GDPR and blockchain clash on minimisation, erasure, rectification and accountability
  • Personal data belongs off-chain; only hashes, commitments or status markers go on-chain
  • Participants who decide what goes on the chain are controllers; validators are processors
  • Public keys are likely pseudonymous personal data, not anonymous data
  • Deleting off-chain data and destroying the linking key approximates erasure, per the CNIL

Frequently asked questions

Is blockchain compatible with GDPR?

It can be, with the right design. GDPR does not ban blockchains. The usual design keeps personal data in a controlled off-chain store and puts only hashes or references on the chain, names a data controller in a contract and writes an erasure procedure before launch.

What did the CNIL say about blockchain and GDPR?

The French regulator CNIL published the first European data protection guidance on blockchain in September 2018. It classified participants who write data to the chain as controllers and miners or validators as processors, and it said erasure can be approximated by deleting off-chain data and destroying the linking key.

Can personal data be deleted from a blockchain?

Data written to a blockchain in plain text cannot easily be deleted, because the record is copied to many nodes. The accepted approach is to keep personal data off-chain, delete it there when asked, and destroy the key that links the on-chain hash to the person, so the hash no longer points to anyone.

Is a wallet address personal data under GDPR?

A public key or wallet address is likely to be personal data, because it can be linked to a person through an exchange account or another identifying record. It is pseudonymous rather than anonymous. Teams should treat keys and addresses as personal data and limit where they appear.

Are permissioned blockchains easier for GDPR compliance?

Yes. When participants are known and nodes sit in agreed places, the team can control who sees data, where it travels and who can delete it. Public chains can still be used, but anyone can copy the data, so the team must be stricter about what is allowed on the chain.

Who is the data controller in a blockchain project?

The controller is the party that decides why and how personal data is processed. On a chain, participants who decide what data goes on it are usually controllers, while miners and validators who only record transactions are processors. A group running a shared chain should name one controller in a contract.

Found this useful? Share it.
Hertiv engineering team

Written from projects we build for clients: blockchain systems in production. Every post is reviewed by a senior engineer before publishing and updated when practice changes.

About HertivHow we work

Building a blockchain product for European users? Talk to Hertiv.

A senior engineer replies within one business day. Or see our Data Security & Compliance service.

Book a free call

Keep reading

All posts

Tell us what you want to build

A senior engineer reads every request and replies within one business day with questions, a rough range, or a call link.

  • NDA on request before any details
  • You own all code, models and IP
  • US, UK and EU time-zone overlap

Your email app should open with your message ready to send. If it does not, write to contact@hertiv.com.

Prefer email? Write to contact@hertiv.com
Estimate costBook a call