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 exporter #14

Closed
wants to merge 1 commit into from
Closed

Plutus exporter #14

wants to merge 1 commit into from

Conversation

gnumonik
Copy link
Collaborator

@gnumonik gnumonik commented Apr 1, 2023

Addresses #12

Everything is implemented, but needs testing

@gnumonik gnumonik requested a review from zmrocze April 1, 2023 03:33
peRole :: !ScriptRole,
peVersion :: !ScriptVersion,
peDescription :: !Text,
peScript :: !(Some CompiledCode)
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we omit GADTs in some way?

instance HasScriptHash TypedScriptEnvelope where
scriptHashOf TypedScriptEnvelope{..} = scriptHash (Script tsScript)

instance HasScriptHash PlutusEnvelope where
Copy link
Contributor

Choose a reason for hiding this comment

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

We really shouldn't hardcode both the hashing algorithm and the byte prefixes. Isn't there some instance calculating e2e hash? Only in cardano-api?

@zmrocze
Copy link
Contributor

zmrocze commented May 5, 2023

This is an attempt at making a script exporter that would work with both PlutusTx and Plutarch, but avoiding the dependency on cardano-api (which is strangely troublesome to add).

The attempt is successful in that, but introduces a lot of hardcoded hashing/encoding details, that really should never be a part of scaffold.

So no plan to merge it in its current form

@zmrocze zmrocze closed this May 5, 2023
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