Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert the CoinsToSpendIndexKey from Vec<u8> to typed struct, similarly to OwnedTransactionIndexKey #2498

Open
rafal-ch opened this issue Dec 13, 2024 · 0 comments

Comments

@rafal-ch
Copy link
Contributor

          It would be nice if this conversion logic is a part of the `CoinsToSpendIndexKey`. Either during decoding from the storage you already can decode it and just use the nice typed object(you can check how it was done via `Manual<OwnedTransactionIndexKey>`). Or you can support something like `foreign_key.try_into_utxo_id()?`.

Originally posted by @xgreenx in #2463 (comment)

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

No branches or pull requests

1 participant