forked from smlxl/evm.codes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
precompiled.json
152 lines (152 loc) · 3.4 KB
/
precompiled.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
{
"0x01": {
"name": "ecRecover",
"input": "hash | v | r | s",
"output": "publicAddress",
"description": "Elliptic curve digital signature algorithm (ECDSA) public key recovery function"
},
"0x02": {
"name": "SHA2-256",
"input": "data",
"output": "hash",
"description": "Hash function",
"dynamicFee": {
"homestead": {
"inputs": {
"size": {
"type": "number",
"label": "Byte size of data"
}
}
}
}
},
"0x03": {
"name": "RIPEMD-160",
"input": "data",
"output": "hash",
"description": "Hash function",
"dynamicFee": {
"homestead": {
"inputs": {
"size": {
"type": "number",
"label": "Byte size of data"
}
}
}
}
},
"0x04": {
"name": "identity",
"input": "data",
"output": "data",
"description": "Returns the input",
"dynamicFee": {
"homestead": {
"inputs": {
"size": {
"type": "number",
"label": "Byte size of data"
}
}
}
}
},
"0x05": {
"name": "modexp",
"input": "Bsize | Esize | Msize | B | E | M",
"output": "value",
"description": "Arbitrary-precision exponentiation under modulo",
"dynamicFee": {
"byzantium": {
"inputs": {
"Bsize": {
"type": "number",
"label": "Input: Bsize"
},
"Msize": {
"type": "number",
"label": "Input: Msize"
},
"exponent": {
"type": "number",
"label": "Input: E"
}
}
}
}
},
"0x06": {
"name": "ecAdd",
"input": "x1 | y1 | x2 | y2",
"output": "x | y",
"description": "Point addition (ADD) on the elliptic curve 'alt_bn128'",
"dynamicFee": {
"byzantium": {
"inputs": {
"invalid": {
"type": "boolean",
"label": "Is the input invalid?"
},
"remaining": {
"type": "number",
"label": "State: remaining gas in the current context"
}
}
}
}
},
"0x07": {
"name": "ecMul",
"input": "x1 | y1 | s",
"output": "x | y",
"description": "Scalar multiplication (MUL) on the elliptic curve 'alt_bn128'",
"dynamicFee": {
"byzantium": {
"inputs": {
"invalid": {
"type": "boolean",
"label": "Is the input invalid?"
},
"remaining": {
"type": "number",
"label": "State: remaining gas in the current context"
}
}
}
}
},
"0x08": {
"name": "ecPairing",
"input": "x1 | y1 | x2 | y2 | ... | xk | yk",
"output": "success",
"description": "Bilinear function on groups on the elliptic curve 'alt_bn128'",
"dynamicFee": {
"homestead": {
"inputs": {
"size": {
"type": "number",
"label": "Byte size of data"
}
}
}
}
},
"0x09": {
"name": "blake2f",
"input": "rounds | h | m | t | f",
"output": "h",
"description": "Compression function F used in the BLAKE2 cryptographic hashing algorithm",
"dynamicFee": {
"homestead": {
"inputs": {
"rounds": {
"type": "number",
"label": "Input: rounds"
}
}
}
}
}
}