diff --git a/Cargo.lock b/Cargo.lock index b4752b9..977c79b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1476,7 +1476,6 @@ dependencies = [ "bech32 0.12.0", "bs58", "hex", - "ripemd 0.2.0", "serde", "serde_json", "sha2 0.11.0", @@ -1492,7 +1491,6 @@ dependencies = [ "bitcoin", "bs58", "ed25519-dalek", - "serde", "serde_json", "tinybus", "tinybus-module", diff --git a/crates/tinywallet-bus/Cargo.toml b/crates/tinywallet-bus/Cargo.toml index 1ad2a0a..74a247a 100644 --- a/crates/tinywallet-bus/Cargo.toml +++ b/crates/tinywallet-bus/Cargo.toml @@ -29,9 +29,6 @@ hex = { version = "0.4", optional = true } # validate a Bitcoin address without the `bitcoin` crate's native secp256k1 # build; see `src/address/btc.rs`. bech32 = { version = "0.12", optional = true } -# RIPEMD-160, the second half of Bitcoin's HASH160. Feeds a `Sha256` (sha2 -# 0.11) output, so the two must sit on the same `digest` line — hence 0.2. -ripemd = { version = "0.2", optional = true } # SHA-256: Bitcoin's HASH160, Tron's base58check checksum, and the Tron txid. sha2 = { version = "0.11", optional = true } # Keccak-256, the hash EIP-55 checksums and EIP-712 struct hashes are defined @@ -62,7 +59,7 @@ serde_json = "1" default = ["btc", "evm", "solana", "tron", "keccak", "net", "asset", "wire", "eip712", "abi", "tx-codec"] # Bitcoin address parsing and validation. Dependency-light on purpose: base58 # via `bs58` (already here for Solana and Tron) and segwit via `bech32`. -btc = ["dep:bs58", "dep:bech32", "dep:ripemd", "dep:sha2"] +btc = ["dep:bs58", "dep:bech32", "dep:sha2"] # Serde derives on the crate's core types (today `Chain`). A named gate rather # than relying on `dep:serde` being implied, because `#[cfg(feature = "serde")]` # on the enum has to name something that actually exists. diff --git a/crates/tinywallet-module/Cargo.toml b/crates/tinywallet-module/Cargo.toml index 64c596b..888a326 100644 --- a/crates/tinywallet-module/Cargo.toml +++ b/crates/tinywallet-module/Cargo.toml @@ -43,7 +43,6 @@ tinybus-module = { version = "0.1.0", path = "../../vendor/tinybus/crates/tinybu tokio = { version = "1", features = ["macros", "rt-multi-thread"] } # Method arguments and returns are the `tinywallet::wire` contract, decoded from # and encoded to JSON frames. -serde = { version = "1", features = ["derive"] } serde_json = "1" # Base58 for a Solana transaction id, which is its 64-byte signature. The # library's own encoder takes a 32-byte address, so it does not fit here.