@textile/hub > privateKeyBytesToString
privateKeyBytesToString() function
Encode the given privateKey's protobuf-encoded bytes to its base-32 encoded multibase representation.
Signature:
export declare function privateKeyBytesToString(bytes: Uint8Array): string;
Parameters
Parameter | Type | Description |
---|---|---|
bytes | Uint8Array | The protobuf-encoded bytes of a Private key. |
Returns:
string