Skip to content

Commit ff27e26

Browse files
Update ecc extension section in the book to match CurveConfig rewrite
1 parent 1417c5a commit ff27e26

File tree

1 file changed

+5
-7
lines changed
  • book/src/custom-extensions

1 file changed

+5
-7
lines changed

book/src/custom-extensions/ecc.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -109,23 +109,21 @@ For the guest program to build successfully, all used moduli and curves must be
109109

110110
```toml
111111
[app_vm_config.modular]
112-
supported_modulus = ["115792089237316195423570985008687907853269984665640564039457584007908834671663", "115792089237316195423570985008687907852837564279074904382605163141518161494337"]
112+
supported_modulus = ["115792089237316195423570985008687907853269984665640564039457584007908834671663", "115792089237316195423570985008687907852837564279074904382605163141518161494337", "57896044618658097711785492504343953926634992332820282019728792003956564819949"]
113113

114-
[[app_vm_config.ecc.supported_curves]]
114+
[[app_vm_config.ecc.supported_sw_curves]]
115115
modulus = "115792089237316195423570985008687907853269984665640564039457584007908834671663"
116116
scalar = "115792089237316195423570985008687907852837564279074904382605163141518161494337"
117117

118-
[app_vm_config.ecc.supported_curves.coeffs]
119-
type = "SwCurve"
118+
[app_vm_config.ecc.supported_sw_curves.coeffs]
120119
a = "0"
121120
b = "7"
122121

123-
[[app_vm_config.ecc.supported_curves]]
122+
[[app_vm_config.ecc.supported_te_curves]]
124123
modulus = "57896044618658097711785492504343953926634992332820282019728792003956564819949"
125124
scalar = "7237005577332262213973186563042994240857116359379907606001950938285454250989"
126125

127-
[app_vm_config.ecc.supported_curves.coeffs]
128-
type = "TeCurve"
126+
[app_vm_config.ecc.supported_te_curves.coeffs]
129127
a = "57896044618658097711785492504343953926634992332820282019728792003956564819948"
130128
d = "37095705934669439343138083508754565189542113879843219016388785533085940283555"
131129
```

0 commit comments

Comments
 (0)