Creates Key.
If no algorithm or parameters are specified, default values will be used. This is strongly discurraged, because it will forbid using other Key types. Therefore use it only for testing.
Hex encoded key value
Key type
Parameters of the key type
Algorithm used for key generation.
Key data.
Parameters of the algorithm.
Computes hash of message using hashing function of signature schema.
Hex encoded input data
Signing schema to use
Tests if signing schema is compatible with key type.
Signing schema to use
Serializes public key to Hex representation.
Length definition is not included.
Gets JSON representation of the Key (Public/Private).
Verifies if the signature was created with private key corresponding to supplied public key and was not tampered with using signature schema.
Hex encoded input data
Signature object
Verifies EcDSA signature of message hash. Curve name is derrived from private key.
Message hash
Hex encoded signature
Verifies EdDSA signature of message hash. Curve name is derrived from private key.
Message hash
Hex encoded signature
Verifies SM2 signature of message hash.
Only default SM2 ID is supported.
Message hash
Hex encoded signature
For internal use.
Message hash
Hex encoded signature
Signature scheme to use
Creates PublicKey from Hex representation.
String reader
Byte length of the serialized object
Generated using TypeDoc
Class to manage the public key with some userful functions.