Function: getAddressFromPublicKey()
function getAddressFromPublicKey(publicKey, shardId): Address
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
Address
The address in hex format.
Defined
@nilfoundation/niljs/src/signers/publicKey.ts:26