EncodeECSignature (open)

Encode an EC signature with r and s components into a verifiable BER-encoded signature

Syntax

LOADLIB "wh::crypto.whlib";

STRING FUNCTION EncodeECSignature(RECORD signature)

Parameters

RECORD signature

The decoded EC signature

STRING r

The EC signature's base16-encoded r component

STRING s

The EC signature's base16-encoded s component

Return value

STRING

The encoded signature, or an empty string if it could not be encoded