Skip to main content

Start Tessera

Prerequisites

Tessera installed

Start Tessera and send a payload

The following example starts the transaction manager and local enclave.

1. Generate keys

Generate a key pair in files called myKey.pub and myKey.key:

tessera -keygen -filename myKey

When prompted to enter a password, press Enter to generate an unlocked key.

Warning

This example uses unlocked keys for educational purposes only. Secure private keys appropriately in production environments.

2. Create a configuration file

Create a file called config.json and add the following properties:

Tessera configuration file
{
"useWhiteList": false,
"jdbc": {
"username": "sa",
"password": "",
"url": "jdbc:h2:./target/h2/tessera1",
"autoCreateTables": true
},
"serverConfigs": [
{
"app": "ThirdParty",
"serverAddress": "http://localhost:9081"
},
{
"app": "Q2T",
"serverAddress": "unix:/tmp/test.ipc"
},
{
"app": "P2P",
"serverAddress": "http://localhost:9001",
"sslConfig": {
"tls": "OFF"
}
}
],
"peer": [
{
"url": "http://localhost:9001"
},
{
"url": "http://localhost:9003"
}
],
"keys": {
"passwords": [],
"keyData": [
{
"privateKeyPath": "myKey.key",
"publicKeyPath": "myKey.pub"
}
]
},
"alwaysSendTo": []
}

3. Start Tessera node

tessera -configfile config.json
tip

If the command line help is displayed, enable debugging and try again.

tessera --debug -configfile config.json

4. Confirm Tessera is running

Use the upcheck method to confirm Tessera is up and running.

curl http://localhost:9081/upcheck