MCPcopy Index your code
hub / github.com/brentongunning/rust-sv

github.com/brentongunning/rust-sv @v0.2.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.2.2 ↗ · + Follow
445 symbols 1,054 edges 54 files 156 documented · 35%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Rust-SV

A library to build Bitcoin SV applications and infrastructure in Rust.

Documentation

Features

  • P2P protocol messages (construction and serialization)
  • Address encoding and decoding
  • Transaction signing
  • Script evaluation
  • Node connections and basic message handling
  • Wallet key derivation and mnemonic parsing
  • Mainnet and testnet support
  • Various Bitcoin primitives
  • Genesis upgrade support

Installation

Add sv = "0.2" to Cargo.toml

Known limitations

This library should not be used for consensus code because its validation checks are incomplete.

License

rust-sv is licensed under the MIT license.

Extension points exported contracts — how you extend this code

Payload (Interface)
Message payload that is writable to bytes [14 implementers]
src/messages/message.rs
Observer (Interface)
Observes an event of type T [6 implementers]
src/util/rx.rs
Checker (Interface)
Checks that external values are correct in the script [3 implementers]
src/script/checker.rs
PeerFilter (Interface)
Filters peers based on their version information before connecting [1 implementers]
src/peer/peer.rs
Serializable (Interface)
An object that may be serialized and deserialized [27 implementers]
src/util/serdes.rs
Observable (Interface)
Event publisher that may be subscribed to [2 implementers]
src/util/rx.rs

Core symbols most depended-on inside this repo

fail
called by 214
src/script/interpreter.rs
pass
called by 190
src/script/interpreter.rs
read
called by 71
src/util/var_int.rs
append_data
called by 51
src/script/mod.rs
encode_num
called by 48
src/script/stack.rs
write
called by 48
src/messages/message.rs
pop_bigint
called by 42
src/script/stack.rs
check_stack_size
called by 42
src/script/interpreter.rs

Shape

Method 221
Function 166
Class 46
Enum 6
Interface 6

Languages

Rust100%

Modules by API surface

src/wallet/extended_key.rs32 symbols
src/peer/peer.rs28 symbols
src/script/interpreter.rs23 symbols
src/script/checker.rs16 symbols
src/util/rx.rs14 symbols
src/util/bits.rs14 symbols
src/messages/merkle_block.rs14 symbols
src/util/hash256.rs13 symbols
src/util/bloom_filter.rs12 symbols
src/transaction/p2pkh.rs12 symbols
src/script/stack.rs12 symbols
src/util/latch.rs11 symbols

For agents

$ claude mcp add rust-sv \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact