Expand description
QoreChain SDK for Rust.
This crate mirrors the QoreChain TypeScript, Python, and Go SDKs and provides the building blocks dApp developers need to talk to a QoreChain network:
- [
networks] — built-in network presets (testnet and mainnet, both live). denom— exact integer conversion between display and base amounts.address— bech32 / hex address conversion and validation.accounts— BIP-39 mnemonics and HD derivation of native (Cosmos-style secp256k1), EVM (secp256k1), and SVM (ed25519) accounts.pqc— post-quantum ML-DSA-87 (FIPS 204) keygen / sign / verify and the on-chain hybrid-signature extension builder.query— async REST (LCD) and JSON-RPC read clients, including the typedqor_*namespace.client— the top-levelcreate_clientfactory.tx— native bank-send building/signing, REST broadcast, and end-to-end hybrid (classical + ML-DSA-87) transaction signing.
Re-exports§
pub use error::Error;pub use error::Result;pub use networks::get_network;pub use networks::list_networks;pub use networks::networks;pub use networks::Bech32Prefixes;pub use networks::CoinInfo;pub use networks::Endpoints;pub use networks::NetworkConfig;pub use denom::from_base;pub use denom::to_base;pub use denom::DEFAULT_EXPONENT;pub use address::bech32_to_hex;pub use address::bytes_to_bech32;pub use address::hex_to_bech32;pub use address::is_valid_bech32;pub use address::DEFAULT_PREFIX;pub use accounts::derive_evm_account;pub use accounts::derive_native_account;pub use accounts::derive_svm_account;pub use accounts::generate_mnemonic;pub use accounts::validate_mnemonic;pub use accounts::Ed25519Account;pub use accounts::Secp256k1Account;pub use pqc::build_hybrid_signature_extension;pub use pqc::generate_pqc_keypair;pub use pqc::pqc_sign;pub use pqc::pqc_verify;pub use pqc::HybridSignatureExtension;pub use pqc::PqcKeypair;pub use pqc::ALGORITHM_DILITHIUM5;pub use pqc::ALGORITHM_MLKEM1024;pub use pqc::HYBRID_SIG_TYPE_URL;pub use pqc::MLDSA87_PUBLIC_KEY_LEN;pub use pqc::MLDSA87_SECRET_KEY_LEN;pub use pqc::MLDSA87_SIGNATURE_LEN;pub use query::JsonRpcClient;pub use query::QorClient;pub use query::RestClient;pub use query::TypedQueryClient;pub use query::QOR_METHODS;pub use client::create_client;pub use client::Client;pub use client::ClientBuilder;pub use client::Fees;pub use tx::bank_send;pub use tx::broadcast;pub use tx::broadcast_and_wait;pub use tx::build_hybrid_tx;pub use tx::calculate_fee;pub use tx::decode_tx_error;pub use tx::estimate_fee;pub use tx::estimate_gas;pub use tx::fee_from_estimate;pub use tx::get_block;pub use tx::get_latest_block;pub use tx::get_tx;pub use tx::search_txs;pub use tx::send_messages;pub use tx::wait_for_tx;pub use tx::with_retry;pub use tx::BankSendParams;pub use tx::BroadcastMode;pub use tx::BuildHybridTxParams;pub use tx::BuiltTx;pub use tx::Coin;pub use tx::Fee;pub use tx::GasPrice;pub use tx::Message;pub use tx::QoreTxError;pub use tx::SendMessagesParams;pub use tx::TxResult;pub use tx::TxSearchResult;pub use tx::WaitOptions;pub use tx::MSG_SEND_TYPE_URL;pub use subscribe::Event;pub use subscribe::SubscribeClient;pub use subscribe::Subscription;pub use utils::format_units;pub use utils::hash160;pub use utils::is_valid_evm_address;pub use utils::is_valid_svm_address;pub use utils::keccak256;pub use utils::parse_units;pub use utils::ripemd160;pub use utils::sha256;pub use utils::to_checksum_address;
Modules§
- accounts
- BIP-39 mnemonics and hierarchical-deterministic (HD) derivation of QoreChain accounts in all three supported schemes:
- address
- Conversion and validation for QoreChain bech32 addresses (e.g.
qor1...) and their underlying byte payloads expressed as0x-prefixed hex. - client
- The top-level
create_clientfactory andClientBuilderfor the QoreChain Rust SDK. - denom
- Convert between human display amounts and integer base amounts.
- error
- Crate-wide error type.
- msg
- Typed message constructors (composers) for every QoreChain custom-module
message and the standard Cosmos message types, plus the
to_anyhelper that packs any prost message into acosmrs::Anywith the correcttype_url. - networks
- Built-in network presets for the QoreChain Rust SDK.
- pqc
- Post-quantum (PQC) signing for QoreChain, using ML-DSA-87 (Dilithium-5, NIST FIPS 204) for digital signatures.
- proto
- Generated prost types for the QoreChain custom modules.
- query
- Async REST (LCD) and JSON-RPC read clients for QoreChain.
- subscribe
- WebSocket subscriptions to the chain RPC
/websocketendpoint, exposing typed helpers for new-block and transaction event subscriptions over JSON-RPC, mirroring the TS / Go SDKs. - tx
- Native + hybrid (classical + post-quantum) transaction building, signing, and broadcast for QoreChain.
- utils
- Hashing, unit-conversion, and address-validation helpers shared across the
QoreChain SDK, mirroring the TypeScript / Python / Go
utilssurface.