Diem’s mission is to build a trusted and innovative financial network that empowers people and businesses around the world.
1922 matches across 13 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | x.toml | 201 | allow = ["clap"] |
| LOW | x.toml | 321 | ] |
| LOW | consensus/consensus-types/src/block_data.rs | 21 | Proposal { |
| LOW | consensus/consensus-types/src/block_data.rs | 41 | /// Epoch number corresponds to the set of validators that are active for this block. |
| LOW | consensus/safety-rules/src/tests/suite.rs | 361 | let etimeout = Timeout::new(timeout.epoch() + 1, round + 1); |
| LOW | consensus/src/network_interface.rs | 41 | BlockRetrievalResponse(Box<BlockRetrievalResponse>), |
| LOW | consensus/src/network_interface.rs | 61 | CommitDecisionMsg(Box<CommitDecision>), |
| LOW | consensus/src/pending_votes.rs | 41 | /// The vote completes a new TwoChainTimeoutCertificate |
| LOW | consensus/src/counters.rs | 181 | pub static NUM_BLOCKS_IN_TREE: Lazy<IntGauge> = Lazy::new(|| { |
| LOW | consensus/src/network_tests.rs | 41 | /// `TwinId` is used by the NetworkPlayground to uniquely identify |
| LOW | consensus/src/network_tests.rs | 61 | /// These events will usually be handled by the event loop spawned in |
| LOW | consensus/src/experimental/buffer_manager.rs | 301 | // if new from execution_phase_rx, |
| LOW | …ensus/src/experimental/tests/persisting_phase_tests.rs | 1 | // Copyright (c) The Diem Core Contributors |
| LOW | consensus/src/experimental/tests/signing_phase_tests.rs | 1 | // Copyright (c) The Diem Core Contributors |
| LOW | consensus/src/experimental/tests/integration_tests.rs | 1 | // Copyright (c) The Diem Core Contributors |
| LOW | consensus/src/liveness/proposal_generator.rs | 21 | |
| LOW | consensus/src/liveness/round_state.rs | 61 | /// 3-chain rule for commits, so round 1 has round index 0. For example, if one wants |
| LOW | consensus/src/liveness/round_state.rs | 121 | /// * there is a TimeoutCertificate for round `r-1`. |
| LOW | consensus/src/twins/basic_twins_test.rs | 61 | /// than required for quorum do not commit anything. |
| LOW | consensus/src/twins/basic_twins_test.rs | 121 | /// Create 2 partitions, p1=[n1, n3], p2=[n0, twin0, n2] |
| LOW | consensus/src/twins/basic_twins_test.rs | 181 | /// Create 2 partitions, p1=[n0, n1, n2], p2=[n3, twin0, twin1] |
| LOW | consensus/src/twins/basic_twins_test.rs | 261 | /// |
| LOW | consensus/src/block_storage/sync_manager.rs | 281 | pub fn new(network: NetworkSender, preferred_peer: Author) -> Self { |
| LOW | consensus/src/block_storage/block_tree.rs | 301 | |
| LOW | consensus/src/block_storage/block_store.rs | 81 | } |
| LOW | consensus/src/block_storage/block_store.rs | 481 | } |
| LOW | shuffle/transaction-builder/src/framework.rs | 1 | // Copyright (c) The Diem Core Contributors |
| LOW | shuffle/transaction-builder/src/framework.rs | 21 | language_storage::{ModuleId, TypeTag}, |
| LOW | shuffle/transaction-builder/src/framework.rs | 41 | /// impl ScriptFunctionCall { |
| LOW | shuffle/transaction-builder/src/framework.rs | 61 | /// |
| LOW | shuffle/transaction-builder/src/framework.rs | 81 | }, |
| LOW | shuffle/transaction-builder/src/framework.rs | 101 | /// `Diem::CurrencyInfo<Token>` resource published under `0xA550C18` will be |
| LOW | shuffle/transaction-builder/src/framework.rs | 121 | /// | Error Category | Error Reason | Description |
| LOW | shuffle/transaction-builder/src/framework.rs | 141 | }, |
| LOW | shuffle/transaction-builder/src/framework.rs | 161 | /// The successful execution of this transaction will emit: |
| LOW | shuffle/transaction-builder/src/framework.rs | 181 | /// | `Errors::NOT_PUBLISHED` | `Diem::EPREBURN_QUEUE` | The account at `preburn_add |
| LOW | shuffle/transaction-builder/src/framework.rs | 201 | /// # Technical Description |
| LOW | shuffle/transaction-builder/src/framework.rs | 221 | /// | ------ | ------ | ------------- |
| LOW | shuffle/transaction-builder/src/framework.rs | 261 | }, |
| LOW | shuffle/transaction-builder/src/framework.rs | 281 | /// and the `rold_id` field being `Roles::VALIDATOR_ROLE_ID`. This is emitted on the |
| LOW | shuffle/transaction-builder/src/framework.rs | 301 | /// | `Errors::REQUIRES_ROLE` | `Roles::EDIEM_ROOT` | The sending account is not the Diem Roo |
| LOW | shuffle/transaction-builder/src/framework.rs | 321 | /// Root account. |
| LOW | shuffle/transaction-builder/src/framework.rs | 341 | /// | `sliding_nonce` | `u64` | The `sliding_nonce` (see: `SlidingNonce`) to be used for this transacti |
| LOW | shuffle/transaction-builder/src/framework.rs | 361 | /// * `ValidatorAdministrationScripts::remove_validator_and_reconfigure` |
| LOW | shuffle/transaction-builder/src/framework.rs | 381 | /// `AccountFreezing::FreezeAccountEvent`. The transaction sender must be the |
| LOW | shuffle/transaction-builder/src/framework.rs | 401 | /// # Common Abort Conditions |
| LOW | shuffle/transaction-builder/src/framework.rs | 421 | amount: u64, |
| LOW | shuffle/transaction-builder/src/framework.rs | 441 | /// `Diem::CurrencyInfo<Token`'s `preburn_events` handle for `Token` and with |
| LOW | shuffle/transaction-builder/src/framework.rs | 461 | /// | `Errors::REQUIRES_ROLE` | `Roles::EDESIGNATED_DEALER` | The `account` did not ha |
| LOW | shuffle/transaction-builder/src/framework.rs | 481 | /// # Parameters |
| LOW | shuffle/transaction-builder/src/framework.rs | 501 | /// # Summary |
| LOW | shuffle/transaction-builder/src/framework.rs | 521 | /// | ---------------- | -------------- | ------------- |
| LOW | shuffle/transaction-builder/src/framework.rs | 541 | /// |
| LOW | shuffle/transaction-builder/src/framework.rs | 561 | /// | `Errors::INVALID_ARGUMENT` | `SlidingNonce::ENONCE_TOO_NEW` | The `sliding_nonce` i |
| LOW | shuffle/transaction-builder/src/framework.rs | 581 | /// # Technical Description |
| LOW | shuffle/transaction-builder/src/framework.rs | 601 | /// # Common Abort Conditions |
| LOW | shuffle/transaction-builder/src/framework.rs | 621 | /// # Technical Description |
| LOW | shuffle/transaction-builder/src/framework.rs | 641 | /// | ------ | ------ | ------------- |
| LOW | shuffle/transaction-builder/src/framework.rs | 661 | /// | `Errors::INVALID_STATE` | `Diem::EMINTING_NOT_ALLOWED` | Minting is not currently allowed |
| LOW | shuffle/transaction-builder/src/framework.rs | 681 | /// # Technical Description |
| 1801 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| CRITICAL | language/tools/move-cli/src/sandbox/commands/publish.rs | 103 | .map(|((ident, _), m)| (ident.value.module.0.value.to_string(), m)) |
| CRITICAL | language/move-model/src/builder/module_builder.rs | 194 | self.symbol_pool().make(m.value.module.0.value.as_str()), |
| CRITICAL | language/move-model/src/builder/exp_translator.rs | 557 | self.symbol_pool().make(m.value.module.0.value.as_str()), |
| CRITICAL | json-rpc/src/stream_rpc/subscription_types.rs | 108 | self.client.connection_context.sdk_info.language.as_str(), |
| CRITICAL | json-rpc/src/stream_rpc/subscription_types.rs | 109 | &self.client.connection_context.sdk_info.version.to_string(), |
| CRITICAL | json-rpc/src/stream_rpc/subscription_types.rs | 181 | helper.client.connection_context.sdk_info.language.as_str(), |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | shuffle/transaction-builder/src/framework.rs | 11 | //! This code was generated by compiling known Script interfaces ("ABIs") with the tool `transaction-builder-generator`. |
| HIGH | testsuite/smoke-test/src/transaction.rs | 71 | // query the transaction and check it contains the same values as requested |
| HIGH | …leases/artifacts/current/transaction_script_builder.rs | 11 | //! This code was generated by compiling known Script interfaces ("ABIs") with the tool `transaction-builder-generator`. |
| HIGH | …ifacts/release-1.2.0-rc0/transaction_script_builder.rs | 11 | //! This code was generated by compiling known Script interfaces ("ABIs") with the tool `transaction-builder-generator`. |
| HIGH | …ifacts/release-1.4.0-rc0/transaction_script_builder.rs | 11 | //! This code was generated by compiling known Script interfaces ("ABIs") with the tool `transaction-builder-generator`. |
| HIGH | language/transaction-builder/generator/src/rust.rs | 127 | //! This code was generated by compiling known Script interfaces ("ABIs") with the tool `transaction-builder-generator`. |
| HIGH | sdk/transaction-builder/src/stdlib.rs | 11 | //! This code was generated by compiling known Script interfaces ("ABIs") with the tool `transaction-builder-generator`. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | docker/compose/data-restore/s3-public.toml | 0 | file_handle="$backup_handle/$file_name" echo "$file_handle" exec 1>&- gzip -c | aws s3 cp - "s3://$bucket/$sub_dir/$file |
| HIGH | helm/fullnode/files/backup/s3.toml | 0 | file_handle="$backup_handle/$file_name" echo "$file_handle" exec 1>&- gzip -c | aws s3 cp - "s3://$bucket/$sub_dir/$file |
| HIGH | helm/fullnode/files/backup/s3-public.toml | 0 | file_handle="$backup_handle/$file_name" echo "$file_handle" exec 1>&- gzip -c | aws s3 cp - "s3://$bucket/$sub_dir/$file |
| HIGH | …backup-cli/src/storage/command_adapter/gcp.sample.toml | 0 | # backup handle is the same with input backup name, output to stdout echo "$backup_name" |
| HIGH | …ckup-cli/src/storage/command_adapter/azure.sample.toml | 0 | # backup handle is the same with input backup name, output to stdout echo "$backup_name" |
| HIGH | …/backup-cli/src/storage/command_adapter/s3.sample.toml | 0 | # backup handle is the same with input backup name, output to stdout echo "$backup_name" |
| HIGH | .github/workflows/transaction-replay.toml | 0 | # backup handle is the same with input backup name, output to stdout echo "$backup_name" |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | network/netcore/src/transport/and_then.rs | 161 | // Step 1: Drive Fut1 to completion |
| LOW | network/netcore/src/transport/and_then.rs | 167 | // Step 4: Drive Fut2 to completion |
| LOW | network/netcore/src/transport/and_then.rs | 172 | // Step 2: Ensure that Fut1 is dropped |
| LOW | network/netcore/src/transport/and_then.rs | 174 | // Step 3: Run F on the output of Fut1 to create Fut2 |
| LOW | …uage/move-prover/bytecode/src/verification_analysis.rs | 594 | // Step 1: remove suspended invariants from the the relevance set. These suspended |
| LOW | …uage/move-prover/bytecode/src/verification_analysis.rs | 607 | // Step 2: defer the suspended invariants back to the caller and the caller will accept |
| LOW | …rover/bytecode/src/global_invariant_instrumentation.rs | 392 | // Step 1: emit entrypoint assumptions |
| LOW | …rover/bytecode/src/global_invariant_instrumentation.rs | 395 | // Step 2: emit entrypoint snapshots. This can happen if this function defers invariant |
| LOW | …rover/bytecode/src/global_invariant_instrumentation.rs | 402 | // Step 3: go over the bytecode and instrument assertions. |
| LOW | language/move-model/src/lib.rs | 106 | // Step 1: parse the program to get comments and a separation of targets and dependencies. |
| LOW | language/move-model/src/lib.rs | 147 | // Step 2: run the compiler up to expansion |
| LOW | language/move-model/src/lib.rs | 208 | // Step 3: selective compilation. |
| LOW | devtools/x/src/nextest.rs | 64 | // Step 1: build all the test binaries with --no-run. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | types/src/network_address/mod.rs | 35 | /// future-proof network address represented as a stack of protocols. Essentially |
| MEDIUM | testsuite/cli/diem-wallet/src/wallet_library.rs | 6 | //! we will be releasing more robust Wallet implementations. It is our intention to present a |
| MEDIUM | testsuite/cli/diem-wallet/src/wallet_library.rs | 8 | //! implementation and it's security guarantees throughout testnet. For a more robust wallet |
| MEDIUM | language/move-prover/tests/testsuite.rs | 251 | /// in the source. We still use datatest to finally run the tests to utilize its |
| MEDIUM | …uage/move-prover/bytecode/src/reaching_def_analysis.rs | 54 | // For being robust, we protect this function against cycles in alias definitions. If |
| MEDIUM | language/bytecode-verifier/src/type_safety.rs | 5 | //! It does not utilize control flow, but does check each block independently |
| MEDIUM | storage/diemdb/src/diemdb_test.rs | 377 | // TODO(philiphayes): more robust fuzzing? |
| MEDIUM | secure/net/src/lib.rs | 15 | //! Internally both the client and server leverage a NetworkStream that communications in blocks |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | crates/diem-crypto/benches/noise.rs | 4 | //! Don't forget to run this benchmark with AES-NI enable. |
| MEDIUM | docker/compose/data-restore/docker-compose.yaml | 19 | # Diem Association provides public data backup you can use, check the offical website. |
| LOW | docker/compose/data-restore/docker-compose.yaml | 35 | # so make sure you start this docker compose using same project name as the db you want to restore. |
| LOW | language/move-model/src/builder/module_builder.rs | 2192 | // Don't forget to put schema back. |
| MEDIUM | sdk/src/lib.rs | 17 | //! Here is a simple example to show how to create two accounts and do a p2p transfer on testnet: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | storage/jellyfish-merkle/src/lib.rs | 22 | //! .──────────────────────. |
| MEDIUM | storage/jellyfish-merkle/src/lib.rs | 23 | //! _.─────' `──────. |
| MEDIUM | storage/jellyfish-merkle/src/lib.rs | 39 | //!+──────────────────────────────────────────────────────────────────────────────────────────────+ |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | language/transaction-builder/generator/src/python3.rs | 131 | def decode_script_function_payload(payload: TransactionPayload) -> ScriptFunctionCall: |
| LOW | developers.diem.com/static/js/mobile_nav.js | 9 | function addClickHandlersToMainNavTriggers() { |
| LOW | developers.diem.com/static/js/mobile_nav.js | 24 | function addClickHandlersToSubNavTriggers() { |
| LOW | developers.diem.com/static/js/mobile_nav.js | 39 | function addClickHandlersToNavToggles(navToggles, nav, _isMainNavClick, _isSubNavClick) { |
| LOW | developers.diem.com/static/js/forms.js | 86 | function handleEnterpriseTypeChange(val) { |
| LOW | scripts/fgi/kube.py | 86 | def get_cluster_name_from_context(context): |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | crates/diem-assets-proof/src/lib.rs | 9 | //! ### Example usage: |
| LOW | scripts/cargo_update_outdated.sh | 11 | # Example usage: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | developers.diem.com/docs/v2-docs-guide.md | 26 | overlay="Send a test transaction to orem ipsum dolor sit amet, ctetur adipiscing elit, sed do" |
| LOW | developers.diem.com/docs/v2-docs-guide.md | 218 | overlay="Send a test transaction to orem ipsum dolor sit amet, ctetur adipiscing elit, sed do" |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | helm/fullnode/values.yaml | 38 | # Set this to a StorageClass available on your Kubernetes cluster |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | scripts/fgi/kube.py | 90 |