Signing Module
ECDSA signing and verification with low-S normalization as required by AT Protocol. All signatures use compact format (64 bytes: r || s, 32 bytes each).
Functions and values
| Function or value |
Description
|
|
Sign data with a key pair. Returns a 64-byte compact signature with low-S. The data is hashed with SHA-256 internally.
|
Full Usage:
verify publicKey data signature
Parameters:
PublicKey
data : byte[]
signature : byte[]
Returns: bool
|
Verify a compact signature against data and a public key. Enforces low-S requirement. Returns false for high-S or DER-encoded signatures.
|