Skip to content

Commit 655576c

Browse files
authored
Move ristretto to v112 (#25449)
- move ristretto to v112 - update snapshots ## Description Describe the changes or additions included in this PR. ## Test plan How did you test the new or updated feature? --- ## Release notes Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required. For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates. - [ ] Protocol: - [ ] Nodes (Validators and Full nodes): - [ ] gRPC: - [ ] JSON-RPC: - [ ] GraphQL: - [ ] CLI: - [ ] Rust SDK: - [ ] Indexing Framework:
1 parent 68db897 commit 655576c

11 files changed

+1781
-51
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,156 @@
1+
---
2+
source: crates/sui-core/src/authority/execution_time_estimator.rs
3+
expression: snapshot_data
4+
---
5+
protocol_version: 112
6+
consensus_observations:
7+
- - MakeMoveVec
8+
- observations:
9+
- - 0
10+
- ~
11+
- - 4
12+
- secs: 0
13+
nanos: 28000000
14+
- - 5
15+
- secs: 0
16+
nanos: 19000000
17+
- - 9
18+
- secs: 0
19+
nanos: 19000000
20+
stake_weighted_median:
21+
secs: 0
22+
nanos: 19000000
23+
- - MergeCoins
24+
- observations:
25+
- - 6
26+
- secs: 0
27+
nanos: 63000000
28+
- - 9
29+
- secs: 0
30+
nanos: 26000000
31+
- - 2
32+
- secs: 0
33+
nanos: 32000000
34+
- - 7
35+
- secs: 0
36+
nanos: 0
37+
stake_weighted_median:
38+
secs: 0
39+
nanos: 32000000
40+
- - SplitCoins
41+
- observations:
42+
- - 7
43+
- secs: 0
44+
nanos: 21000000
45+
- - 0
46+
- ~
47+
- - 10
48+
- secs: 0
49+
nanos: 72000000
50+
- - 6
51+
- secs: 0
52+
nanos: 40000000
53+
stake_weighted_median:
54+
secs: 0
55+
nanos: 40000000
56+
- - TransferObjects
57+
- observations:
58+
- - 9
59+
- secs: 0
60+
nanos: 70000000
61+
- - 10
62+
- secs: 0
63+
nanos: 52000000
64+
- - 0
65+
- ~
66+
- - 9
67+
- secs: 0
68+
nanos: 91000000
69+
stake_weighted_median:
70+
secs: 0
71+
nanos: 70000000
72+
- - Upgrade
73+
- observations:
74+
- - 2
75+
- secs: 0
76+
nanos: 177000000
77+
- - 0
78+
- ~
79+
- - 6
80+
- secs: 0
81+
nanos: 981000000
82+
- - 4
83+
- secs: 0
84+
nanos: 587000000
85+
stake_weighted_median:
86+
secs: 0
87+
nanos: 587000000
88+
- - MoveEntryPoint:
89+
package: "0x0000000000000000000000000000000000000000000000000000000000000001"
90+
module: coin
91+
function: transfer
92+
type_arguments: []
93+
- observations:
94+
- - 8
95+
- secs: 0
96+
nanos: 337000000
97+
- - 6
98+
- secs: 0
99+
nanos: 162000000
100+
- - 9
101+
- secs: 0
102+
nanos: 268000000
103+
- - 5
104+
- secs: 0
105+
nanos: 262000000
106+
stake_weighted_median:
107+
secs: 0
108+
nanos: 268000000
109+
- - MoveEntryPoint:
110+
package: "0x0000000000000000000000000000000000000000000000000000000000000002"
111+
module: nft
112+
function: mint
113+
type_arguments: []
114+
- observations:
115+
- - 0
116+
- ~
117+
- - 7
118+
- secs: 0
119+
nanos: 70000000
120+
- - 10
121+
- secs: 0
122+
nanos: 224000000
123+
- - 8
124+
- secs: 0
125+
nanos: 499000000
126+
stake_weighted_median:
127+
secs: 0
128+
nanos: 224000000
129+
transaction_estimates:
130+
- - coin_transfer_call
131+
- secs: 0
132+
nanos: 268000000
133+
- - mixed_move_calls
134+
- secs: 0
135+
nanos: 492000000
136+
- - native_commands_with_observations
137+
- secs: 0
138+
nanos: 322000000
139+
- - transfer_objects_3_items
140+
- secs: 0
141+
nanos: 280000000
142+
- - split_coins_4_amounts
143+
- secs: 0
144+
nanos: 200000000
145+
- - merge_coins_3_sources
146+
- secs: 0
147+
nanos: 128000000
148+
- - make_move_vec_3_elements
149+
- secs: 0
150+
nanos: 76000000
151+
- - mixed_commands
152+
- secs: 0
153+
nanos: 291000000
154+
- - upgrade_package
155+
- secs: 0
156+
nanos: 587000000

crates/sui-open-rpc/tests/snapshots/generate_spec__openrpc.snap.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1294,7 +1294,7 @@
12941294
"name": "Result",
12951295
"value": {
12961296
"minSupportedProtocolVersion": "1",
1297-
"maxSupportedProtocolVersion": "111",
1297+
"maxSupportedProtocolVersion": "112",
12981298
"protocolVersion": "6",
12991299
"featureFlags": {
13001300
"abstract_size_in_object_runtime": false,

crates/sui-protocol-config/src/lib.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ use tracing::{info, warn};
2424

2525
/// The minimum and maximum protocol versions supported by this build.
2626
const MIN_PROTOCOL_VERSION: u64 = 1;
27-
const MAX_PROTOCOL_VERSION: u64 = 111;
27+
const MAX_PROTOCOL_VERSION: u64 = 112;
2828

2929
// Record history of protocol version allocations here:
3030
//
@@ -296,7 +296,7 @@ const MAX_PROTOCOL_VERSION: u64 = 111;
296296
// split_checkpoints_in_consensus_handler in devnet
297297
// Enable additional validation on zkLogin public identifier.
298298
// Version 111: Validator metadata
299-
// Enable Ristretto255 in devnet.
299+
// Version 112: Enable Ristretto255 in devnet.
300300

301301
#[derive(Copy, Clone, Debug, Hash, Serialize, Deserialize, PartialEq, Eq, PartialOrd, Ord)]
302302
pub struct ProtocolVersion(u64);
@@ -4571,7 +4571,8 @@ impl ProtocolConfig {
45714571
}
45724572
111 => {
45734573
cfg.feature_flags.validator_metadata_verify_v2 = true;
4574-
4574+
}
4575+
112 => {
45754576
cfg.group_ops_ristretto_decode_scalar_cost = Some(7);
45764577
cfg.group_ops_ristretto_decode_point_cost = Some(200);
45774578
cfg.group_ops_ristretto_scalar_add_cost = Some(10);

crates/sui-protocol-config/src/snapshots/sui_protocol_config__test__Mainnet_version_111.snap

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -376,16 +376,6 @@ group_ops_bls12381_uncompressed_g1_to_g1_cost: 677
376376
group_ops_bls12381_uncompressed_g1_sum_base_cost: 77
377377
group_ops_bls12381_uncompressed_g1_sum_cost_per_term: 26
378378
group_ops_bls12381_uncompressed_g1_sum_max_terms: 1200
379-
group_ops_ristretto_decode_scalar_cost: 7
380-
group_ops_ristretto_decode_point_cost: 200
381-
group_ops_ristretto_scalar_add_cost: 10
382-
group_ops_ristretto_point_add_cost: 500
383-
group_ops_ristretto_scalar_sub_cost: 10
384-
group_ops_ristretto_point_sub_cost: 500
385-
group_ops_ristretto_scalar_mul_cost: 11
386-
group_ops_ristretto_point_mul_cost: 1200
387-
group_ops_ristretto_scalar_div_cost: 151
388-
group_ops_ristretto_point_div_cost: 2500
389379
hmac_hmac_sha3_256_cost_base: 52
390380
hmac_hmac_sha3_256_input_cost_per_byte: 2
391381
hmac_hmac_sha3_256_input_cost_per_block: 2

0 commit comments

Comments
 (0)