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

Convert Public Key (PEM -> Raw EC)

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

Inputs

In
Exec

Public Key (P EM)
Array of Bytes

PEM-encoded public key data

Outputs

Out
Exec

Error Message
String

if failed, error message

Public Key (Raw EC)
Array of Bytes

if successful, raw EC public key data

EC Key Type
EWeb3S_CryptoEcKeyType Enum

if successful, Elliptic curve-based key type

Success
Boolean

True if conversion was successful, false otherwise