Example Configuration File

Sample MPC Node Configuration File

This file contains explanations of each configuration and may serve as a summary of many of the topics discussed earlier in the Builder Vault User Manual.

node_config.toml

# This is an example TSM node configuration file.
#
# Commented sections mean that the feature is either disabled or used with default values.
# Uncommented values are mandatory.

# Defines the operating mode of the TSM node.
[Mode]
  # An embedded node does not listen on any ports and is used when integrating the TSM node directly in an application.
  Embedded = false

# General configuration for MPC operations.
[MPC]
  PlayerCount = 0
  Threshold = 0
  ConnectionTimeout = "10s"
  SessionTimeout = "3m"
  MaxPendingSessions = 10000

# Configuration for the local player
[Player]
  Index = 0
  PrivateKey = "BA3E64=="

# The following is a list of players in the TSM with a static public key.
[Players.1]
  PublicKey = "BA3E64=="
  Address = "tcp://player1:9000?connectionPoolSize=2&connectionLifetime=1h&disableMultiplexing=false&symmetricConnection=false"

# User authentication settings.
[Authentication]
  TokenLifetime = "5m"

# Database connection configuration.
[Database]
  DriverName = "sqlite3"
  DataSourceName = "/tmp/tsmdb"
  EncryptorMasterPassword = "ENCRYPTION_KEY"

# Server accepting connections from the SDK.
[SDKServer]
  Port = 8080

# General point for managing the node.
[ManagementServer]
  Port = 14401

# Configures system logging for the TSM node.
[Log]
  Level = "INFO"
  Format = "TEXT"

This configuration file serves as a template for setting up a TSM node with various parameters and settings explained within it.