Module iop_keyvault::secp256k1 [−][src]
SLIP-0010 and BIP-0032 compatible Secp256k1 cryptography that allows child key derivation.
Modules
ark | ARK.io related |
btc | Bitcoin related |
hyd | Hydra coin related |
iop | Internet of People related |
Structs
ChainCode | Chain code for key derivation in extended private and public keys. This is a 256-bit secret key that is completely independent of the private key and is used as an extension to the cryptographic domain, basically an extra state during iteration. |
Secp256k1 | This elliptic curve cryptography implements both the AsymmetricCrypto and KeyDerivationCrypto traits so for BTC, ETH and IOP as examples. |
SecpExtPrivateKey | Implementation of Secp256k1::ExtendedPrivateKey |
SecpExtPublicKey | Implementation of Secp256k1::ExtendedPublicKey |
SecpKeyId | Implementation of Secp256k1::KeyId |
SecpPrivateKey | Implementation of Secp256k1::PrivateKey |
SecpPublicKey | Implementation of Secp256k1::PublicKey |
SecpSignature | Implementation of Secp256k1::Signature |
Enums
Bip178 | BIP-0178 is an extension to the de-facto WIF to encode how the private key was used to generate receiving addresses. If in doubt, just use Compressed, which is compatible with most wallets. |
Constants
CHAIN_CODE_SIZE | Size of the chain code in bytes |
KEY_ID_SIZE | The size of the key identifier in bytes. Since a version byte is prepended to the hash result, it is not a standard size. |
KEY_ID_VERSION1 | The serialized byte representation for the current version of the hash algorithm applied on the public key to obtain the key identifier |
PRIVATE_KEY_SIZE | The size of the private key in the format used by |
PUBLIC_KEY_SIZE | The size of the public key in the compressed format used by |
PUBLIC_KEY_UNCOMPRESSED_SIZE | The size of the public key in the uncompressed format used by |
SIGNATURE_SIZE | Size of the signature is the version byte plus the actual libsecp256k1 signature size |
SIGNATURE_VERSION1 | The serialized byte representation for the current version of the signature algorithm |
SLIP10_SEED_HASH_SALT | SLIP-0010 defines keyed hashing for master key derivation. This does domain separation for different cryptographic algorithms. This is the standard key for BIP-0032 |
VERSION_SIZE | Since Wigy could not find any constant expression for the length of |
Functions
from_base58check | Decoding string with BASE58 into binary data and verify if the 4-byte checksum at the end matches the rest of the data. Only the decoded data without checksum will be returned. |
to_base58check | Encoding binary data with BASE58 after adding a 4-byte checksum pops up in the Bitcoin ecosystem on several places. Addresses, wallet-import-format, extended public and private key serialization formats. So this transformation is pulled up here as a free function. |