Skip to main content

Function: getAddressFromPublicKey()

function getAddressFromPublicKey(publicKey, shardId): 0x${string}

Returns the address from the public key.

Parameters

ParameterTypeDescription

publicKey

0x${string}

The public key in hex format

shardId

number

The ID of the shard where the address is located.

Returns

0x${string}

The address in hex format.

Defined

@nilfoundation/niljs/src/signers/publicKey.ts:26