encodeIotaPrivateKey
@iota/iota-sdk / cryptography / encodeIotaPrivateKey
Function: encodeIotaPrivateKey()
encodeIotaPrivateKey(
bytes,scheme):string
Defined in: sdk/typescript/src/cryptography/keypair.ts:132
This returns a Bech32 encoded string starting with iotaprivkey,
encoding 33-byte flag || bytes for the given the 32-byte private
key and its signature scheme.
Parameters
bytes
Uint8Array
scheme
Returns
string