delvingbitcoin

Unspendable keys in descriptors

Unspendable keys in descriptors

Original Postby salvatoshi

Posted on: January 16, 2024 15:02 UTC

The discussion revolves around the integration of wallet policy features in programming standards.

The argument presented suggests that expecting a wallet policy feature is a reasonable assumption and that programming standards should not be optimized for scenarios where such a feature is absent. Concerns are raised regarding other proposals which increase the complexity of code on hardware signers. These signers would be required to interpret "descriptor templates" to ascertain the correct sequence of keys, hence adding more layers to their processing.

Furthermore, it's highlighted that wallet policies might incorporate identical @i placeholders multiple times, particularly with taproot technology. This poses a challenge as it could lead to either redundant concatenation of the same public key or necessitate a parser that is capable of recognizing and skipping already processed placeholders. The implication here is that there needs to be an efficient, stateful approach when dealing with repeated elements within wallet policies to avoid unnecessary complications in parsing and interpreting data.

The conclusions imply the necessity for careful consideration of wallet policy features' impact on the complexity and functionality of hardware signers, and the importance of creating standards that accommodate these features efficiently.