Class: 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.
Constructors 
new ES256Signature() 
new ES256Signature():
ES256Signature
Returns 
Methods 
__getClassname() 
__getClassname():
string
Returns 
string
Defined in 
web.d.ts:1118
free() 
free():
void
Returns 
void
Defined in 
web.d.ts:1114
toBytes() 
toBytes():
Uint8Array
Serializes the signature to a byte array.
Returns 
Uint8Array
Defined in 
web.d.ts:1131
toHex() 
toHex():
string
Formats the signature into a hex string.
Returns 
string
Defined in 
web.d.ts:1150
fromAsn1() 
staticfromAsn1(bytes):ES256Signature
Parses an ES256 signature from its ASN.1 representation.
Parameters 
• bytes: Uint8Array
Returns 
Defined in 
web.d.ts:1137
fromBytes() 
staticfromBytes(bytes):ES256Signature
Deserializes an ES256 signature from a byte array.
Throws when the byte array contains less than 64 bytes.
Parameters 
• bytes: Uint8Array
Returns 
Defined in 
web.d.ts:1126
fromHex() 
staticfromHex(hex):ES256Signature
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.
Parameters 
• hex: string
Returns 
Defined in 
web.d.ts:1145