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

Fix sampling #105

Merged
Merged

Conversation

uncomputable
Copy link
Collaborator

Fixes #104

A bunch of small fixes combined in a single commit:
1) Variable idenfiers live inside a different namespace than type names,
   so we don't need to check for clashes.
2) Witness names should begin with a letter. This ensures that
   witness::NAME is valid Rust.
3) Jet names include the trailing `::`, so they cannot clash with
   function names.
4) Type aliases must not redefine a builtin type such as `bool`.
Introduce a new wrapper type, AliasName, for strings that are valid
alias names. This makes sure that alias names are correctly sampled
by the Arbitrary trait.

Fixes BlockstreamResearch#102
Copy link
Contributor

@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 e7d7cac; successfully ran local tests

@apoelstra apoelstra merged commit 884b00e into BlockstreamResearch:master Dec 12, 2024
12 checks passed
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.

Sampling reserved names
2 participants