Skip to content

feat: reflect utxos immutability in types#10

Open
louneskmt wants to merge 1 commit intobitcoinerlab:mainfrom
louneskmt:coinselect-types
Open

feat: reflect utxos immutability in types#10
louneskmt wants to merge 1 commit intobitcoinerlab:mainfrom
louneskmt:coinselect-types

Conversation

@louneskmt
Copy link

As per the documentation, "This library adheres to Immutability principles [...] Returned utxos and targets retain their original references unless they are modified (e.g., removal of utxos or addition of change in targets)". I made the input utxos type generic so the selected utxos that are returned are of the same type. This is very useful when you attach additional properties to utxos to be used for signing for example.

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.

1 participant