addressutil

package
v1.5.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2024 License: LGPL-3.0 Imports: 4 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EtherAddressToCfxAddress

func EtherAddressToCfxAddress(ethAddr common.Address, isContract bool, networkID uint32) cfxaddress.Address

EtherAddressToCfxAddress converts an ethereum address to a cfx address, it will change top 4 bit of eth address to 0b0001

func PubkeyToAddress

func PubkeyToAddress(publicKey string, networkId uint32) (cfxaddress.Address, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL