-
Notifications
You must be signed in to change notification settings - Fork 2
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
Compiler v2 #6
Open
welbon
wants to merge
31
commits into
main
Choose a base branch
from
compiler-v2
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Compiler v2 #6
Changes from 30 commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
11b24bb
[compiler-v2] add aptos crypto libraries
welbon eb119ca
[compiler-v2] add aptos crypto libraries
welbon 0a0f30b
[compiler-v2] add aptos crypto libraries
welbon 8cea51a
fix compile
nkysg ebabdf4
[compiler-v2] add aptos crypto libraries
welbon 7f41318
[compiler-v2] Fixed compiler error
welbon a7e0740
[compiler-v2] declare package name to lib
welbon b0d95f6
[compiler-v2] export CryptoHasher
welbon acf1e65
[compiler-v2] export aptos_crypto::hash
welbon e1f350a
[compiler-v2] remove aptos-crytpo hash for debug
welbon 4cb6458
[compiler-v2] add aptos-crytpo hash DummyHasher, CryptoHasher for debug
welbon 0f12f1e
[compiler-v2] add aptos-cryto to compile-v2 module for debug
welbon b0556b3
[compiler-v2] add aptos-cryto to compile-v2 module for debug
welbon fd7322b
[compiler-v2] fixed some project error
welbon fe66294
[compiler-v2] fixed all errors
welbon 0970efe
[compiler-v2] fixed crypto hasher macro derive
welbon 48d79ec
[compiler-v2] fixed crypto hasher macro derive
welbon 9fae41d
[compiler-v2] fixed crypto hasher macro derive
welbon 257ed3c
[compiler-v2] fixed crypto hasher macro derive
welbon d593443
[compiler-v2] fixed crypto hasher macro derive
welbon 00a04ba
[compiler-v2] add JSONSchema
welbon 95a42b4
[compiler-v2] fixed compiler error for tiny-keccak select 'sha3'
welbon cce8225
Fix compiler
sanlee42 d3c5100
[compiler-v2] fixed compiler error for DummyHasher
welbon 2e8b552
re-export some crates and constants (#7)
simonjiao 5ab5176
fix ed25519 fuzzing (#8)
nkysg e5e9057
add HashValue::from_hex_literal (#9)
nkysg ca832cc
HashValue supoort from<u64> && as_ref<u8> (#10)
nkysg 17607ac
update openrpc-schema (#11)
nkysg 69ccde1
fix HashValue break serde (#12)
nkysg a14be64
Fix HashValue serde json (#13)
nkysg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
[package] | ||
name = "aptos-crypto-derive" | ||
description = "Custom derives for `aptos-crypto`" | ||
version = "0.0.3" | ||
|
||
authors = ["Aptos Labs <[email protected]>"] | ||
edition = "2021" | ||
homepage = "https://aptoslabs.com" | ||
license = "Apache-2.0" | ||
publish = false | ||
repository = "https://github.com/aptos-labs/aptos-core" | ||
rust-version = "1.75.0" | ||
|
||
|
||
[lib] | ||
proc-macro = true | ||
|
||
[dependencies] | ||
proc-macro2 = "1.0.38" | ||
quote = "1.0.18" | ||
syn = { version = "1.0.92", features = ["derive", "extra-traits"] } | ||
|
||
[dev-dependencies] | ||
anyhow = "1.0.71" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Copyright © Aptos Foundation | ||
// Parts of the project are originally copyright © Meta Platforms, Inc. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
/// Converts a camel-case string to snake-case | ||
pub fn camel_to_snake(text: &str) -> String { | ||
let mut out = String::with_capacity(text.len()); | ||
let mut first = true; | ||
text.chars().for_each(|c| { | ||
if !first && c.is_uppercase() { | ||
out.push('_'); | ||
out.extend(c.to_lowercase()); | ||
} else if first { | ||
first = false; | ||
out.extend(c.to_lowercase()); | ||
} else { | ||
out.push(c); | ||
} | ||
}); | ||
out | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
💡 Codebase verification
Critical: Update x25519-dalek dependency to use the new official repository
The x25519-dalek repository has been archived and officially moved to curve25519-dalek. Using a custom fork of an archived repository poses security risks:
Recommendation:
🔗 Analysis chain
Security review needed for custom x25519-dalek fork.
Using a custom fork of a cryptographic implementation requires careful consideration:
Let me analyze the output we received. The GitHub API response shows:
zeroize_v1
branch contains only one commit ahead of the base, which removes the version lock on the zeroize dependency (from=1.3
to1
)Let me get more context about the archival status and any migration notes.
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 13203
Script:
Length of output: 434