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

RIPSHA module Corset implementation #114

Merged
merged 6 commits into from
Feb 27, 2024

Conversation

OlivierBBB
Copy link
Collaborator

No description provided.

Makefile Outdated
@@ -19,10 +19,10 @@ BIN := bin
CONSTANTS := constants/constants.lisp

EC_DATA := ec_data/columns.lisp \
Copy link
Collaborator

Choose a reason for hiding this comment

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

just EC_DATA := ec_data and put the lookups in a lookups folder, as for other modules.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done. The new folder structure is

ec_data/
├── columns.lisp
├── constraints.lisp
└── lookups
    ├── ecdata_into_ext.lisp
    └── ecdata_into_wcp.lisp

Makefile Outdated
ec_data/constraints.lisp \
ec_data/ecdata_into_ext.lisp \
ec_data/ecdata_into_wcp.lisp \
ec_data/hub_into_ecdata.lisp \
Copy link
Collaborator

Choose a reason for hiding this comment

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

isn't the lookup from the hub supposed to be in the hub folder ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No, that's old stuff from almost a year ago. I deleted it.

Makefile Outdated
@@ -43,28 +43,33 @@ MXP := mxp/columns.lisp \

PUB_DATA := $(shell find pub/ -iname '*.lisp')

RIPSHA := ripsha/columns.lisp \
ripsha/constraints.lisp

RLP_ADDR := rlpAddr

RLP_TXN := rlp_txn

RLP_TXRCPT := rlp_txrcpt

ROM := rom/columns.lisp \
Copy link
Collaborator

Choose a reason for hiding this comment

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

same

Makefile Outdated
@@ -43,28 +43,33 @@ MXP := mxp/columns.lisp \

PUB_DATA := $(shell find pub/ -iname '*.lisp')

RIPSHA := ripsha/columns.lisp \
Copy link
Collaborator

Choose a reason for hiding this comment

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

same


SHIFT := shf

STACK := hub/columns.lisp \
hub/constraints.lisp
hub/constraints.lisp

STP := stp/columns.lisp stp/constraints.lisp \
Copy link
Collaborator

Choose a reason for hiding this comment

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

same

Copy link
Collaborator Author

@OlivierBBB OlivierBBB Feb 27, 2024

Choose a reason for hiding this comment

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

hub will soon be deleted in favour of hub_v2 so I'm not touching that one.

Makefile Outdated
rom/constraints.lisp \
rom/rom_into_instructionDecoder.lisp
rom/constraints.lisp \
rom/rom_into_instructionDecoder.lisp

ROM_LEX := romLex/columns.lisp romLex/constraints.lisp \
Copy link
Collaborator

Choose a reason for hiding this comment

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

same

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

@@ -177,13 +177,19 @@
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; BLAKE MODEXP MODULE ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
MODEXP_PHASE_BASE 1
Copy link
Collaborator

Choose a reason for hiding this comment

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

I personnaly prefer to have the name of the main module at the begining of the name of the constant, as it is shared with all other module, much easier to read

Copy link
Collaborator

Choose a reason for hiding this comment

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

and will be consistent with the naming of all other module's constants

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It's not a module name, it's a PHASE number. There are for instance PHASE numbers and INSTRUCTIONS e.g.

[[EXP_INST_expLog]]
[[MMU_INST_mload]]
[[OOB_INST_modexp_lead_log]]
[[PHASE_modexp_result]]

etc ...

@OlivierBBB OlivierBBB merged commit 3b536df into master Feb 27, 2024
2 checks passed
@OlivierBBB OlivierBBB deleted the feat/issue-113/implement-ripsha-columns branch February 27, 2024 13:48
OlivierBBB added a commit that referenced this pull request Feb 27, 2024
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