-
Notifications
You must be signed in to change notification settings - Fork 1
sdk%refac: consolidate corpus logic, JSON and hex helpers to dash-dev, define BlsScheme trait to supersede old layout
#21
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
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
40a839c
sdk%refac(dev): consolidate corpus logic behind object shape
kwvg 97d171d
sdk%refac(dev): isolate encoding logic, drop inline logic from `pkc`
kwvg 104c1db
sdk%refac(dev): isolate JSON-specific test helpers
kwvg 769b2fd
sdk%refac(dev): migrate `pkc` to `Corpus`, drop inline helpers
kwvg 22890b0
pow%refac(test): migrate to `Corpus`-formatted test vectors
kwvg 97405e5
pkc%refac(test): move shared BLS test fixtures and consts to unified mod
kwvg 6e85384
pkc%refac(bls): relocate shared math and helpers to `scheme_ops`
kwvg c246572
pkc%refac(bls): define scheme abstraction with `BlsScheme`, impl Chia
kwvg dc2b789
pkc%refac(bls): route IETF through trait `BlsScheme`
kwvg 915982b
pkc%refac(bls): move Chia/IETF scheme correctness tests inline
kwvg db52f64
pkc%refac(bls): consolidate public key operations under `BlsScheme`
kwvg 2468b04
pkc%refac(bls): consolidate `recover_sig_shares` under `BlsScheme`
kwvg 433acb7
pkc%refac(bls): consolidate `split_sk` under `BlsScheme`
kwvg d84af5c
pkc%test(bls): assert coefficients per threshold in `llmq_contribute_…
kwvg 71ba3db
pkc%lint(codeql): add mutual exclusion rule for `BlsScheme`
kwvg 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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,29 @@ | ||
| /** | ||
| * Copyright (c) 2026-present, The Dash Core developers | ||
| * SPDX-License-Identifier: MIT | ||
| * See the accompanying file LICENSE or https://opensource.org/license/MIT | ||
| * | ||
| * @id base-sdk/trait-rules | ||
| * @name Trait definition and implementation rules | ||
| * @description Enforces that a method body lives in one layer only. | ||
| * @kind problem | ||
| * @precision very-high | ||
| * @problem.severity error | ||
| * @tags correctness maintainability | ||
| */ | ||
|
|
||
| import lib.fmt | ||
| import lib.policy | ||
| import lib.traits | ||
| import rust | ||
|
|
||
| from Function over, string message | ||
| where | ||
| exists(Trait t, Function decl, Impl i | | ||
| isMutexTrait(t.getName().getText()) and | ||
| overridesDefault(t, decl, i, over) and | ||
| message = | ||
| fmt("{0} overrides the default {1} provides for {2}", implSelfName(i), t.getName().getText(), | ||
| fmt("{0}()", decl.getName().getText())) | ||
| ) | ||
| select over, message |
This file contains hidden or 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,9 @@ | ||
| rules: | ||
| - id: cargo-serde-json-restrict | ||
| message: "serde-json{,5} dependency unexpected outside dash-dev crate" | ||
| severity: ERROR | ||
| languages: [generic] | ||
| paths: | ||
| include: [/pkgs/**/Cargo.toml] | ||
| exclude: [/pkgs/dev/Cargo.toml] | ||
| pattern-regex: \b(serde[-_]json|json5)\b |
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.