guest@tfb:~$ cat analysis/proving bitcoin ownership.md
guest@tfb: ~/analysis — less

How to prove ownership of bitcoin to the tax authorities (the holder’s or the deceased’s)

Articles 105 and 106 LGT · Article 1227 CC · Article 41 eIDAS · STS 364/2019

Anyone who holds bitcoin in self-custody may sooner or later have to show the Spanish tax authorities that certain coins belonged to them, and since when. It happens to the holder who wants to pay the funds into a bank and to the heir who must establish what formed part of the estate.

If the tax authorities attribute an unjustified capital gain to the taxpayer (ganancia patrimonial no justificada, GPNJ, Article 39 LIRPF), there are two lines of defence: proving the origin of the funds with which the bitcoin was bought, or proving that the bitcoin was already theirs in a time-barred period (STS 364/2019).

1. What has to be proved

The blockchain shows precisely that an address held a given amount of bitcoin from a specific block onwards, but not whom that address belonged to. Proving ownership means linking the two: that several addresses form a single wallet, since when the coins have been in it, that the wallet belongs to a person and, if the defence rests on origin, where the money came from.

The general rules of evidence in tax proceedings apply here (Articles 105.1 and 106.1 LGT), which we discuss in the article on non-KYC bitcoin and p2p trading. No rule gives a cryptographic signature or a timestamp a statutory evidentiary value, and everything is assessed freely and as a whole. The tax authorities must prove the basic fact of the unjustified gain; the burden then shifts to the taxpayer, for whom «mere statements» are not enough (STS 1539/2025).

Before turning to the evidence, two points need clarifying. The seed phrase and the passphrase are means of access, not evidence, and must never appear in a defensive traceability file. And a notarial record is not enough on its own, because it reflects a single moment rather than a continuous and changing holding: the Audiencia Nacional endorsed the Inspectorate’s view that a notarial record of presence «attests to the existence of the Box and its contents at the moment the Notary appears […] but to nothing more» (SAN of 4 November 2025, appeal 1101/2021).

2. The evidence, from strongest to weakest

The evidence is ranked below by its probative strength. The more of it that is gathered, the easier it will be to reconstruct the traceability of the crypto-assets and, with a sound knowledge of the rules, to contain their tax consequences.

No.Specific evidenceWhat it establishesWhat it does not establish
1Exchange records and bank statements; for p2p purchases, records of the trade with its bank statement and its trail on Lightning or on-chainThe link between the asset and the person, the acquisition date and the acquisition value; if the money had been declared, also the originThat the balance is still in the wallet today
2Descriptor or xpub in a watch-only wallet; wallet exportsThat the addresses belong to a single wallet, their age and the traceability of incoming and outgoing transactionsWhom the wallet belongs to
3Message signed (BIP-322) and timestamped with OpenTimestampsThat the signer controlled the keys at the latest on the date of the timestampOwnership before that date; the origin
4Documented series of cycling and migrationsContinuous control year by yearThe link with the person, on its own
5Timestamped labels and wallet filesThe consistency of the account of where the funds came fromNothing on their own

The strongest evidence is a withdrawal from a KYC exchange to an address in the taxpayer’s wallet: the exchange knows who withdrew, when and to which address and, if it is subject to reporting obligations in Spain, reports its operations, transfers included, to the tax authorities (form 173). If the payment to the exchange came from an account funded with declared income, the whole establishes the means, the person and the transaction, which is what the origin defence requires (SSTS 1537 and 1539/2025). For withdrawals after 30 December 2024, the provider must also keep the information on transfers to self-hosted addresses and, above €1,000, assess whether the address belongs to its customer. And the taxpayer can obtain all that material fairly easily, by downloading it from the platform itself.

With p2p purchases, by contrast, no third party keeps the file: a decentralised platform does not identify the parties or keep records that can be requested years later. The evidence is built by the buyer, who must do so at the time of each trade: the receipt for the transfer or Bizum payment from their account, the identifier and a screenshot of the order, the trail of the Lightning payment and, where there was one, of the swap to the chain, and the receiving address. With that set, on the day they want to pay the funds into a bank, they will be able to justify to the bank and to the tax authorities the origin of the funds, or their age if the purchase is already time-barred, and avoid being attributed a GPNJ. Without it, the origin defence is practically closed.

The descriptor fully identifies a wallet. Loaded into a watch-only wallet, it shows all its addresses and its history without being able to spend, and proves that those addresses form part of a single wallet, but not whose it is. That link is supplied by the withdrawal from a KYC exchange or, for p2p purchases, by the documented payment trail, supplemented where necessary by a signature.

A message signature (BIP-322 standard) is the kind that can be made, for instance, from a hardware wallet: a text is signed with the key of an address, and anyone can check with public software that only someone controlling that key could have signed it. It proves control at the moment of signing, not before. For the origin defence a current signature is enough: together with the bank payment, the order and the receipt of the funds, it links the receiving address to the taxpayer. For the limitation defence, the signature must also be datable to a tax year that becomes time-barred, and that is what OpenTimestamps is for. It is not automatic: the holder uploads the signed file to a free service, which anchors its hash in a bitcoin transaction and returns a small file that, once confirmed on the chain a few hours later, makes it possible to verify that the document existed no later than that date. That is why the signature that proves something about the deceased is the one they made and timestamped during their lifetime; one made by the heir afterwards only proves that the heir controls the key today.

