A crypto currency limit order book implementation done in Kotlin using Springboot with unit tests done with junit 5.
Please install java jdk 17 or later
For Ubuntu/Debian-based distributions:
sudo apt update
sudo apt install default-jdk
Create security certs in used to create JWT tokens
-
Create a direcory called certs inside your resources directory, and execute the following commands
-
Generate private key with name keypair.pem
openssl genrsa -out keypair.pem 2048
-
Extract the public key from the RSA private key file keypair.pem
openssl rsa -in keypair.pem -pubout -out public.pem
-
Convert private key keypair.pem to PKCS8 format and save as private.pem
openssl pkcs8 -topk8 -inform PEM -outform PEM -nocrypt -in keypair.pem -out private.pem
Please use the following users for testing
username: Satoshi
password: password
username: Vitalik
password: password
Thanks to VALR for the challenge