Skip to main content

valence_crypto_utils/
lib.rs

1#![doc = include_str!("../README.md")]
2#![cfg_attr(not(feature = "std"), no_std)]
3#![warn(missing_docs)]
4
5extern crate alloc;
6
7use k256::ecdsa::SigningKey;
8
9mod signature;
10mod types;
11
12pub use types::*;
13
14#[cfg(feature = "std")]
15mod request;
16
17/// A general purpose signer.
18#[derive(Debug, Clone)]
19pub enum Signer {
20    /// Signer for secp256k1.
21    SecretEccNistP256(SigningKey),
22}
23
24/// A general purpose ECDSA verifier.
25#[derive(Debug, Default, Clone, Copy)]
26pub struct Ecdsa;