First app
A step-by-step tutorial that will guide you through creating your first app using PrivMX Endpoint C++ client with PrivMX Bridge.
PrivMX Bridge
To proceed with this tutorial, you should already have your PrivMX Bridge Server up and running. If you don't, you can find step-by-step instructions on quick start page.
Initial Assumptions
All the values below like BRIDGE_URL
, SOLUTION_ID
, CONTEXT_ID
should be replaced by the ones corresponding to your PrivMX Bridge instance.
The private keys here are for demonstration purposes only.
Normally, they should be kept separately by each user and stored in a safe place,
or generated from a password (see the derivePrivateKey()
method in the Crypto API)
The initial assumptions for all the code examples below are as follows:
Create First Client App
First, you have to create a Conan config file in the root dir of your project:
conanfile.txt
Next, add the PrivMX Endpoint library dependency to your CMakeLists.txt:
CMakeLists.txt
Now that you have configured the foundation of the application project, you can perform a simple operation using the PriVMX Endpoint library's Crypto API. Let's generate a pair of keys for the user.
main.cpp
Build Project
Run Project
We use cookies on our website. We use them to ensure the proper functioning of the site and, if you agree, for purposes we set, such as analytics or marketing.