-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: Add protocol update for crypto utils #1675
Feature: Add protocol update for crypto utils #1675
Conversation
Benchmark for b577dddClick to view benchmark
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, it might be worth checking with gateway team if they need the booloader to have a TypeInfo
substate, or at least to let them know that it does not, in case they rely on all nodes having a type info substate.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, it might be worth checking with gateway team if they need the booloader to have a TypeInfo
substate, or at least to let them know that it does not, in case they rely on all nodes having a type info substate.
@@ -734,6 +734,12 @@ impl WasmModule { | |||
} | |||
} | |||
CRYPTO_UTILS_BLS12381_V1_VERIFY_FUNCTION_NAME => { | |||
if minor_version < 1 { | |||
return Err(PrepareError::InvalidImport( | |||
InvalidImport::ImportNotAllowed(entry.name.to_string()), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just thinking that maybe we could use more informative error here, that version is not correct.
@@ -60,7 +60,7 @@ impl ScryptoV1WasmValidator { | |||
) -> Result<(Vec<u8>, Vec<String>), PrepareError> { | |||
WasmModule::init(code)? | |||
.enforce_no_start_function()? | |||
.enforce_import_limit()? | |||
.enforce_import_limit(self.minor_version)? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor thing, but the name is no longer adequate :)
245ba52
to
284aa45
Compare
No description provided.