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

expose Scalar, Field and the Point ptr #509

Merged
merged 3 commits into from
Nov 13, 2024

Conversation

perturbing
Copy link
Contributor

@perturbing perturbing commented Nov 7, 2024

Description

This PR exposes the constructors of the types: PointPtr, Point and Scalar. Additionally, it exports the type Fr type and its constructor.

The goal here is so that we can use them in this package.

This change will cause some trouble for the plutus repository (I had to fork it when also depending on cardano-base with these changes).

Checklist

  • Commit sequence broadly makes sense and commits have useful messages
  • New tests are added if needed and existing tests are updated
  • All visible changes are prepended to the latest section of a CHANGELOG.md for the affected packages.
    New section is never added with the code changes. (See RELEASING.md)
  • When applicable, versions are updated in .cabal and CHANGELOG.md files according to the
    versioning process.
  • The version bounds in .cabal files for all affected packages are updated.
    If you change the bounds in a cabal file, that package itself must have a version increase. (See RELEASING.md)
  • Self-reviewed the diff

@perturbing perturbing requested a review from lehins as a code owner November 7, 2024 09:21
Copy link
Collaborator

@lehins lehins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see a problem of exporting unsafe constructors from an internal module. It is important to realize that this is really internal and unsafe, so regular libraries should not depend on it.

It is better to provide a safe interface for theses things if they are needed downstream

@lehins lehins enabled auto-merge (squash) November 13, 2024 19:21
@lehins lehins merged commit 97a3b8b into IntersectMBO:master Nov 13, 2024
23 checks passed
@perturbing perturbing deleted the perturing/expose-bls-internals branch November 14, 2024 11:29
@perturbing perturbing restored the perturing/expose-bls-internals branch November 14, 2024 11:29
@perturbing perturbing deleted the perturing/expose-bls-internals branch November 14, 2024 11:29
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