Skip to main content

Self-hosting

Self-hosting is the first-class deployment path for shyware — you run the ledger (or, for the contract-based backends, just deploy the contract once) under your own operational control. Shared community hosting is the dev-mode alternative: a zero-infrastructure quick-start for evaluation and early build-out, not the default production posture.

What "self-hosted" means to actually run depends on which chain-enforced LedgerInterface backend you pick — there is no single self-hosting story across all five, and the split below is the one that matters most: whether there's a server process to run at all.

Choosing a ledger​

Shyware's guarantees come from what its state machine refuses to write, not from any one chain, so every backend enforces the same two-list rule. Choose by who runs the network and what they need around it.

CometBFTHyperledger Fabric
Best forPublic verifiability with light operations: one operator or a small validator set publishing results anyone can checkConsortiums of identified organizations (banks, warehouses, custodians, agencies, lenders)
What you runOne binary per validator, plus the relayA Fabric network: peers, an ordering service, certificate authorities, and the chaincode
Who may participateValidators named in genesisMembers holding certificates from each organization's CA (MSP)
Who must agree to a writeOver two-thirds of validator voting powerYour endorsement policy, e.g. "the custodian and the auditor"
Fault toleranceByzantine (tolerates up to a third of validators misbehaving) out of the boxByzantine with Fabric 3's BFT ordering service; crash-only with Raft
Contract upgradesA new validator binary, rolled out by the operatorsChaincode lifecycle: each organization approves the new version
IsolationOne chain per deploymentChannels separate deployments sharing the same network
Public inspectionBuilt in: the inspector, the witness and retirement archives read CometBFT's public RPCThrough the deployment's own published endpoints
Typical embodimentsshyvoting-v1, shywire-v1shycustody-v1, shycontracts-v1, shyshares-v1

Fabric's endorsement policies are the natural home for Shyware's operator-separation requirement: the ledger operator and the reconciling authority can be different member organizations, and the network itself enforces that both sign. CometBFT gives you the same separation by who runs which component, with less to operate. If the organizations involved already run Fabric, use it; if you are standing up a ledger to publish verifiable results, start with CometBFT.

Fabric or CometBFT: you run a real validator​

ShywareLLC/core's source is not published — it is not something you clone and build yourself. Access is a commercial license issued through console.shyware.fyi: a license key gates a POST /v1/sign-poll-create-style signing capability and, separately, download access to prebuilt release binaries for your platform. This is the same trust model Firestore documents for its own self-hosting-adjacent (Firestore-admin) surfaces — you get a real contract for what the server does and exposes, not the implementation.

What you run​

BinaryPurpose
shyvoting-abciABCI state machine + BFT consensus (CometBFT embodiment)
shyvoting-apiREST API + off-chain receipt store
shygeneric-abci / shygeneric-apiDomain-agnostic two-list embodiment (CometBFT, non-voting products)
shyvoting-affinitiesOptional affinity analytics surface — not a dependency of the core runtime; include only if you operate a public analytics surface

Fabric deployments run the equivalent logic as chaincode (createPoll, dealBeacon/revealBeacon/getBeacon, and the domain-agnostic two-list operations) against a Fabric network you provision — see Fabric chaincode-as-a-service for that chain's specific operational detail. The chaincode itself ships as a deployable artifact through the same licensed distribution channel, not as source.

Getting a license​

  1. Request access at console.shyware.fyi. A free tier exists for evaluation.

  2. Your issued key authorizes: downloading release binaries/chaincode packages for your platform, and (for embodiments that need it) signing capability for operator-authorized transactions like poll creation.

  3. Your license is a signed license file: a short token naming your deployment, its tier, the chain it is bound to (your --chain-id), and an expiry date, signed by Shyware with Ed25519. Download it from console.shyware.fyi under Deployments → your deployment → Validator license. The console assigns each deployment its chain ID (shown there, e.g. acme-vote-000007); use it as your validators' --chain-id and in genesis. (The button appears for deployments whose ledger you or a third party operate.) Install the file on each validator and pass:

    shyvoting-abci … \
    --chain-id acme-vote-000007 \
    --license-file /path/to/your.license \
    --license-pubkey 47c36fd8b765f5a56e56f6f875ad86d2d1fd530599b97a50d33fa4b0f2b89600

    For Fabric, use the CHAINCODE_OPERATOR_PUBKEY_PEM-equivalent configuration for your issued credentials.

How the license is checked​

The validator verifies the file on its own disk, against Shyware's public key above, with no network call. Nothing Shyware operates has to be reachable for your chain to keep producing blocks, and Shyware cannot switch a running validator off remotely.

  • Bound to one chain. A license is refused on any chain ID but its own, so one file can't license other deployments. Chain IDs are never reused: deleting a deployment retires its chain ID. When you start a new chain, your apps should clear the old ledger's receipts and per-poll keys but keep each device's enclave enrollment, or every participant has to verify again. See When the deployment starts a new ledger.
  • Tamper-evident. Any edit to the file, such as a later expiry, breaks the signature and the validator refuses to start.
  • Expires. Because an offline license can't be revoked instantly, every license has an end date (one year by default). From 30 days before expiry the validator logs License expires soon; install a renewed --license-file once a day, and it refuses to start once the license has expired, so a lapse is visible weeks ahead. Alarm on that log line.
  • Renewal. Download a new file from the same console panel, replace the old one, and restart shyvoting-abci. State is untouched and no replay is needed.

Infrastructure​

Period-close signing is optional. An unsigned validator needs no KMS/HSM or signing IAM profile; omit --kms-key-id. The documented Terragrunt wrappers provision an optional AWS signing-enabled layout. See Infrastructure provisioning.

Operator-separation requirement​

warning

The ledger node and the reconciling authority (your off-chain linkage store) must be operated by different entities for anonymity-to-operator to hold.

The canonical ledger makes submission_id → payload public. The RA holds identity_hash → submission_id off-chain. A single organization operating both can join them without any collusion event, eliminating anonymous-to-operator assurance.

For self-hosted deployments, the valid RA options are reconcile_authority.operator: "shyware" (Shyware hosts your RA as a separate contracted service — Shyware ≠ your organization as the ledger operator) or reconcile_authority.operator: "independent_third_party". Setting operator to ledger_operator or omitting the field is rejected by assertVotingManifest at config load time.

The community-tier collapse case is the mirror image: a community-tier deployment with reconcile_authority.operator: "shyware" would mean Shyware operates both the canonical chain and the RA — equally prohibited.

See Architecture → The operator-separation requirement for the full configuration table and three-party chain analysis.

Ethereum, Algorand, or Corda: there is no server process​

You deploy that chain's contract (EthereumLedgerInterface, AlgorandLedgerInterface, CordaLedgerInterface — see Interfaces) once, then any Node.js app server calling the matching adapter can write to it. The enforcement lives in the contract on the chain, not in a process you operate. No license is required for this path — the contract source for these adapters ships with @shyware/sdk, which is published and open.

Migrating back to community hosting​

Self-hosted operators can migrate back to shared community hosting at any time using the checkpoint/export/import ceremony described in Community-to-dedicated migration. Bring Your Own Ledger does not lock you in either direction.