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

EC_DATA Missing Type Annotations #410

Merged
merged 3 commits into from
Oct 14, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
111 changes: 58 additions & 53 deletions ecdata/columns.lisp
Original file line number Diff line number Diff line change
@@ -1,60 +1,65 @@
(module ecdata)

(defcolumns
(STAMP :i32)
(ID :i32)
(INDEX :i16)
(LIMB :i128)
TOTAL_SIZE
(PHASE :i16@prove)
INDEX_MAX
(SUCCESS_BIT :binary@prove)
(IS_ECRECOVER_DATA :binary@prove)
(IS_ECRECOVER_RESULT :binary@prove)
(IS_ECADD_DATA :binary@prove)
(IS_ECADD_RESULT :binary@prove)
(IS_ECMUL_DATA :binary@prove)
(IS_ECMUL_RESULT :binary@prove)
(IS_ECPAIRING_DATA :binary@prove)
(IS_ECPAIRING_RESULT :binary@prove)
TOTAL_PAIRINGS
ACC_PAIRINGS
(INTERNAL_CHECKS_PASSED :binary@prove)
(HURDLE :binary@prove)
(BYTE_DELTA :byte@prove)
(CT :i3@prove)
(CT_MAX :i3@prove)
(IS_SMALL_POINT :binary@prove)
(IS_LARGE_POINT :binary@prove)
(NOT_ON_G2 :binary@prove)
(NOT_ON_G2_ACC :binary@prove)
(NOT_ON_G2_ACC_MAX :binary@prove)
(IS_INFINITY :binary@prove)
(OVERALL_TRIVIAL_PAIRING :binary@prove)
(G2_MEMBERSHIP_TEST_REQUIRED :binary@prove)
(STAMP :i32)
(ID :i32)
(INDEX :i16)
(LIMB :i128)
(TOTAL_SIZE :i16)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

type

(PHASE :i16)
(INDEX_MAX :i16)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

type

(SUCCESS_BIT :binary@prove)

(IS_ECRECOVER_DATA :binary@prove)
(IS_ECRECOVER_RESULT :binary@prove)
(IS_ECADD_DATA :binary@prove)
(IS_ECADD_RESULT :binary@prove)
(IS_ECMUL_DATA :binary@prove)
(IS_ECMUL_RESULT :binary@prove)
(IS_ECPAIRING_DATA :binary@prove)
(IS_ECPAIRING_RESULT :binary@prove)

(TOTAL_PAIRINGS :i16)
(ACC_PAIRINGS :i16)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

2 types

(INTERNAL_CHECKS_PASSED :binary@prove)
(HURDLE :binary@prove)
(BYTE_DELTA :byte@prove)
(CT :i3)
(CT_MAX :i3)
(IS_SMALL_POINT :binary@prove)
(IS_LARGE_POINT :binary@prove)
(NOT_ON_G2 :binary@prove)
(NOT_ON_G2_ACC :binary@prove)
(NOT_ON_G2_ACC_MAX :binary@prove)
(IS_INFINITY :binary@prove)
(OVERALL_TRIVIAL_PAIRING :binary@prove)
(G2_MEMBERSHIP_TEST_REQUIRED :binary@prove)
(ACCEPTABLE_PAIR_OF_POINTS_FOR_PAIRING_CIRCUIT :binary@prove)
(CIRCUIT_SELECTOR_ECRECOVER :binary@prove)
(CIRCUIT_SELECTOR_ECADD :binary@prove)
(CIRCUIT_SELECTOR_ECMUL :binary@prove)
(CIRCUIT_SELECTOR_ECPAIRING :binary@prove)
(CIRCUIT_SELECTOR_G2_MEMBERSHIP :binary@prove)
(WCP_FLAG :binary@prove)
(WCP_ARG1_HI :i128)
(WCP_ARG1_LO :i128)
(WCP_ARG2_HI :i128)
(WCP_ARG2_LO :i128)
(WCP_RES :binary)
(WCP_INST :byte :display :opcode)
(EXT_FLAG :binary@prove)
(EXT_ARG1_HI :i128)
(EXT_ARG1_LO :i128)
(EXT_ARG2_HI :i128)
(EXT_ARG2_LO :i128)
(EXT_ARG3_HI :i128)
(EXT_ARG3_LO :i128)
(EXT_RES_LO :i128)
(EXT_RES_HI :i128)
(EXT_INST :byte :display :opcode))

(CIRCUIT_SELECTOR_ECRECOVER :binary@prove)
(CIRCUIT_SELECTOR_ECADD :binary@prove)
(CIRCUIT_SELECTOR_ECMUL :binary@prove)
(CIRCUIT_SELECTOR_ECPAIRING :binary@prove)
(CIRCUIT_SELECTOR_G2_MEMBERSHIP :binary@prove)

(WCP_FLAG :binary@prove)
(WCP_ARG1_HI :i128)
(WCP_ARG1_LO :i128)
(WCP_ARG2_HI :i128)
(WCP_ARG2_LO :i128)
(WCP_RES :binary)
(WCP_INST :byte :display :opcode)

(EXT_FLAG :binary@prove)
(EXT_ARG1_HI :i128)
(EXT_ARG1_LO :i128)
(EXT_ARG2_HI :i128)
(EXT_ARG2_LO :i128)
(EXT_ARG3_HI :i128)
(EXT_ARG3_LO :i128)
(EXT_RES_LO :i128)
(EXT_RES_HI :i128)
(EXT_INST :byte :display :opcode))

;; aliases
(defalias
Expand Down
Loading