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

Reduction and signing of Fleet transactions #900

Merged
merged 29 commits into from
Aug 28, 2023
Merged

Conversation

aslesarenko
Copy link
Member

@aslesarenko aslesarenko commented Aug 5, 2023

In this PR more methods exported to JS:

  • implemented SigmaProver.reduce which takes Fleet's UnsignedTransaction
  • implemented SigmaProver.signReduced which can return Fleet's SignedTransaction
  • ReducedTransaction exported to JS and can be serialised and deserialized
  • added more tests
  • some fixes for JS and cleanups

@aslesarenko aslesarenko changed the base branch from secure-random-js to v5.0.11-RC August 8, 2023 20:00
* @param softForkVotesCollected votes for soft-fork collected in previous epochs
* @param blockVersion Protocol version activated on the network
*/
case class BlockchainParameters(
Copy link
Member

Choose a reason for hiding this comment

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

Why not ErgoParameters ? Parameters are not related to a generic blockchain, rather, the Ergo one (I guess it was named ErgoLikeParameters to support Ergo-like blockchains as well)

Copy link
Member Author

Choose a reason for hiding this comment

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

The new name clarifies that it is blockchain parameters (those stored in blockchain), not some other parameters.
The package org.ergoplatform.sdk already suggests it is related to Ergo blockchain, so no need to add Ergo once again.

ErgoLike prefix is pretty useless (ErgoLikeContext doesn't tell anything about what kind of context it is, InterpreterContext is much better).

I was thinking to rename all ErgoLike names at some point as part of further refactoring and code simplification

Copy link
Member

Choose a reason for hiding this comment

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

So for other Ergo-like blockchains (e.g. sidechains) you will have different packages?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, probably. Everything in org.ergoplatform is part of reference implementation.
It will depend on how other projects will be architected, as a layer on top of core ergo packages, or as a repo fork with the necessary changes.

@aslesarenko aslesarenko merged commit 98c6f06 into v5.0.11-RC Aug 28, 2023
4 checks passed
@aslesarenko aslesarenko deleted the tx-signing-js branch September 5, 2023 08:49
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