lea-improvement-proposals

Abstract

This LIP proposes extending the CTE specification to support multiple cryptographic schemes, including Post-Quantum Cryptography (PQC) algorithms like SLH-DSA (also known as SPHINCS+). It utilizes the two previously reserved padding bits within the header bytes of the Public Key List (Tag 00) and Signature List (Tag 01) fields to encode the specific cryptographic scheme being used. For PQC signatures, which are typically very large, this proposal adopts a segregated proof model: only a 32-byte BLAKE3 hash of the PQC signature is stored on-chain within the Signature List field, while the full signature proof is expected to be distributed via a separate mechanism. This allows LEA blockchain transactions to gain PQC resistance while maintaining the core compactness principle of CTE.

Motivation

As quantum computing advances, blockchains need to transition to PQC algorithms to ensure long-term security. However, many PQC signatures are significantly larger than traditional signatures (e.g., Ed25519 used in CTE v1.0), potentially exceeding CTE's strict Maximum Transaction Size limit (1232 bytes). Storing these large signatures directly on-chain would undermine CTE's efficiency and compactness.

This proposal aims to:

  1. Introduce a mechanism to identify different cryptographic schemes (standard ECC and PQC) within the existing CTE structure without consuming new tags.
  2. Enable the use of PQC public keys (specifically SLH-DSA variants) within transactions.
  3. Allow verification of PQC signatures without storing the entire large signature on-chain, by committing only to a secure hash (BLAKE3) of the signature within the transaction data.

This approach maintains small transaction sizes while paving the way for quantum resistance.

Specification

This LIP modifies Sections 4.1 and 4.2 of the CTE v1.0 specification by assigning meaning to the previously reserved bits 1-0 of their respective header bytes.


4.1. Public Key List (Tag 00) - Updated


4.2. Signature List (Tag 01) - Updated


Off-Chain Proof Distribution

The mechanism for distributing and retrieving the full PQC signature proofs corresponding to the on-chain hashes (TT = 01, 10, 11 in Tag 01) is outside the scope of this core encoding specification but is a critical component required for validation. Implementations MUST ensure a reliable and secure system for this purpose.


Rationale

Backwards Compatibility

Security Considerations

This LIP is licensed under the MIT License, in alignment with the main LEA Project License.