Web3S_Demo > Web 3S Crypto Function Library > CreateCryptographicSignature

CreateCryptographicSignature

Creates a cryptographic signature on the data using a PEM-encoded key.

Inputs

In
Exec

Data
Array of Bytes

data to be cryptographically signed

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.

Message Digest
EWeb3S_MessageDigestAlgorithm Enum

Message Digest algorithm used for hashing the data before signing

Outputs

Out
Exec

Error Message
String

error message in case of failure

Signature
Array of Bytes

created signature in case of success

Success
Boolean

True if signing was successful, false otherwise