Added adapted copy of CypherTransaction (from SDN) to be used there.