Transaction: rename key to privKey and standardize type check
txbuilder