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

Pegin desc wildcard #96

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft

Pegin desc wildcard #96

wants to merge 5 commits into from

Conversation

RCasatta
Copy link
Collaborator

On top of #95

draft PR to investigate the derivability of a bunch of addresses from a pegin descriptor.

Use the following assumption

  • federation descriptor is using only bitcoin::PublicKey
  • the address generated has the same kind as the user descriptor

Since the `Pk` generic on `fed_desc` is the same as in `elem_desc` this
binds the kind of user descriptor accepted.
`fed_desc` always come in the form with `PublicKey`, thus by removing
the generic we can support different `elem_desc`.
Allowing to generate a bunch of pegin addresses from a single pegin
descriptor
@apoelstra
Copy link
Member

Merged #95 -- can rebase and undraft this.

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