Introduce transaction.T's Valid() function

Will be used by the node software to determine transaction's validity