Article 1227 CC only gives effect to the date of a private document against third parties from its entry in a public registry, the death of one of the signatories or its delivery to a public official. OpenTimestamps is not on that list, and the tax authorities could rely on this to deny the validity of the date, although it can be argued in reply that the record is public and, in practice, unalterable. There is no administrative doctrine or case law on the point, but Article 41.1 of the eIDAS Regulation prevents, at least in court proceedings, an electronic time stamp from being denied evidentiary effect on the grounds that it is in electronic form or does not meet the requirements of a qualified time stamp.

The same Article 1227 CC works in the heir’s favour: the date of a document signed by the deceased, such as the sheet identifying their wallet and explaining where the funds came from, counts against third parties, at the very least, from the date of death.

4. Transactions that affect traceability

Every time a coin is spent, a new one is created with the date of the new block, so cycling, consolidating, migrating to another wallet or doing a coinjoin resets the visible age of the balance. Between one’s own wallets there is no change in net worth (V0648-24); what changes is the chain of evidence.

TransactionCan continuity be reconstructed?What to keep
Cycling or consolidation within the same descriptorYesThe descriptor; labels by source
Migration to a new descriptorYes, if both are keptOld descriptor, new descriptor and migration transactions; ideally, a signature by the old wallet over the new descriptor, timestamped
CoinjoinNot without a recordPrivate record of correspondences, round identifiers, labels
LightningOnly with local dataWallet exports, channel opening and closing transactions
Swap between Lightning and the chainBreaks the public linkSwap identifier, refund file, transactions on both sides
Exchange for another crypto-asset or stablecoinYes, with the platform’s recordsExports and prices of the trades

With coinjoins, timing matters: if they were carried out in a time-barred tax year, it is enough to prove that the output was already in the wallet that year; if they were carried out in a year still open to review, it is advisable to have the correspondence between each output and the old input documented. Moving to L-BTC or WBTC may, in addition, be treated as an exchange (permuta), by analogy with the DGT’s position on ETH and rETH (V0612-26), as we explain in the analysis on wrapping and bridging.

5. Retention periods and heirs’ access

Banks and providers keep customer due diligence records for ten years and then delete them. For a purchase made in 2016, those records may start to disappear during 2026, so anyone who does not already have them should request or download them as soon as possible. If the holder dies without having done so, the heir can claim them as successor, with the title of inheritance and the death certificate, and can access the deceased’s patrimonial data even if the deceased had prohibited it. In any event, the more documentation the deceased leaves in order, the easier it will be for the heirs to make decisions and assess their tax consequences.

6. What only the holder can prepare

The heir can only reconstruct the evidence from what they find; the holder, by contrast, can create evidence during their lifetime that no one will be able to produce afterwards: a timestamped signature, the record of their coinjoins, the download of statements before they are destroyed and a written explanation of where each lot came from. For access and succession planning, we refer to the analysis on inheritance and gifts of crypto-assets.

DGT rulings — cited rulings
  • V0648-24, of 11 April 2024 — the fee on a transfer between wallets of the same holder is irrelevant for IRPF purposes.
  • V0612-26, of 17 March 2026 — ETH and rETH are crypto-assets of a different type and exchanging them may give rise to a capital gain or loss.
  • 0018-23, of 29 June 2023 (non-binding) — duty to keep records and burden of proof where transaction data cannot be obtained.

Applicable legislation: Articles 33.1 and 39 LIRPF; Articles 105.1 and 106.1 LGT; Article 39 ter RGAT; Article 1227 CC; Articles 299.2, 326 and 384 LEC; Article 41 of Regulation (EU) 910/2014 (eIDAS); Articles 14.5 and 16.2 of Regulation (EU) 2023/1113; Article 25.1 of Law 10/2010; Article 3.1 LOPDGDD.

Case law and administrative decisions cited
  • STS 364/2019, of 18 March 2019 (appeal 6296/2017) — ownership prior to the limitation period without identifying the origin (Legal Ground 3).
  • STS 1537/2025 and STS 1539/2025, both of 27 November 2025 — proof of origin (Legal Ground 5); insufficiency of mere statements and ease of producing evidence (STS 1539/2025, Legal Grounds 3 and 4).
  • SAN of 4 November 2025 (appeal 1101/2021), ECLI:ES:AN:2025:5534 — limited scope of the notarial record of presence (Legal Ground 5).
  • AEPD (Spanish Data Protection Agency), report 2019-0036 — heirs’ access to the deceased’s patrimonial data.
The rules of evidence (free assessment, burden of the basic fact, ownership prior to the limitation period) are supported by statute and case law. There is no administrative doctrine or case law on the evidentiary value of a BIP-322 signature, a descriptor or an OpenTimestamps proof, nor on how they fit within Article 1227 CC or the eIDAS Regulation: their effect will depend on the overall assessment of the evidence that can be carried out in each case.