The type of the identities' private key are currently many: bigint, number, string, Buffer etc. This may generate confusion and it makes the process of storing private keys harder, as devs will need to convert values more often.
One type only could be supported instead: string, which may be either text (e.g. a password/secret) or a hexadecimal string (without 0x/0X as a prefix). This would also make all the Identity attributes the same type.
Description:
The type of the identities' private key are currently many: bigint, number, string, Buffer etc. This may generate confusion and it makes the process of storing private keys harder, as devs will need to convert values more often.
One type only could be supported instead:
string
, which may be either text (e.g. a password/secret) or a hexadecimal string (without0x
/0X
as a prefix). This would also make all the Identity attributes the same type.