This page uses machine translation from English, which may contain errors or unclear language. For the most accurate information, please see the original English version. Some content may be in the original English due to frequent updates. Help us improve this page's translation by joining our effort on Crowdin. (Crowdin translation page, Contributing guide)
Address
Utils for converting public address, public key.
Import the getCompressedPublicKey from @kaiachain/ethers-ext packages
From an Account
object you can get the public address with address_from_private_key
or get the compressed public key with compressed_key
From x
and y
coordinates of an uncompressed public key, you can get the public key and the address using compressed_key_from_xy
and compressed_key_and_address_from_xy