mirror of
https://github.com/matter-labs/teepot.git
synced 2025-07-21 15:13:56 +02:00
chore(deps): update crates and nix flakes
- Updated multiple Rust dependencies, including `opentelemetry`, `const-oid`, and `webpki-roots` for enhanced features and bug fixes. - Upgraded `nixpkgs` and `crane` in the nix flake configuration. - Removed unused dependencies and introduced missing dependencies for improved build integrity. Signed-off-by: Harald Hoyer <harald@matterlabs.dev>
This commit is contained in:
parent
37e7f7f8e2
commit
716c782e6f
16 changed files with 947 additions and 792 deletions
|
@ -26,7 +26,7 @@ sha2.workspace = true
|
|||
teepot.workspace = true
|
||||
thiserror.workspace = true
|
||||
tracing.workspace = true
|
||||
webpki-roots = "0.26.1"
|
||||
webpki-roots = "1.0.0"
|
||||
x509-cert.workspace = true
|
||||
|
||||
[dev-dependencies]
|
||||
|
|
|
@ -3,7 +3,10 @@
|
|||
|
||||
use anyhow::{anyhow, bail, Context, Result};
|
||||
use clap::{Args, Parser, Subcommand};
|
||||
use pgp::{types::PublicKeyTrait, Deserializable, SignedPublicKey};
|
||||
use pgp::{
|
||||
composed::{Deserializable, SignedPublicKey},
|
||||
types::KeyDetails,
|
||||
};
|
||||
use serde_json::Value;
|
||||
use std::{
|
||||
default::Default,
|
||||
|
|
|
@ -1,14 +1,18 @@
|
|||
// SPDX-License-Identifier: Apache-2.0
|
||||
// Copyright (c) 2023-2024 Matter Labs
|
||||
// Copyright (c) 2023-2025 Matter Labs
|
||||
|
||||
//! Signature checking utilities
|
||||
|
||||
use crate::json::secrets::AdminConfig;
|
||||
use crate::server::{HttpResponseError, Status as _};
|
||||
use crate::{
|
||||
json::secrets::AdminConfig,
|
||||
server::{HttpResponseError, Status as _},
|
||||
};
|
||||
use actix_web::http::StatusCode;
|
||||
use anyhow::{anyhow, bail, Context, Result};
|
||||
use pgp::types::PublicKeyTrait;
|
||||
use pgp::{Deserializable, SignedPublicKey, StandaloneSignature};
|
||||
use pgp::{
|
||||
composed::{Deserializable, SignedPublicKey, StandaloneSignature},
|
||||
types::PublicKeyTrait,
|
||||
};
|
||||
use tracing::debug;
|
||||
|
||||
/// Verify a pgp signature for some message given some public keys
|
||||
|
@ -91,7 +95,7 @@ impl VerifySig for AdminConfig {
|
|||
mod tests {
|
||||
use super::verify_sig;
|
||||
use base64::{engine::general_purpose, Engine as _};
|
||||
use pgp::{Deserializable, SignedPublicKey};
|
||||
use pgp::composed::{Deserializable, SignedPublicKey};
|
||||
|
||||
const TEST_DATA: &str = include_str!("../../tests/data/test.json");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue