fromPublicKey
function fromPublicKey( bytes: Uint8Array<ArrayBufferLike>, network: Network, type: "SECP256K1" | "BLS"): | 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
Parameter | Type | Description |
---|---|---|
bytes | Uint8Array <ArrayBufferLike > | |
network | Network | |
type | "SECP256K1" | "BLS" |
Returns
| AddressSecp256k1
| AddressBLS
IAddress