Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ZeroAddress = common.HexToAddress("0x0000000000000000000000000000000000000000") EthAddressRegex = regexp.MustCompile(ethAddressRegexString) )
Functions ¶
func IsZeroAddress ¶
IsZeroAddress validate if it's a 0 address
func MaskAddress ¶ added in v0.8.0
MaskAddress masks the middle part of an Ethereum address with a number of masked characters and returns the masked address. The number of visible characters must be even. The number of masked characters must be greater than 0. The masked character can be any character. @param address: The Ethereum address to mask @param numVisibleChars: The number of visible characters to keep at the start and end of the address @param maskedCharacter: The character to use for masking the middle part of the address @return The masked address and error if any
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.