Function: getAddressFromPublicKey()
function getAddressFromPublicKey(publicKey, shardId): 0x${string}
Returns the address from the public key.
Parameters
Parameter | Type | Description |
---|---|---|
|
| The public key in hex format |
|
| 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