Skip to content

Conversation

@lmorett1
Copy link

@lmorett1 lmorett1 commented Jan 7, 2026

Adds PartialEq, Eq, and Hash derives to the Assets struct, enabling it to be used as a hashmap key and compared for equality.

All fields in Assets already implement these traits (BTreeSet, Option, etc.), and similar structs in the same module like CanSign and TaprootCanSign already derive them. This makes the API more consistent and useful for testing and practical applications where comparing or storing Assets instances is needed.

@apoelstra
Copy link
Member

Yeah, for sure. This is just a big container type.

Copy link
Member

@apoelstra apoelstra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 2d8e99d; successfully ran local tests

Copy link
Member

@apoelstra apoelstra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 2d8e99d; successfully ran local tests
(Excuse the noise -- I am testing a new local CI setup. Hopefully everything is
running smoothly again by Monday.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants