Crate groestlcoin

source ·
Expand description

§Rust Groestlcoin Library

This is a library that supports the Groestlcoin network protocol and associated primitives. It is designed for Rust programs built to work with the Groestlcoin network.

Except for its dependency on libsecp256k1 (and optionally libbitcoinconsensus), this library is written entirely in Rust. It illustrates the benefits of strong type safety, including ownership and lifetime, for financial and/or cryptographic software.

See README.md for detailed documentation about development and supported environments.

§Available feature flags

  • std - the usual dependency on std (default).
  • secp-recovery - enables calculating public key from a signature and message.
  • base64 - (dependency), enables encoding of PSBTs and message signatures.
  • rand - (dependency), makes it more convenient to generate random values.
  • serde - (dependency), implements serde-based serialization and deserialization.
  • secp-lowmemory - optimizations for low-memory devices.
  • no-std - enables additional features required for this crate to be usable without std. Does not disable std. Depends on core2.
  • groestlcoinconsensus-std - enables std in groestlcoinconsensus and communicates it to this crate so it knows how to implement std::error::Error. At this time there’s a hack to achieve the same without this feature but it could happen the implementations diverge one day.

Re-exports§

Modules§

  • Groestlcoin addresses.
  • Groestlcoin amounts.
  • Base58 encoder and decoder.
  • BIP32 implementation.
  • BIP152 Compact Blocks
  • BIP 158 Compact Block Filters for Light Clients.
  • Groestlcoin block data.
  • Groestlcoin consensus.
  • ECDSA Bitcoin signatures.
  • Contains error types and other error handling tools.
  • Bitcoin hash types.
  • Groestlcoin keys.
  • Groestlcoin merkle tree functions.
  • Groestlcoin network.
  • Groestlcoin p2p network types.
  • Groestlcoin policy.
  • Proof-of-work related integer types.
  • Partially Signed Bitcoin Transactions.
  • Signature hash implementation (used in transaction signing).
  • Signature
  • Bitcoin string parsing utilities.
  • Bitcoin Taproot.

Structs§

Enums§

  • Hashtype of an input’s signature, encoded in the last byte of the signature.
  • Hashtype of an input’s signature, encoded in the last byte of the signature. Fixed values so they can be cast as integer types for encoding.