Server Node
Silent Shard Duo Server SDK Documentation
Last updated
Silent Shard Duo Server SDK Documentation
Last updated
Server Node is the server participant in the 2-party setup. Once the user authenticates with the Admin and obtains a user token user and server can start the key generation phase in order to further sign messages.
To give some intuition about how an MPC action looks like, here's an example of how key generation takes place for ECDSA. The flow is similar for other operations and signing algorithms (EdDSA).
Communication with the Server Node is done with Silent Shard Duo JS SDK.
The server is provided as a docker image: rhonstin/sigpair:v2
The sigpair node instance needs a connection to a Postgres Database. The database is used to manage the keyshares and user information.
An example docker-compose file to run the node:
Here we use a sample Postgres DB, in a real scenario the company will provide the DB url and credentials.
PGHOST, PGUSER, PGDATABASE, PGPASSWORD
are Postgres related variables used to connect to the database.
ADMIN_KEY
: This is shared secret between the admin and the node. It MUST be kept secret and managed securely. This is used as the JWT key to verify claims signed by the Sigpair Admin.