Skip to content

Share transaction-related utility methods between floresta-node and floresta-electrum #1108

Description

@moisesPompilio

Describe the enhancement
floresta-node and floresta-electrum have similar behavior when handling transaction data exposed to clients. To avoid duplication and keep consistency between both modules, it would be useful to share common utility methods, similar to what is already done for header.

The proposal is to create extensions for types such as Transaction, TxOut, and TxIn, grouping shared helpers like ASM generation, hexadecimal conversions, and other formatting/serialization routines.

Use case
Both floresta-node and floresta-electrum need to produce similar responses for clients. By sharing these methods, it becomes easier to reuse common logic and keep behavior consistent across both modules.

Additional context
A natural approach would be to follow the same pattern already used for header and extend it to transaction-related structures.

Metadata

Metadata

Labels

ecosystemEnable interoperability, compatibility and practical integration with the broader Bitcoin ecosystemenhancementNew feature or request

Projects

Status
Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions