Header menu logo FSharp.ATProto

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 keyPair data

Full Usage: sign keyPair data

Parameters:
Returns: byte[]

Sign data with a key pair. Returns a 64-byte compact signature with low-S. The data is hashed with SHA-256 internally.

keyPair : KeyPair
data : byte[]
Returns: byte[]

verify publicKey data signature

Full Usage: verify publicKey data signature

Parameters:
    publicKey : 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.

publicKey : PublicKey
data : byte[]
signature : byte[]
Returns: bool

Type something to start searching.