👎Deprecated since 0.3.1:
This crate is deprecated. Use dkls23-secp256k1 for secp256k1/Ethereum/Bitcoin or dkls23-secp256r1 for NIST P-256/NEO3/Sui.
Modules§
- curve
- Trait abstraction for ECDSA curves supported by DKLs23.
- protocols
DKLs23main protocols and related ones.- utilities
- Extra functionalities needed in
protocols.
Structs§
- Bitcoin
Address - [
AddressScheme] implementation for Bitcoin P2WPKH addresses. - Cosmos
Address - [
AddressScheme] implementation for Cosmos Hub addresses. - DkgSession
- Ecdsa
Signature - Ethereum
Address - [
AddressScheme] implementation for Ethereum addresses on secp256k1. - Sign
Session - Tron
Address - [
AddressScheme] implementation for TRON addresses.
Constants§
- RAW_
SECURITY - Computational security parameter
lambda_cfromDKLs23. We take it to be the same as the parameterkappa. - SECURITY
RAW_SECURITYdivided by 8 (used for arrays of bytes)- STAT_
SECURITY - Statistical security parameter
lambda_sfromDKLs23.
Functions§
- compute_
btc_ address - Computes a Bitcoin P2WPKH (Pay-to-Witness-Public-Key-Hash) address from a compressed secp256k1 public key.
- compute_
btc_ address_ with_ hrp - Computes a Bitcoin P2WPKH address with a custom HRP (human-readable part).
- compute_
cosmos_ address - Computes a Cosmos SDK address from a compressed secp256k1 public key.
- compute_
cosmos_ address_ with_ hrp - Computes a Cosmos-style Bech32 address with a custom HRP.
- compute_
eth_ address - Computes an ERC-55 checksummed Ethereum address from a secp256k1 public key.
- compute_
tron_ address - Computes a TRON address from a secp256k1 public key.
Type Aliases§
- Party
- Type alias for a DKLs23 party using secp256k1.
- Public
KeyPackage - Type alias for a DKLs23 public key package using secp256k1.