Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Corelib
pub fn public_key_point_to_eth_address, +Secp256Trait, +Secp256PointTrait, >( public_key_point: Secp256Point, ) -> EthAddress
public_key_point
use starknet::eth_signature::public_key_point_to_eth_address; use starknet::secp256k1::Secp256k1Point; use starknet::secp256_trait::Secp256Trait; let public_key: Secp256k1Point = Secp256Trait::secp256_ec_get_point_from_x_syscall( 0xa9a02d48081294b9bb0d8740d70d3607feb20876964d432846d9b9100b91eefd, false, ) .unwrap() .unwrap(); let eth_address = public_key_point_to_eth_address(public_key); assert!(eth_address == 0x767410c1bb448978bd42b984d7de5970bcaf5c43.try_into().unwrap());
Was this page helpful?