Backport changes to ECDSA from fullnode

Also, adds copyright notices to affected files