Classes
ES256Signature
An ES256 Signature represents a cryptographic proof that an ES256 private key signed some data. It can be verified with the private key's public key.
Methods
__getClassname()
free()
serialize()
Serializes the signature to a byte array.
toHex()
Formats the signature into a hex string.
deserialize()
Deserializes an ES256 signature from a byte array.
Throws when the byte array contains less than 64 bytes.
| Parameter | Type |
|---|---|
| First | Uint8Array |
| Returns |
|---|
| ES256Signature |
fromAsn1()
Parses an ES256 signature from its ASN.1 representation.
| Parameter | Type |
|---|---|
| First | Uint8Array |
| Returns |
|---|
| ES256Signature |
fromHex()
Parses an ES256 signature from its hex representation.
Throws when the string is not valid hex format or when it represents less than 64 bytes.
| Parameter | Type |
|---|---|
| First | string |
| Returns |
|---|
| ES256Signature |