Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

[PRIV] Add privacy CLI commands #584

Merged
merged 6 commits into from
Jan 23, 2019

Conversation

Puneetha17
Copy link
Contributor

@Puneetha17 Puneetha17 commented Jan 16, 2019

PR description

Add functionality to include privacy pre-compiled contract if privacy is enabled through CLI.

The purpose of the PR is to take the privacy CLI commands and appropriately include PrivatePrecompiledContract to protocol spec. Currently the contract is stubbed.

@Puneetha17 Puneetha17 changed the title Register privacy [PRIV] Add privacy CLI commands Jan 16, 2019
@Puneetha17 Puneetha17 force-pushed the register-privacy branch 2 times, most recently from 724e125 to ef950b8 Compare January 16, 2019 16:02
import tech.pegasys.pantheon.ethereum.core.PrivacyParameters;
import tech.pegasys.pantheon.ethereum.vm.GasCalculator;

public class PrecompiledContractConfiguration {
Copy link
Contributor

@Errorific Errorific Jan 17, 2019

Choose a reason for hiding this comment

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

Is there any utility to this class beyond holding 2 objects? Could its consumers take the gas calculator and privacy parameters separately without losing functionality?

Copy link
Contributor

@NicolasMassart NicolasMassart left a comment

Choose a reason for hiding this comment

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

As indicated in the comment we are working on an update of the CLI guideline that will be released in the 0.9 version. This will introduce breaking changes and CLI components naming conventions. So to prevent a refactoring of this part of your code, you could already make the listed change (only one) to be sure it will easily fit in the next release. Thanks for your valuable contribution.

@NicolasMassart NicolasMassart added enhancement New feature or request doc next release Doc needed for next release (ie, dev work done) labels Jan 17, 2019
NicolasMassart
NicolasMassart previously approved these changes Jan 18, 2019
@NicolasMassart NicolasMassart self-requested a review January 18, 2019 13:31
@NicolasMassart NicolasMassart dismissed their stale review January 18, 2019 13:32

wanted to only approve CLI option related changes, but it seems that it validates all... so reverting.

Copy link
Contributor

@NicolasMassart NicolasMassart left a comment

Choose a reason for hiding this comment

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

Looks good to me for the CLI option part.

@Puneetha17 Puneetha17 force-pushed the register-privacy branch 4 times, most recently from 64d29d2 to fb706cc Compare January 22, 2019 08:56
antonydenyer added a commit to antonydenyer/pantheon that referenced this pull request Jan 22, 2019
commit fb706cc
Author: Puneetha <puneetha17@gmail.com>
Date:   Fri Jan 18 11:49:57 2019 +0000

    Wire up Precompiled contract configuration to Protocol Spec

commit 72ff096
Author: Puneetha <puneetha17@gmail.com>
Date:   Fri Jan 18 11:09:57 2019 +0000

    Add Privacy Cli options
@Puneetha17 Puneetha17 force-pushed the register-privacy branch 2 times, most recently from 5abb5bb to 0627dc1 Compare January 22, 2019 13:20
Copy link
Contributor

@lucassaldanha lucassaldanha left a comment

Choose a reason for hiding this comment

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

LGTM. Some minor comments.

@rojotek rojotek merged commit b49fd59 into PegaSysEng:master Jan 23, 2019
@Puneetha17 Puneetha17 deleted the register-privacy branch January 24, 2019 18:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
doc next release Doc needed for next release (ie, dev work done) enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants