Compare commits

...

6 Commits

Author SHA1 Message Date
Conrado Gouvea e786740a26
Merge bc633a23f5 into 5c8d90501a 2024-04-23 18:17:23 +02:00
dependabot[bot] 5c8d90501a
Bump peaceiris/actions-mdbook from 1.2.0 to 2.0.0 (#637)
Bumps [peaceiris/actions-mdbook](https://github.com/peaceiris/actions-mdbook) from 1.2.0 to 2.0.0.
- [Release notes](https://github.com/peaceiris/actions-mdbook/releases)
- [Changelog](https://github.com/peaceiris/actions-mdbook/blob/main/CHANGELOG.md)
- [Commits](https://github.com/peaceiris/actions-mdbook/compare/v1.2.0...v2.0.0)

---
updated-dependencies:
- dependency-name: peaceiris/actions-mdbook
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-17 22:10:51 +00:00
dependabot[bot] af0fc6e490
Bump reviewdog/action-actionlint from 1.43.0 to 1.44.0 (#641)
Bumps [reviewdog/action-actionlint](https://github.com/reviewdog/action-actionlint) from 1.43.0 to 1.44.0.
- [Release notes](https://github.com/reviewdog/action-actionlint/releases)
- [Commits](https://github.com/reviewdog/action-actionlint/compare/v1.43.0...v1.44.0)

---
updated-dependencies:
- dependency-name: reviewdog/action-actionlint
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-17 21:48:55 +00:00
dependabot[bot] 9ca9f59360
Bump codecov/codecov-action from 4.1.0 to 4.3.0 (#638)
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 4.1.0 to 4.3.0.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/v4.1.0...v4.3.0)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-17 21:48:51 +00:00
natalie e5c5e53b86
Fix clippy issue (#640) 2024-04-16 21:58:54 +00:00
Conrado Gouvea bc633a23f5 randomized: add Debug to structs 2024-02-28 13:44:23 -03:00
6 changed files with 34 additions and 4 deletions

View File

@ -44,4 +44,4 @@ jobs:
run: cargo llvm-cov report --lcov --ignore-filename-regex '.*(tests).*|benches.rs|gencode|helpers.rs' --output-path lcov.info
- name: Upload coverage report to Codecov
uses: codecov/codecov-action@v4.1.0
uses: codecov/codecov-action@v4.3.0

View File

@ -50,7 +50,7 @@ jobs:
- uses: Swatinem/rust-cache@v2
- name: Setup mdBook
uses: peaceiris/actions-mdbook@v1.2.0
uses: peaceiris/actions-mdbook@v2.0.0
with:
mdbook-version: '0.4.18'

View File

@ -143,7 +143,7 @@ jobs:
continue-on-error: true
steps:
- uses: actions/checkout@v4.1.1
- uses: reviewdog/action-actionlint@v1.43.0
- uses: reviewdog/action-actionlint@v1.44.0
with:
level: warning
fail_on_error: false

View File

@ -31,7 +31,7 @@ pub fn check_serialize_vss_commitment<C: Ciphersuite, R: RngCore + CryptoRng>(mu
// ---
let expected = vec![
let expected = [
<C::Group>::serialize(&input_1),
<C::Group>::serialize(&input_2),
<C::Group>::serialize(&input_3),

View File

@ -23,6 +23,7 @@ rustdoc-args = ["--cfg", "docsrs"]
derive-getters = "0.3.0"
document-features = "0.2.7"
frost-core = { path = "../frost-core", version = "1.0.0", features = ["internals"] }
hex = "0.4.3"
rand_core = "0.6"
[dev-dependencies]

View File

@ -249,6 +249,19 @@ where
}
}
impl<C> core::fmt::Debug for Randomizer<C>
where
C: Ciphersuite,
{
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
f.debug_tuple("Randomizer")
.field(&hex::encode(
<<C::Group as Group>::Field>::serialize(&self.0).as_ref(),
))
.finish()
}
}
/// Randomized parameters for a signing instance of randomized FROST.
#[derive(Clone, PartialEq, Eq, Getters)]
pub struct RandomizedParams<C: Ciphersuite> {
@ -303,3 +316,19 @@ where
}
}
}
impl<C> core::fmt::Debug for RandomizedParams<C>
where
C: Ciphersuite,
{
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
f.debug_struct("RandomizedParams")
.field("randomizer", &self.randomizer)
.field(
"randomizer_element",
&hex::encode(<C::Group as Group>::serialize(&self.randomizer_element).as_ref()),
)
.field("randomized_verifying_key", &self.randomized_verifying_key)
.finish()
}
}