Web3S_Demo > Web 3S Crypto Function Library > ExtractPublicKey

ExtractPublicKey

Extracts the public key from a private key.

Inputs

In
Exec

Private Key (P EM)
Array of Bytes

raw, PEM-encoded private key data

Password
String

password for decrypting a pass-phrase encrypted PEM key. For unencrypted keys leave empty.

Outputs

Out
Exec

Error Message
String

error message in case of failure

Public Key (P EM)
Array of Bytes

if successful, raw, PEM-encoded public key data

Success
Boolean

True if extraction was successful, false otherwise