avoid type conversions by storing the repository's private key as a byte array
don't duplicate storing the private key. Keep it on the rsa struct only.