Crystal structures of an E1-E2-ubiquitin thioester mimetic reveal molecular mechanisms of transthioesterification.