MCPcopy Create free account

hub / github.com/Quantova/Qweb3.rs / functions

Functions78 in github.com/Quantova/Qweb3.rs

↓ 9 callersMethodcall
Make a raw JSON-RPC call and deserialize the `result` field.
src/rpc.rs:57
↓ 6 callersFunctionaddress_from_public_key
Derive the canonical Quantova account address (`Q1...`) from a public key. Low-level primitive: performs NO scheme/length validation on `public_key`.
src/address.rs:47
↓ 4 callersFunctiondecode
Decode a Bech32m string, verifying prefix + checksum. Accepts upper- or lower-case.
src/bech32m.rs:92
↓ 4 callersFunctionkeccak256
keccak-256 of `data`.
src/abi.rs:11
↓ 3 callersFunctiondecode_address
Decode a `Q1...` address back to its 20-byte account body, validating it.
src/address.rs:57
↓ 3 callersFunctionencode
Encode raw bytes as a Bech32m string with the given prefix (lowercase canonical form).
src/bech32m.rs:78
↓ 3 callersFunctionparse_u64_hex
(s: &str)
src/rpc.rs:188
↓ 3 callersMethodrpc
Access the JSON-RPC client (`q_*`, `state_*`, `chain_*`, `system_*`).
src/lib.rs:93
↓ 3 callersFunctionsphincs_component
SPHINCS+ per-component seed: `blake2_256(SCALE(seed, label))[..16]` (matches sp-core).
src/wallet.rs:118
↓ 3 callersMethodverify
Verify `signature` over `message` against this wallet's public key.
src/wallet.rs:301
↓ 2 callersFunctionbody_to_address
Encode a 20-byte account body as a canonical `Q1...` address (Bech32m, upper-case).
src/address.rs:39
↓ 2 callersFunctionconvert_bits
(data: &[u8], from: u32, to: u32, pad: bool)
src/bech32m.rs:50
↓ 2 callersFunctionhrp_expand
(hrp: &str)
src/bech32m.rs:24
↓ 2 callersFunctionmnemonic_to_mini_secret
Substrate mini-secret: `PBKDF2-HMAC-SHA512(BIP-39 entropy, "mnemonic", 2048)[..32]`. Identical to `mnemonicToMiniSecret` in qweb3.js.
src/wallet.rs:100
↓ 2 callersFunctionparse_u128_hex
(s: &str)
src/rpc.rs:193
↓ 2 callersFunctionpolymod
(values: &[u8])
src/bech32m.rs:10
↓ 2 callersMethodsign
Post-quantum-sign `message`, returning the raw signature bytes (verifiable on-chain).
src/wallet.rs:243
↓ 1 callersFunctionaccount_id_from_public_key
Derive the 20-byte Quantova account body (H160) from a post-quantum public key. `account_id = SHA3-256(public_key)[..20]` with `account_id[0] = 0x40`
src/address.rs:30
↓ 1 callersMethodaddress
The canonical `Q` address for this wallet.
src/wallet.rs:223
↓ 1 callersMethodas_str
The lowercase scheme name used across the SDKs (`"falcon"`, `"dilithium"`, `"sphincsp"`).
src/wallet.rs:44
↓ 1 callersFunctioncreate_checksum
(hrp: &str, data: &[u8])
src/bech32m.rs:36
↓ 1 callersFunctionestimate
Estimate fee tiers from the node's current gas price.
src/fees.rs:20
↓ 1 callersMethodeth_call
`q_call` -> read-only QVM contract call, returning the raw `0x` return data.
src/rpc.rs:144
↓ 1 callersMethodfees
Estimate fee tiers from the node's current gas price.
src/lib.rs:98
↓ 1 callersFunctionfunction_selector_hex
The function selector as a `0x`-prefixed hex string, e.g. `"0xa9059cbb"`.
src/abi.rs:27
↓ 1 callersMethodgas_price
`q_gasPrice` -> current gas price in planck.
src/rpc.rs:122
↓ 1 callersMethodget_balance
`q_getBalance` -> free balance in planck (1 QTOV = 10^18 planck).
src/rpc.rs:110
↓ 1 callersMethodget_transaction_count
`q_getTransactionCount` -> account nonce.
src/rpc.rs:116
↓ 1 callersFunctionkeygen
(scheme: Scheme, seed: &[u8; 32])
src/wallet.rs:132
↓ 1 callersFunctionnamehash
EIP-137 namehash of `name`. `namehash("")` is 32 zero bytes; otherwise, for each label right-to-left: `node = keccak256(node || keccak256(label))`.
src/qns.rs:13
↓ 1 callersMethodpublic_key_bytes
Serialized public-key size in bytes.
src/wallet.rs:35
↓ 1 callersFunctionpublic_key_to_q
Encode a public key as `QPUB1...` (Bech32m, upper-case).
src/address.rs:52
↓ 1 callersMethodruntime_version
`state_getRuntimeVersion` -> runtime identity (spec name, versions).
src/rpc.rs:134
↓ 1 callersFunctionsanitize_node_message
QWEB3RS-RPC-007: sanitize an untrusted node-supplied error message. Removes ASCII control characters (including the `ESC` used to start ANSI/VT escap
src/rpc.rs:170
↓ 1 callersMethodsign_rng
A deterministic per-signature RNG seed = `blake2_256(seed ++ msg)`. Keeps signing reproducible and free of any OS RNG dependency, while still producin
src/wallet.rs:229
↓ 1 callersFunctionto_node_address
Translate a `Q1...` account address to the `0x`-hex form the node RPC expects; any other value (e.g. a `0x` contract address) is returned unchanged.
src/address.rs:80
↓ 1 callersFunctionverify
Verify a post-quantum signature against a public key (no secret key needed).
src/wallet.rs:307
↓ 1 callersFunctionverify_checksum
(hrp: &str, data: &[u8])
src/bech32m.rs:44
Methodaccount
The account view (scheme, public key, canonical `Q` address).
src/wallet.rs:218
Functionaddresses_match_js_for_all_schemes
()
src/wallet.rs:369
Methodblock_number
`q_blockNumber` -> current best block number.
src/rpc.rs:104
Methodchain_id
`q_chainId` -> chain id.
src/rpc.rs:128
Methodcreate
Generate a fresh 24-word wallet, returning the wallet and its mnemonic phrase.
src/wallet.rs:195
Functionderives_known_address
()
src/address.rs:96
Methoddrop
(&mut self)
src/wallet.rs:175
Functionempty_is_zero
()
src/qns.rs:38
Functionevent_topic
The 32-byte event topic for a Solidity event signature, e.g. `event_topic("Transfer(address,address,uint256)")`.
src/abi.rs:33
Functionevent_topic_hex
The event topic as a `0x`-prefixed hex string.
src/abi.rs:38
Methodfinalized_head
`chain_getFinalizedHead` -> hash of the finalized head.
src/rpc.rs:139
Methodfrom_public_key
Build an account view from a public key (no secret key held). Low-level: does NOT validate the key length against the scheme — use [`Account::try_from
src/wallet.rs:91
Methodfrom_seed
Derive a wallet deterministically from a 32-byte seed.
src/wallet.rs:183
Functionfunction_selector
The 4-byte function selector for a Solidity signature, e.g. `function_selector("transfer(address,uint256)") == [0xa9, 0x05, 0x9c, 0xbb]`.
src/abi.rs:21
Methodimport_mnemonic
Derive a wallet from a BIP-39 mnemonic (same derivation as qweb3.js/py).
src/wallet.rs:189
Functionis_valid_address
Return `true` if `address` is a well-formed canonical Quantova account address.
src/address.rs:74
Functionknown_event_topic
()
src/abi.rs:54
Functionknown_selectors
()
src/abi.rs:47
Functionmain
()
examples/qns_resolve.rs:14
Functionmain
()
examples/abi_selectors.rs:14
Functionmain
()
examples/address.rs:12
Functionmain
()
examples/connect.rs:15
Functionmain
()
examples/transfer.rs:24
Functionmatches_eip137_vector
()
src/qns.rs:44
Functionmini_secret_matches_js
()
src/wallet.rs:360
Functionnamehash_hex
The namehash as a `0x`-prefixed hex string.
src/qns.rs:29
Methodnew
Create a client for an endpoint, e.g. `https://testnet.quantova.io`, `https://mainnet.quantova.io`, or `http://127.0.0.1:9933`.
src/lib.rs:86
Methodnew
Create a client for an endpoint such as `https://testnet.quantova.io` or `http://127.0.0.1:9933`.
src/rpc.rs:36
Methodnext_id
(&self)
src/rpc.rs:50
Functionnode_address_is_hex_body
()
src/address.rs:117
Methodparse
Parse a scheme name (`"falcon"`, `"dilithium"`, `"sphincsp"`/`"sphincs+"`).
src/wallet.rs:53
Methodpublic_key
The serialized public key.
src/wallet.rs:213
Functionqtov_name
()
src/qns.rs:52
Methodresolve_name
Resolve a `.qtov` name to a canonical `Q` address via the QVM registry. `registry` is the QNS registry contract address (H160 hex). Returns the resol
src/lib.rs:106
Functionroundtrips_address
()
src/address.rs:105
Methodscheme
The scheme this wallet uses.
src/wallet.rs:208
Functionscheme_parse
()
src/wallet.rs:393
Methodsend_raw_transaction
`q_sendRawTransaction` -> submit a signed transaction, returning its hash.
src/rpc.rs:149
Functionsign_verify_roundtrip_all_schemes
()
src/wallet.rs:383
Methodtry_from_public_key
Build an account view from a public key, validating its length against the scheme. Prefer this over [`Account::from_public_key`] for any externally-su
src/wallet.rs:77