Web3S_Demo > Web 3S Crypto Function Library > Convert Public Key (Raw EC -> PEM)

Convert Public Key (Raw EC -> PEM)

Converts a raw EC public key into a PEM-encoded public key.

Inputs

In
Exec

Public Key (Raw EC)
Array of Bytes

raw EC public key data

EC Key Type
EWeb3S_CryptoEcKeyType Enum

Elliptic curve-based key type

Outputs

Out
Exec

Error Message
String

if failed, error message

Public Key (P EM)
Array of Bytes

if successful, raw, PEM-encoded public key data

Success
Boolean

True if conversion was successful, false otherwise