Securely computing threshold variants of signature schemes (and more!)