Skip to content
New issue

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

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

Already on GitHub? # to your account

Disallow key duplicates #12

Open
darosior opened this issue Apr 23, 2022 · 5 comments
Open

Disallow key duplicates #12

darosior opened this issue Apr 23, 2022 · 5 comments
Labels
good first issue Good for newcomers

Comments

@darosior
Copy link
Owner

No description provided.

@darosior darosior added the good first issue Good for newcomers label Apr 23, 2022
@stickies-v
Copy link
Contributor

Which key duplicates are we talking about? Node properties, cryptographic keys, or something else?

@darosior
Copy link
Owner Author

darosior commented May 1, 2022 via email

@darosior
Copy link
Owner Author

darosior commented May 2, 2022

It should be trivial to check for now that we have the keys property of descriptors:

@property
def keys(self):
"""Get the list of all keys from this descriptor, in order of apparition."""
# To be implemented by derived classes
raise NotImplementedError

@SomberNight
Copy link

See the linked issue for more details

Where is the link?

@darosior
Copy link
Owner Author

🤦 thanks for pointing that out @SomberNight. There was no link, and i don't remember what i was referring to now.

We introduced this change in the C++ implementation in sipa/miniscript#116.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants