@textile/hub > PrivateKey > (constructor)
PrivateKey.(constructor)
Constructor
Signature:
constructor(secretKey: Uint8Array, type?: string);
Parameters
| Parameter | Type | Description | 
|---|---|---|
| secretKey | Uint8Array | Raw secret key (32-byte secret seed in ed25519) | 
| type | string | Public-key signature system name. (currently only ed25519 keys are supported) |