Deterministic signatures

Implement deterministic signatures per RFC 6979