These are the officially supported connectors of the primary RigidBit application. Connectors extend the functionality of RigidBit, allowing it to interface with services that are not part of the core application.
Ethereum / Ethereum Classic sync connector written in Python 3. This connector uses a local Geth daemon to broadcast transactions.
Ethereum / Ethereum Classic sync connector written in Python 3. This connector uses Infura to broadcast transactions.
Ethereum / Ethereum Classic smart contract used by the connector scripts for storing and verifying RigidBit information.
Nervos CKB (Layer 1) sync connector written in TypeScript. This connector relies on a local or remote CKB Node and CKB Indexer to build and broadcast transactions.
Usage:
- Copy the
nervosfolder and all contents to into you RigidBit connectors folder. This defaults to~/.rigidbit/connectors. - Open a terminal to the
nervosconnector folder and install all dependencies withnpm i. - Open
nervos/src/index.tsand edit your CKB Node RPC URL and CKB Indexer RPC URL. - Generate a 0x prefixed 256-bit private key. This should be a new private key for this purpose only. Do not share this key with any other application.
- Fund the corresponding Nervos address for the private key with CKBytes. A supply of 500 CKBytes should be enough to last a very long time.
- Set the CKB_PRIVATE_KEY environment variable to your private key.
- Create a
[[sync_connector]]config in your RigidBitconfig.tomlwith the following settings:
[[sync_connector]]
connector = "nervos/src/index.ts"
connector_id = "nervos-testnet"
connector_interpreter="ts-node"
connector_params = ""
connector_type = "nervos"Note: The connector_id should be set to nervos-testnet when using the Aggron Testnet, or a Devnet, and just nervos when using the Mainnet.
- Create a
[sync]config in your RigidBitconfig.tomlwith the following settings:
[[sync]]
enabled = true
connector_id = "nervos-testnet"
connector_type = "nervos"
on_demand = true
schedule = "0 0 * * * * *" # Cron style job schedule. (Default: 1 hour)
sync_at_launch = true- Save
config.tomland restart RigidBit to apply the settings.
A connector takes one of two operations:
- Store - Store a block hash in a blockchain.
- Verify - Verify a block hash in a blockchain.
{
"operation": "store",
"block_hash": "0x530a04f57109776966e4f48cc77fb19cba14eddb753c1b0bbf2fa59b2fa702f1"}
}{
"operation": "verify",
"tx_hash": "0x17fcd0215eac430d06fc880d5c0775d01a47ff43f7b73310972187c12489805e",
"block_hash": "0x530a04f57109776966e4f48cc77fb19cba14eddb753c1b0bbf2fa59b2fa702f1"
}