From the modular BaseSAP protocol to a testable post-quantum migration plan: what exactly breaks, what is preserved, and what experiments are needed.
The main research question is: Can the modular BaseSAP architecture provide a sufficient foundation for post-quantum stealth addresses, and what testable conditions determine when such a migration preserves privacy, security, and cost-effectiveness?
Content
- Annotation
- Introduction: The Stealth Address Paradox
- Methodology and selected questions
- What is BaseSAP: A Deep Dive
- Quantum Threat: What Exactly Breaks Down
- PDF evidence and testable hypotheses
- Linking Work: From ISAP/DKSAP to the Post-Quantum Layer
- Experimental plan
- Discussion: privacy, DoS, standards
- Limitations of the study
- Conclusion
- Sources
Annotation
Stealth addresses promise privacy on public blockchains: the recipient publishes a meta-address, the sender non-interactively creates a one-time address, and an external observer cannot directly link the sender and receiver. The BaseSAP protocol (arXiv:2306.14272v1) takes this a step further by bringing stealth addresses to the application layer of programmable blockchains and offering a modular architecture of Announcer and Registry contracts compatible with various cryptographic schemes. However, the basic BaseSAP implementation relies on Secp256k1, which means it inherits the quantum vulnerability of discrete logarithm schemes. This paper examines what exactly a quantum adversary can do with BaseSAP: recover the scanning and spending keys from the public meta-address, compute the Diffie-Hellman shared secret, associate announcements with stealth addresses, and, ultimately, gain access to funds. We formulate four testable hypotheses about the sufficiency of BaseSAP modularity for post-quantum migration, compile evidence from PDFs, and propose an experiment: add a scheme with identifier 2 based on a post-quantum primitive, measure the increase in gas, parse time, and staking requirements. The main conclusion: BaseSAP modularity is necessary but not sufficient; a post-quantum stealth address requires not only a new algorithm but also a new analysis of privacy, cost, and DoS resistance.
BaseSAP, stealth addresses, Ethereum, post-quantum cryptography, privacy, DoS
1. Introduction: The Stealth Address Paradox
Imagine an address created specifically to prevent anyone from linking the recipient to a transaction. As long as cryptography holds up, this is a powerful privacy tool. But what happens if a cryptographically relevant quantum computer capable of solving the discrete logarithm problem on elliptic curves emerges? Then, the public key, which today seems secure, could become a pointer to a private key. This is precisely the paradox: the more public and verifiable the stealth address infrastructure is, the more valuable a target it becomes for a quantum adversary.
BaseSAP is a convenient testing ground for such analysis. First, it’s not an abstract scheme, but a protocol with specific contracts, a meta-address format, gas economy, and DoS analysis. Second, it’s specifically designed to be modular: the Announcer is independent of the cryptographic scheme, the Registry stores variable-sized meta-addresses, and the scheme identifier allows for the addition of new implementations. Third, the base implementation uses Secp256k1 and DKSAP—precisely the class of schemes most vulnerable to Shor’s algorithm.
Our goal is not to scare the reader with a “quantum apocalypse,” but to present a verifiable picture: which properties of BaseSAP persist across cryptographic changes, which ones break, and which experiments separate hype from engineering reality. We link several lines of work: from early ISAP/DKSAP and improvements by Fan, Courtois-Mercer, Liu et al. to modular BaseSAP and a hypothetical post-quantum layer.
2. Methodology and selected questions
We use the questionnaire as an editorial and research tool. From the general framework, questions were selected that directly link mechanism, proof, comparison, and migration. From the specialized section “Cryptography, Cryptanalysis, and Security,” questions were selected about a specific problem, quantum algorithm, resources, threat model, the distinction between QKD and post-quantum cryptography, and which statements are future risk assessments and which are current experiments.
| Questionnaire block | Selected numbers | Why are they needed in this article? |
|---|---|---|
| Statement of the problem and intrigue | 1, 3, 4, 6 | Define the object (stealth address protocol), the hypothesis and refutation criterion, and the result that would change the experts’ views. |
| Physical mechanism and explanation | 7, 10, 11 | Explain what exactly the BaseSAP cryptographic mechanism does and where the analogy ends. |
| History and scientific debate | 13, 18 | Show the line ISAP → DKSAP → BaseSAP and the connection of the new work with the previous ones. |
| Algorithms and model | 25, 28, 30 | Separate the quantum and classical parts, estimate the depth of the circuit, the number of runs and the answer extraction. |
| Errors and reliability | 31, 33, 35 | Understand how the error model and protection cost change resource estimates. |
| Quantum advantage and comparison | 37, 40, 41, 42 | Compare only comparable things: accuracy, resources, usefulness, output stability. |
| Experiment and reproducibility | 43, 44, 46, 48 | Separate proof, simulation and experiment; check what can be reproduced. |
| Cryptography and security | 49, 50, 51, 52, 53, 54, 56 | Formulate the quantum problem, the attacker model, the QKD/PQC distinction, and the boundary between risk assessment and confirmed experiment. |
| Practical value | 63, 65, 66 | Assess who needs the result, what risks and what obstacles separate the prototype from implementation. |
| Future and Synthesis | 69, 70, 71, 72, 74 | Formulate open questions, next experiments, and conditions under which the findings will hold. |
We don’t answer all 75 questions, as that would be a mock study. Instead, we’ve selected 12–18 general and 7 specific questions, which form the following sequence: problem → mechanism → evidence → comparison → migration → new question.
3. What is BaseSAP: A Deep Dive
BaseSAP is a stealth address protocol for programmable blockchains, primarily Ethereum. Its key idea is to avoid changing the underlying blockchain protocol, but to instead implement the necessary logic at the application layer in smart contracts. The protocol consists of two central components: Announcer and Registry . Announcer publishes announcements with an ephemeral public key, while Registry stores users’ stealth meta-addresses.
3.1. Announcer: a single point for publishing announcements
Announcer is a singleton contract that emits an event Announcement. The event contains the following: schemeId, stealthAddress, caller, ephemeralPubKey and metadata. The Secp256k1 scheme receives an ID of 1; subsequent schemes receive an incremented ID. This is crucial for our topic: Announcer is not tied to a specific cryptography. It can publish ephemeral keys of different sizes and types, as long as they fit within bytes.
Metadata allows the recipient to understand what exactly has arrived: for ERC-20, this could be the method ID, contract address, and amount; for ERC-721/1155, the token ID; for regular ETH, an empty field. This reduces the need for additional RPC requests.
3.2. Registry: Meta Address and Two Key Pairs
BaseSAP uses the dual-key scheme DKSAP: the receiver has a scanning pair (r_SC, R_SC) and a spending pair (r_SP, R_SP). The meta address has the following format:
st:<chainId>:0x<PK_comp_SP><PK_comp_SC>
For Secp256k1, public keys are compressed to 33 bytes: the x-coordinate and the 0x2 or 0x3 prefix are stored. The registry stores meta addresses in dynamic bytes-slots, allowing for the addition of schemes with larger keys. Registration is possible both by the user and on their behalf via signature. This is important for post-quantum migration: new schemes are not required to fit within 33 bytes.
3.3 DKSAP Cryptographic Pipeline
The sender generates an ephemeral pair (p, P), computes the shared secret k = p × R_SC, hashes it k_h = h(k), multiplies it by the generator K_h = k_h × G , and adds it to the spender’s public key:
R_st = K_h + R_SP = h(p × R_SC) × G + R_SP
The recipient can recover the address in two ways: using a scanning key and a public ephemeral key, or using a scanning key and spending private keys. This is the basis of non-interactive privacy: the sender doesn’t need direct contact with the recipient, and an outside observer can’t see the connection R_SP without R_st knowing the shared secret.
3.4. View tags: parsing acceleration and its cost
Each potential recipient must verify the announcements, which is expensive. BaseSAP proposes a view tag: the sender publishes the first n bytes of the shared secret hash. The receiver first compares the view tag and, only if there is a match, performs a full computation of the stealth address. The paper uses one byte, meaning that a full computation is needed in approximately 1/256 cases. According to the PDF, for 80,000 announcements, parsing time decreases from 37.56 seconds to 4.89 seconds—a speedup of approximately 7.6 times, a time reduction of approximately 86.84%. This is an important engineering proof: the protocol can be made practical, but the view tag reveals one byte of the shared secret hash, which must be accounted for in the privacy model.
3.5. Gas Economics
Calling announcer for an ERC-20 transfer costs approximately 35,492 gas units; for ETH with empty metadata, it costs approximately 34,057. Compressing the ephemeral public key to 33 bytes reduces the cost to 35,064 and 33,629 gas units, respectively. At 10 gwei and ETH = $2,000, this amounts to approximately $0.68 per ETH transfer; with L2 rollups, the cost becomes negligible. For post-quantum schemes with larger keys, these figures will need to be recalculated—and this is one of the questions we are investigating.
3.6 DoS and privacy
BaseSAP directly discusses the DoS risk: an attacker can flood the network with false announcements, forcing recipients to perform unnecessary elliptical operations. Two approaches are proposed: tolling and staking. The authors favor staking: parsing providers can prioritize announcements by stake size and number of announcements, using factors PF1 and PF2. This doesn’t eliminate spam completely, but it makes Sybil attacks more expensive and allows providers to manage the queue.
Privacy isn’t absolute. The PDF specifically notes: mixing funds with doxed addresses, the need to pay gas from a stealth address, the detectability of announcements, and the ability to analyze. A stealth address hides the recipient, but doesn’t hide the flow of funds; it isn’t a mixer and doesn’t provide the same level of anonymity as ZK-SNARK pools.
4. Quantum threat: what exactly is breaking down?
The basic BaseSAP scheme uses Secp256k1 and ECDH. The security of this scheme relies on the difficulty of the discrete logarithm problem on an elliptic curve. Shor’s algorithm, if a sufficiently large and reliable quantum computer becomes available, will be able to solve this problem in polynomial time. For stealth addresses, this poses not one, but several threats.
4.1 Privacy Threat: Scan Key Recovery
In BaseSAP, the meta-address contains R_SC and R_SP , the public keys. If a quantum adversary recovers , they can calculate r_SCfor each announcement and then verify that matches the address in the announcement. This allows all stealth addresses of a single recipient to be linked, even if they appear unrelated today. In other words, a quantum adversary breaks not only the signature but also the unlinkability model itself.Pk = r_SC × Pk_h = h(k)R_st = k_h × G + R_SP
4.2. Threat to Ownership: Recovering the Spending Key
If recovered r_SP, an adversary can derive the stealth address’s private key r_st = k_h + r_SP and sign the transaction. This not only compromises privacy but also steals funds. In the BaseSAP model, the scanning key can be delegated to the parsing provider, but the spending key must remain in cold storage. A quantum adversary recovering r_SP from a public meta address obtains the key, which cannot be delegated.
4.3 Threat to ECDSA and signatures
Even if the stealth address didn’t reveal the meta address, the spending transaction uses a digital signature. ECDSA on Secp256k1 is also vulnerable to Shor’s algorithm. Therefore, post-quantum migration must cover not only ECDH for generating the stealth address but also the signature scheme for the spending transaction. This is an important clarification: replacing only the “stealth formula” is not sufficient.
4.4 The boundary between risk assessment and experimentation
Today, there is no publicly demonstrated cryptographically relevant quantum computer capable of breaking Secp256k1. Therefore, we are talking about assessing future risk, not a confirmed attack. But the engineering challenge is already being addressed: if the protocol is positioned as a privacy infrastructure for years to come, its architecture must allow for migration before an attack becomes practical. The question is not “will it be hacked tomorrow,” but “what exactly needs to be changed to ensure the migration is verifiable and does not destroy privacy.”
The key difference is that quantum key distribution (QKD) and post-quantum cryptography (PQC) solve different problems. QKD requires a dedicated channel and doesn’t protect public keys on the blockchain; PQC changes the mathematics of keys and signatures. For BaseSAP, it’s the PQC migration that’s relevant: new stealth address and signature schemes, not channel replacement.
5. PDF evidence and testable hypotheses
We formulate four hypotheses. They don’t claim that BaseSAP is already post-quantum; they test which of its properties are useful for migration and which are insufficient.
H1. Modularity is sufficient for the interface
The Announcer and Registry will be able to adopt the post-quantum scheme without changing the contract core, as long as the new scheme uses new schemeId and variable-sized keys.
H2. Cost remains controlled
The increase in gas and parsing time when switching to larger keywords will be predictable and limited, and view tags will retain their practical effectiveness.
H3. DoS protection is scalable
Staking and announcement prioritization will remain applicable, but the stake threshold will have to be recalculated to accommodate more expensive parsing.
H4. Privacy requires a new analysis
A post-quantum scheme will not automatically inherit the privacy properties of DKSAP; a separate leakage model, including view tags and metadata, will be required.
| Proof from PDF | What does it confirm? | What it doesn’t confirm |
|---|---|---|
Announcer accepts schemeId and bytes ephemeralPubKey; the Secp256k1 scheme has ID 1. | The interface allows for different schemes and different key sizes. | Does not prove that a particular post-quantum scheme has already been implemented and is safe. |
Registry uses dynamic bytesslots and mapping by scheme. | Meta addresses of larger-key schemes do not have to fit into 33 bytes. | Does not cancel the increase in gas and the need to validate new keys. |
Meta address: st:<chainId>:0x<PK_comp_SP><PK_comp_SC>. | The format is extensible and separates schemes by chainId. | Large keys will require a new format or version. |
| View tags: 1 byte, acceleration ~7.6×, 80,000 announcements: 37.56 → 4.89 s. | Parsing can be made practical. | The view tag reveals 1 byte of the hash; this affects the privacy model. |
| Gas: 35,492 for ERC-20, 34,057 for ETH; key compression reduces consumption. | The economy of the basic scheme has been measured. | For post-quantum keys the numbers will be different; a new measurement is needed. |
DoS: toll vs staking; proposed by PF1, PF2, MIN_STAKE_VALUE, MIN_UNSTAKE_DELAY. | There is a prioritization mechanism and protection against Sybil spam. | The stake threshold has not been tested at post-quantum announcement sizes. |
| Privacy: commingled funds, gas funding, detectability. | The authors are honest in indicating the boundaries of stealth addresses. | There is no quantum leakage model; it needs to be built separately. |
Interim conclusion. The PDF provides strong evidence for H1: the architectural interface is indeed extensible. However, it doesn’t provide a definitive proof for H2–H4: the cost, DoS, and privacy of the post-quantum layer require separate experiments. This is the gap that turns the review into a research program.
6. Linking Work: From ISAP/DKSAP to the Post-Quantum Layer
BaseSAP didn’t appear out of nowhere. The PDF outlines a development path that’s useful to read as a series of attempts to address specific limitations.
| Work / line | Contribution | Limitation | How does this relate to BaseSAP and the quantum question? |
|---|---|---|---|
| CryptoNote / van Saberhagen, 2013 | Described stealth addresses and the DKSAP approach to transaction privacy. | Integration into a specific blockchain; limited flexibility. | The underlying cryptography inherits the ECDLP vulnerability. |
| Todd, 2014, ISAP | Non-interactive stealth address generation. | The recipient uses the primary private key in parsing; it is inconvenient to delegate. | DKSAP in BaseSAP separates scanning/spending keys. |
| Courtois—Mercer, 2017 | Multiple spending keys, resistance to compromise and “bad random attack”. | Complicates key management. | Shows that stealth address security is not only a formula, but also key management. |
| Fan, 2018 | Speeding up DKSAP by reusing DH secret with counter. | Trade-off between speed and threat model. | BaseSAP addresses practical speed through view tags. |
| Fan et al., 2019 | Reducing the number of keys from two to one using bilinear mapping. | Another cryptographic base; not necessarily post-quantum. | Shows that BaseSAP modularity can accommodate different mathematical schemes. |
| Liu et al., 2019 | Lattice-based linkable ring signature + stealth addresses. | Complexity and size; practical integration not shown. | Direct candidate for post-quantum scheme for schemeId 2. |
| Feng et al., 2020, PDKAP | Avoids temporary key leakage. | Requires careful verification of the threat model. | Reminder: post-quantum circuitry must also be leak-tested. |
| BaseSAP, 2023 | Modular protocol, Announcer + Registry, view tags, gas analysis and DoS. | The base design is Secp256k1; the post-quantum layer is not implemented. | Provides an architectural framework, but not a ready-made PQC replacement. |
The resulting connection is as follows: the earlier works address the problem of non-interactivity and efficiency ; BaseSAP addresses the problem of interoperability and application deployment ; the post-quantum line (lattice-based approaches) addresses the problem of mathematical security . None of these works, taken separately, provides a complete solution. It is their comparison that raises a new question: how can we combine the modularity of BaseSAP with the post-quantum design without losing privacy or increasing costs?
7. Experimental plan
To ensure this article is more than just a review, we offer a reproducible plan. It tests H1–H4 and can be run on a local testnet or Sepolia. Historical Goerli/Sepolia results from the PDF are useful as a starting point, but for a new experiment, it’s best to record the current testnet and tool versions.
7.1 Experimental design
- Scheme 2. Implement a stealth address interface based on a lattice-based primitive or a hybrid scheme. Do not change the Announcer and Registry; use the new
schemeId = 2. - Meta address format. Expand
st:the format with a version or length to store large public keys. Ensure that the Registry accepts dynamic keysbyteswithout changing the logic. - Announcement. Measure gas for
announcefiles ofephemeralPubKey33, 64, 128, 256, 512, and 1024 bytes. Separately – with and without metadata. - Parsing. Compare legacy parsing and view tags for 5,000/10,000/20,000/40,000/80,000 announcements. Record CPU, libraries, Node.js and crypto library versions.
- DoS. Simulate spam announcements and test how
PF1/PF2how the queue is modified. Estimate the point at whichMIN_STAKE_VALUEspam becomes economically unprofitable. - Privacy. Formalize what the observer sees: meta address, announcement, view tag, metadata, timings, amounts. Check whether the post-quantum scheme introduces new correlations.
7.2. Criteria for confirmation and refutation
| Hypothesis | Confirmation criterion | Refutation criterion |
|---|---|---|
| H1 | Scheme 2 works without changing Announcer/Registry; only the parameters and the external library change. | It is necessary to change the contract core or event format in an incompatible way. |
| H2 | Gas and parsing time growth are predictable and approximated linearly/quasilinearly; view tags maintain acceleration. | The cost is growing uncontrollably; view tags don’t provide any benefit for large keywords. |
| H3 | Staking reduces the proportion of spam in the queue at a reasonable threshold; false positives are acceptable. | The stake threshold makes legitimate announcements unavailable, or spam still dominates. |
| H4 | The leak model shows which fields need to be hidden/changed; there are verifiable measures. | The post-quantum scheme adds an irreducible correlation, which reduces privacy to zero. |
7.3. What is considered a new result
The new result isn’t “BaseSAP is hacked.” The new result is a map of modularity sufficiency and insufficiency : which parts of BaseSAP are truly ready for PQC migration, which require new contracts, which metrics need to be recalculated, and what minimal experiment separates a working system from a mere promise. This is an honest and useful scientific statement.
8. Discussion: privacy, DoS, standards
8.1 Privacy is not just about unlinkability
BaseSAP provides recipient unlinkability, but not anonymity for the flow of funds. A user could accidentally mix stealth funds with a doxed address, pay for gas from a public address, or disclose metadata. Post-quantum migration adds a new layer: even if the new scheme is mathematically secure, its public parameters and key sizes can create new correlations. Therefore, a privacy model must include not only “who the recipient is,” but also “what fields, timings, and amounts link interactions.”
8.2. DoS is becoming more expensive
Post-quantum keys are typically larger, which increases the cost of announcement and parsing. The staking proposed in BaseSAP remains reasonable, but its parameters need to be derived from new measurements. If parsing costs increase several-fold, the old one MIN_STAKE_VALUE may become too low; if too high, legitimate users will suffer. This is a classic tradeoff between security and availability, which needs to be measured, not guessed.
8.3. Standards and Migration
BaseSAP is proposed as ERC-5564; this is important because the standard defines an interface for wallets and services. In parallel, NIST approved FIPS 203, 204, and 205 (ML-KEM, ML-DSA, SLH-DSA), and NCCoE describes practical migration. However, PQC standards alone do not solve the stealth address problem: a scheme that preserves the properties of unlinkability and is compatible with the announcement model is needed. BaseSAP provides a place for such a scheme, but does not provide one ready-made.
8.4 Why is this interesting to the reader?
This isn’t an abstract debate about a distant quantum computer. It’s a question of architecture: if you implement the wrong interface today, tomorrow’s migration will require breaking compatibility. If you implement the right one, there’s room for experimentation. BaseSAP is interesting precisely because it allows you to pose a testable question: “What happens to privacy and cost if you add a post-quantum design without changing the core?”
9. Limitations of the study
- We analyze the PDF and its cited works, not perform new cryptanalysis of Secp256k1 or post-quantum circuits.
- Quantum resource estimates remain dependent on future technologies; we do not state a precise date for the emergence of the threat.
- The experimental design is not implemented in this paper; this is a validation program, not a confirmed result.
- The BaseSAP prototype in PDF is deployed on test networks; actual mainnet load may vary.
- The privacy model is simplified: we do not take into account all the heuristics of address clustering and user behavior.
- Post-quantum designs have different trade-offs; choosing a specific design requires a separate audit.
10. Conclusion
BaseSAP isn’t a “post-quantum protocol,” but it’s not a dead end either. It’s a modular architecture that does the right thing: separating announcement publication and meta-address storage from the specific cryptographic scheme. PDF provides concrete proof of extensibility: schemeIddynamic bytesformat st:, view tags, gas analysis, and DoS. But these same proofs reveal a limitation: the base scheme on Secp256k1 inherits quantum vulnerability, and the post-quantum layer requires new dimensions of cost, privacy, and spam resistance.
The answer to the main question: BaseSAP modularity is necessary, but not sufficient, for post-quantum stealth addresses. It reduces the cost of migration at the interface level, but it doesn’t replace cryptographic auditing, leakage modeling, and economic experiments. The next verifiable step is to implement Scheme 2 with a post-quantum primitive, measure gas and parsing, formalize leaks, and test staking with new announcement sizes. If this step is successful, it will be not a slogan but an engineering roadmap.
A new question arising from the study: What minimum set of metrics should accompany a post-quantum stealth address scheme so that it can be fairly compared to BaseSAP in terms of privacy, cost, and DoS resistance—without replacing one unverified guarantee with another?
11. Sources
- A. Wahrstätter, M. Solomon, B. DiFrancesco, V. Buterin, D. Svetinovic. BaseSAP: Modular Stealth Address Protocol for Programmable Blockchains . arXiv:2306.14272v1. URL: https://arxiv.org/abs/2306.14272
- ERC-5564: Stealth Addresses. URL: https://eips.ethereum.org/EIPS/eip-5564
- N. van Saberhagen. CryptoNote v2.0 , 2013. URL: archived copy
- P. Todd. Bitcoin Development: Stealth Addresses , 2014. URL: archived copy
- The Monero Project. URL: https://www.getmonero.org/
- NIST. Post-Quantum Cryptography: FIPS 203, 204, 205 approved , 13 August 2024. URL: https://csrc.nist.gov/news/2024/postquantum-cryptography-fips-approved
- NIST NCCoE. Migration to Post-Quantum Cryptography . URL: https://www.nccoe.nist.gov/applied-cryptography/migration-to-pqc
- National Quantum Initiative. URL: https://www.quantum.gov/national-quantum-initiative/
- J. Fan et al. A New Stealth Address Scheme for Blockchain , ACM TURC 2019.
- Z. Liu et al. A Lattice-Based Linkable Ring Signature Supporting Stealth Addresses , ESORICS 2019.
- C. Feng et al. PDKAP: Perfected Double-Key Stealth Address Protocol without Temporary Key Leakage , ICCC Workshops 2020.
- N. T. Courtois, R. Mercer. Stealth Address and Key Management Techniques in Blockchain Systems , ICISSP 2017.
Note: This paper is a research synthesis and does not contain any claim about the existence of a practical quantum attack on Secp256k1.
