Name for the field element type in Cairo 1.0 #2468
Replies: 8 comments 12 replies
-
I would stay away from |
Beta Was this translation helpful? Give feedback.
-
I don't like having |
Beta Was this translation helpful? Give feedback.
-
Why not simply felt: |
Beta Was this translation helpful? Give feedback.
-
i feel as though usual types are characterized by the number of bits they fit, here, we use bits for our usual felt type 251 or 252 for convenience, but the field itself characterizes the felt. since fields have distinct names, they could be used as prefixes or suffixes. e.g.
or simply |
Beta Was this translation helpful? Give feedback.
-
Rust convention is keeping things minimal ( |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
We decided to go with |
Beta Was this translation helpful? Give feedback.
-
#Linux
grep -rl --exclude-dir=.git --include \*.cairo felt . | xargs sed -i 's/felt/felt252/g'
# Mac OS
grep -rl --exclude-dir=.git --include \*.cairo felt . | xargs sed -i "" -e 's/felt/felt252/g' |
Beta Was this translation helpful? Give feedback.
-
Description
Dear Cairo builders, we need your opinion on the name of the field element type in Cairo 1.0. So far, we always have used the term
felt
to design the basic type in Cairo. With Cairo 1.0 and Sierra, we want to give more flexibility and adaptability to the language, hence we anticipate potential future changes to the basic field element type we use (i.e use goldilocks instead of the current prime). We also want to make explicit at a given time what field element is used, and we believe it should be reflected in the name of the type.60 votes ·
Beta Was this translation helpful? Give feedback.
All reactions