Add compression support to both EncodePrivateKey and DecodePrivateKey