lea-improvement-proposals

Abstract

This LIP proposes a fundamental, breaking change to the CTE specification. It renames Public Key List and Signature List to Public Key Vector and Signature Vector, and renames Legacy Index Reference to Vector Index.

Crucially, it replaces the concept of a crypto-specific type code (as defined in LIP-2) with a generic entry size code. The TT bits in the vector headers will now explicitly define the byte size of each element in the vector's data payload. This simplifies the core CTE parsing logic by decoupling it from cryptographic scheme specifics, making the format more flexible and forward-compatible. This proposal renders LIP-2 obsolete.

Motivation

LIP-2 coupled the TT type code directly to a cryptographic algorithm (e.g., TT=00 for Ed25519). While this provided semantic meaning at the parsing layer, it also made the core format rigid. Adding a new algorithm or a variant with the same key size would require a new TT code and a specification update.

This proposal simplifies the parser's responsibility to a purely structural one: read a vector of N items, where each item is X bytes long. The TT code now simply defines 'X'. The semantic interpretation of what those bytes represent (e.g., an Ed25519 key vs. an SLH-DSA key) is moved to the application layer, where it ultimately matters. This makes the base CTE format more generic and extensible. The renaming to "Vector" and "Vector Index" reflects this more generic, structural nature.

Specification

This LIP replaces the specifications for Tag 00 and Tag 01 as defined in LIP-2 and renames the IxData Sub-Type 00.


4.1. Public Key Vector (Tag 00) - Updated


4.2. Signature Vector (Tag 01) - Updated


4.3.1. Vector Index (IxData Sub-Type 00) - Updated


Rationale

Backwards Compatibility

This proposal is a breaking change and is not backwards compatible with implementations based on LIP-2.

Security Considerations

The primary security consideration is that the responsibility for correctly interpreting the cryptographic context of the data is now entirely on the application layer.

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