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

Plutus Blueprints #244

Open
nielstron opened this issue May 16, 2023 · 3 comments
Open

Plutus Blueprints #244

nielstron opened this issue May 16, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@nielstron
Copy link
Contributor

nielstron commented May 16, 2023

Is your feature request related to a problem? Please describe.
Plutus Blueprints are increasingly used for Cardano Smart Contracts [citation needed]. A part of these blueprints is a schematic description of PlutusData classes in json.

Describe the solution you'd like
Add a function to pycardano that converts plutusdata classes to plutus blueprints.

Describe alternatives you've considered
None

Additional context
https://cips.cardano.org/cips/cip57/#corevocabulary

@cffls cffls added the enhancement New feature or request label May 17, 2023
@nielstron
Copy link
Contributor Author

See #276

@nielstron
Copy link
Contributor Author

It is not entirely clear to me how other libraries "read" Plutus Blueprint Descriptions of PlutusData objects - this could in principle be done but I don't see the added value. This would effectively generate types at runtime and hence not give any improvements regarding type safety. One maybe interesting topic could be "validating" a PlutusData schema against the schema of a certain contract.

@nielstron
Copy link
Contributor Author

Note that we can re-use a lot of the definitions here: OpShin/opshin#279
It also introduces "reading" and dynamically generating PlutusData objects, however still lacks type checks when using "apply_parameter".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants