-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Thomas Chataigner <[email protected]>
- Loading branch information
1 parent
e29a5e7
commit fa39963
Showing
15 changed files
with
401 additions
and
6 deletions.
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 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
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,14 @@ | ||
// Copyright (c) Yatima, Inc. | ||
// SPDX-License-Identifier: APACHE-2.0 | ||
|
||
use thiserror::Error; | ||
|
||
/// The error type for the `crypto` module. | ||
#[derive(Debug, Error)] | ||
pub enum CryptoError { | ||
#[error("Internal error occurred: {source}")] | ||
Internal { | ||
#[source] | ||
source: Box<dyn std::error::Error + Sync + Send>, | ||
}, | ||
} |
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,17 @@ | ||
// Copyright (c) Yatima, Inc. | ||
// SPDX-License-Identifier: APACHE-2.0 | ||
|
||
//! # Cryptographic Utilities for the Aptos Light Client | ||
//! | ||
//! This module contains cryptographic utilities used by the light client. | ||
//! It is divided into several sub-modules, each with its own specific functionality. | ||
//! | ||
//! ## Sub-modules | ||
//! | ||
//! - `sig`: This sub-module contains the `Signature` and `PublicKey` structures and their associated methods. | ||
//! - `error`: This sub-module contains the ``CryptoError` error type used throughout the `crypto` module. | ||
//! | ||
//! For more detailed information, users should refer to the specific documentation for each sub-module. | ||
pub mod error; | ||
pub mod sig; |
Oops, something went wrong.