Repository navigation
Name for the field element type in Cairo 1.0 #2468
Replies: 8 comments 12 replies
|
I would stay away from |
|
I don't like having |
|
Why not simply felt: |
|
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 |
|
Rust convention is keeping things minimal ( |
|
|
|
We decided to go with |
#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' |
Uh oh!
There was an error while loading. Please reload this page.
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
feltto 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 ·
All reactions