Skip to content

Commit

Permalink
Remove ethereum cksum_address and cksum_address_from_ecdsa
Browse files Browse the repository at this point in the history
  • Loading branch information
vklachkov committed Nov 23, 2024
1 parent 6f949e3 commit d975e99
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,28 +55,13 @@ mod chainql {
#[pymodule]
mod ethereum {
use super::*;
use chainql_core::{
ethereum::{builtin_eth_encode, eth_cksum_address, eth_cksum_address_from_ecdsa},
hex::Hex,
};
use chainql_core::{ethereum::builtin_eth_encode, hex::Hex};

/// TODO
#[pyfunction]
fn encode(address: Vec<u8>) -> PyResult<String> {
builtin_eth_encode(Hex(address)).map_err(value_error)
}

/// TODO
#[pyfunction]
fn cksum_address(address: [u8; 20]) -> String {
eth_cksum_address(address)
}

/// TODO
#[pyfunction]
fn cksum_address_from_ecdsa(pubkey: [u8; 33]) -> PyResult<String> {
eth_cksum_address_from_ecdsa(pubkey).map_err(value_error)
}
}

#[pymodule]
Expand Down

0 comments on commit d975e99

Please sign in to comment.