add encode_rfc6979_signature and refactor tests to use it
7 files changed