@celo/utils"packages/sdk/utils/src/address"

Module: "packages/sdk/utils/src/address"

Index

References

Functions

References

Address

Address:


NULL_ADDRESS

NULL_ADDRESS:


bufferToHex

bufferToHex:


ensureLeading0x

ensureLeading0x:


eqAddress

eqAddress:


findAddressIndex

findAddressIndex:


getAddressChunks

getAddressChunks:


hexToBuffer

hexToBuffer:


isHexString

isHexString:


isValidChecksumAddress

isValidChecksumAddress:


mapAddressListDataOnto

mapAddressListDataOnto:


mapAddressListOnto

mapAddressListOnto:


normalizeAddress

normalizeAddress:


normalizeAddressWith0x

normalizeAddressWith0x:


toChecksumAddress

toChecksumAddress:


trimLeading0x

trimLeading0x:

Functions

Const isValidAddress

isValidAddress(input: string): boolean

Defined in packages/sdk/utils/src/address.ts:46

Parameters:

Name Type
input string

Returns: boolean


Const isValidPrivateKey

isValidPrivateKey(privateKey: string): boolean

Defined in packages/sdk/utils/src/address.ts:43

Parameters:

Name Type
privateKey string

Returns: boolean


Const privateKeyToAddress

privateKeyToAddress(privateKey: string): string

Defined in packages/sdk/utils/src/address.ts:32

Parameters:

Name Type
privateKey string

Returns: string


Const privateKeyToPublicKey

privateKeyToPublicKey(privateKey: string): string

Defined in packages/sdk/utils/src/address.ts:35

Parameters:

Name Type
privateKey string

Returns: string


Const publicKeyToAddress

publicKeyToAddress(publicKey: string): string

Defined in packages/sdk/utils/src/address.ts:38

Parameters:

Name Type
publicKey string

Returns: string