fromPublicKey
fromPublicKey(
bytes
,network
,type
):AddressSecp256k1
|AddressBLS
Defined in: packages/iso-filecoin/src/address.js:272
Create address from public key bytes Only for f1 SECP256K1 and f3 BLS
Parameters
Section titled “Parameters”Parameter | Type |
---|---|
bytes | Uint8Array <ArrayBufferLike > |
network | Network |
type | "SECP256K1" | "BLS" |
Returns
Section titled “Returns”IAddress