@sodot/sodot-web-sdk • Docs
@sodot/sodot-web-sdk / EcdsaSignature
An ECDSA signature, generated by the ECDSA.sign function.
You can get the DER encoded signature via the der property,
or the r,s,v form via the r, s and v properties.
new EcdsaSignature(
r,s,v,DERencoding):EcdsaSignature
• r: Uint8Array<ArrayBufferLike>
The r component of the signature (32 bytes)
• s: Uint8Array<ArrayBufferLike>
The s component of the signature (32 bytes)
• v: number
The v component of the signature (integer, with possible values 27/28/29/30)
• DERencoding: Uint8Array<ArrayBufferLike>
A new EcdsaSignature object
If the r, s or v values are invalid.
readonlyder:Uint8Array<ArrayBufferLike>
readonlyr:Uint8Array<ArrayBufferLike>
readonlys:Uint8Array<ArrayBufferLike>
readonlyv:number
staticfromBuffer(expandedSignature):EcdsaSignature
• expandedSignature: string | Uint8Array<ArrayBufferLike>