Skip to main content

Crate dkls23

Crate dkls23 

Source
👎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
DKLs23 main protocols and related ones.
utilities
Extra functionalities needed in protocols.

Structs§

BitcoinAddress
[AddressScheme] implementation for Bitcoin P2WPKH addresses.
CosmosAddress
[AddressScheme] implementation for Cosmos Hub addresses.
DkgSession
EcdsaSignature
EthereumAddress
[AddressScheme] implementation for Ethereum addresses on secp256k1.
SignSession
TronAddress
[AddressScheme] implementation for TRON addresses.

Constants§

RAW_SECURITY
Computational security parameter lambda_c from DKLs23. We take it to be the same as the parameter kappa.
SECURITY
RAW_SECURITY divided by 8 (used for arrays of bytes)
STAT_SECURITY
Statistical security parameter lambda_s from DKLs23.

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.
PublicKeyPackage
Type alias for a DKLs23 public key package using secp256k1.