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

Finished public and core API #1

Open
wants to merge 43 commits into
base: master
Choose a base branch
from
Open

Finished public and core API #1

wants to merge 43 commits into from

Conversation

BaldyAsh
Copy link
Contributor

No description provided.

@BaldyAsh BaldyAsh requested a review from gluk64 July 31, 2019 11:46
contracts/CommonTypes.sol Outdated Show resolved Hide resolved
contracts/EIP1962_PublicAPI.sol Outdated Show resolved Hide resolved
contracts/EIP1962_PublicAPI.sol Outdated Show resolved Hide resolved
contracts/EIP1962_CoreAPI.sol Outdated Show resolved Hide resolved
contracts/EIP1962_CoreAPI.sol Outdated Show resolved Hide resolved
@BaldyAsh BaldyAsh requested a review from gluk64 August 1, 2019 07:25
contract EllipticCurve {

// Current curve parameters
CommonTypes.CurveParams private curveParams;
Copy link

Choose a reason for hiding this comment

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

там bytes, я честно говоря даже не знаю как они сохраняются. надо померять газ.

// Compies the common prefix for pairing operation based on curve parameters.
// Returns the newly created bytes memory.
function getPairingOpDataInBytes(CommonTypes.CurveParams memory curveParams) private pure returns (bytes memory) {
bytes memory opData = new bytes(6 + 6 * curveParams.fieldLength + curveParams.groupOrderLength + curveParams.xLength);
Copy link

Choose a reason for hiding this comment

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

я не понимаю, где оптимизация кода ниже? давай созвонимся

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.

3 participants