Demo merge of libsecp256k1 and deterministic signing

Includes #5256, #5227 and #5220.