Sign transactions with data

Test added and apparently already working