Refactor transaction class

For consistency, `PrivateKey` instead of `Privkey`