create
function create(type: "SECP256K1" | "BLS", network: Network): { address: IAddress; path: string; privateKey: Uint8Array; publicKey: Uint8Array; type: "SECP256K1" | "BLS";}
Defined in: packages/iso-filecoin/src/wallet.js:156
Create account
Parameters
Parameter | Type | Description |
---|---|---|
type | "SECP256K1" | "BLS" | |
network | Network |
Returns
{ address: IAddress; path: string; privateKey: Uint8Array; publicKey: Uint8Array; type: "SECP256K1" | "BLS";}
address
address: IAddress;
path?
optional path: string;
Derivation path - only for HD wallets
privateKey
privateKey: Uint8Array;
Private key - only for RAW and HD wallets
publicKey
publicKey: Uint8Array;
type
type: "SECP256K1" | "BLS";