Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
hujw77 committed May 10, 2023
1 parent 9005e32 commit e63e4d4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions EIPS/eip-3026.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,25 +189,25 @@ This precompile performs extensive computations and in case of any errors during
`180` gas

##### G1 multiplication
`63000` gas
`64000` gas

##### G2 addition
`180` gas

##### G2 multiplication
`63000` gas
`64000` gas

##### G1/G2 Multiexponentiation
Discounts table as a vector of pairs `[k, discount]`:

```
[[1, 1243], [2, 725], [3, 556], [4, 469], [5, 419], [6, 383], [7, 359], [8, 340], [9, 326], [10, 314], [11, 305], [12, 297], [13, 291], [14, 286], [15, 281], [16, 276], [17, 272], [18, 271], [19, 266], [20, 264], [21, 261], [22, 259], [23, 259], [24, 257], [25, 254], [26, 252], [27, 251], [28, 249], [29, 248], [30, 247], [31, 246], [32, 216], [33, 227], [34, 223], [35, 220], [36, 217], [37, 215], [38, 214], [39, 211], [40, 209], [41, 206], [42, 204], [43, 203], [44, 201], [45, 200], [46, 197], [47, 195], [48, 195], [49, 192], [50, 192], [51, 189], [52, 188], [53, 187], [54, 186], [55, 185], [56, 184], [57, 183], [58, 182], [59, 180], [60, 179], [61, 179], [62, 178], [63, 177], [64, 176], [65, 175], [66, 175], [67, 174], [68, 173], [69, 173], [70, 171], [71, 171], [72, 170], [73, 169], [74, 168], [75, 168], [76, 167], [77, 167], [78, 166], [79, 166], [80, 166], [81, 165], [82, 165], [83, 164], [84, 164], [85, 163], [86, 163], [87, 162], [88, 162], [89, 162], [90, 161], [91, 161], [92, 160], [93, 159], [94, 159], [95, 158], [96, 158], [97, 158], [98, 158], [99, 158], [100, 157], [101, 156], [102, 156], [103, 156], [104, 156], [105, 156], [106, 155], [107, 155], [108, 155], [109, 154], [110, 154], [111, 153], [112, 153], [113, 153], [114, 152], [115, 152], [116, 152], [117, 152], [118, 152], [119, 151], [120, 151], [121, 151], [122, 151], [123, 150], [124, 150], [125, 150], [126, 150], [127, 150], [128, 150]]
[[1, 1266], [2, 733], [3, 561], [4, 474], [5, 422], [6, 387], [7, 362], [8, 344], [9, 329], [10, 318], [11, 308], [12, 300], [13, 296], [14, 289], [15, 283], [16, 279], [17, 275], [18, 272], [19, 269], [20, 266], [21, 265], [22, 260], [23, 259], [24, 256], [25, 255], [26, 254], [27, 252], [28, 251], [29, 250], [30, 249], [31, 249], [32, 220], [33, 228], [34, 225], [35, 223], [36, 219], [37, 216], [38, 214], [39, 212], [40, 209], [41, 209], [42, 205], [43, 203], [44, 202], [45, 200], [46, 198], [47, 196], [48, 199], [49, 195], [50, 192], [51, 192], [52, 191], [53, 190], [54, 187], [55, 186], [56, 185], [57, 184], [58, 184], [59, 181], [60, 181], [61, 181], [62, 180], [63, 178], [64, 179], [65, 176], [66, 177], [67, 176], [68, 175], [69, 174], [70, 173], [71, 171], [72, 171], [73, 170], [74, 170], [75, 169], [76, 168], [77, 168], [78, 167], [79, 167], [80, 166], [81, 165], [82, 167], [83, 166], [84, 166], [85, 165], [86, 165], [87, 164], [88, 164], [89, 163], [90, 163], [91, 162], [92, 162], [93, 160], [94, 163], [95, 159], [96, 162], [97, 159], [98, 160], [99, 159], [100, 159], [101, 158], [102, 158], [103, 158], [104, 158], [105, 157], [106, 157], [107, 156], [108, 155], [109, 155], [110, 156], [111, 155], [112, 155], [113, 154], [114, 155], [115, 154], [116, 153], [117, 153], [118, 153], [119, 152], [120, 152], [121, 152], [122, 152], [123, 151], [124, 151], [125, 150], [126, 150], [127, 150], [128, 150]]
```

`max_discount = 150`

##### Pairing operation
Base cost of the pairing operation is `120000*k + 280000` where `k` is a number of pairs.
Base cost of the pairing operation is `120000*k + 320000` where `k` is a number of pairs.

## Rationale
Gas costs are based on EIP1962 estimation strategy (but do not fully include yet parsing of ABI, decoding and encoding of the result as a byte array).
Expand Down

0 comments on commit e63e4d4

Please sign in to comment.