Skip to content
Snippets Groups Projects
Select Git revision
  • 390ae27ddcc37d7171077afe83819c0f58c39e76
  • master default protected
2 results

provider

jbhusson's avatar
Jonah Husson authored
390ae27d
History

Shielded Help Demo

Provider Server

This repo demonstrates the use of the restlike API to create a provider server, where users can anonymously communicate with a shielded service provider.

Setup & Execution

To start the server, download or compile the appropriate binary for your system, set up a config file and run the following command:

./provider.binary -c path/to/config.yaml

This will start the provider server & output a contact file containing the server's identity to the configured path.

Compilation Steps:

go mod vendor -v
go mod tidy
# Linux 64 bit binary
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags '-w -s' -o provider.linux64 main.go
# Windows 64 bit binary
GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go build -ldflags '-w -s' -o provider.win64 main.go
# Windows 32 big binary
GOOS=windows GOARCH=386 CGO_ENABLED=0 go build -ldflags '-w -s' -o release/provider.win32 main.go
# Mac OSX 64 bit binary (intel)
GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 go build -ldflags '-w -s' -o release/provider.darwin64 main.go

Example Config

# ==================================
# Shielded Provider Server Configuration
# ==================================

# START YAML ===
# Verbose logging
logLevel: 1
# Path to log file
log: "/cmix/provider.log"

# Provider name
name: ""

# Path to NDF
ndf: ""

# Storage path and password
storageDir: ""
storagePass: ""

# Contact output path
contact: ""

# === END YAML