Blockchains

A blockchain record in BlocWatch holds metadata and data for your blockchain network or application. When registering a blockchain, you control how your data is masked and what pieces of your data, or just metadata, are sent to BlocWatch for analysis.

Connecting

During initial blockchain registration, you will need to provide details on how the BlocWatch agent will connect and authenticate to your blockchain. This will include hostnames, ports and credentials (certificates, private keys, etc).

Data Collection

The BlocWatch agent will collect data as configured for each blockchain. The agent is a component that must be deployed into a network with access to both the blockchain and to BlocWatch.

Data Masking

When registering a new blockchain, you select what pieces of data the BlocWatch agent will send to BlocWatch for analysis. When registering your blockchain, select from the following options:

  1. Transaction Metadata:

    • Include: Collect transactions and metadata.
    • Exclude: Do not collect transactions and metadata.
  2. Chaincode Data:

    • Include: Collect the data as it appears on the blockchain.
    • Replace: Perform a regular expression replacement on each piece of data before sending it to BlocWatch.
    • Hash: Hash each piece of data before sending it to BlocWatch.
    • Exclude: Don't include the piece of data in uploads to BlocWatch.

    BlocWatch allows configuration of collection and masking of chaincode arguments, chaincode return values, and chaincode events.

    During blockchain registration, you configure default handling for chaincode data. After a blockchain is initially registered, you can edit the blockchain data collection to alter how each piece of chaincode data is handled per chaincode or per chaincode argument. In this way, you can exclude most chaincode arguments by default, but still upload full data for a few specific arguments (e.g., just for the arguments you want to use in BlocWatch alerts).

    For each key or value read or written in a blockchain transaction, you have the following options:

  3. Read/Writes:

    • Include: Collect the data as it appears on the blockchain.
    • Replace: Perform a regular expression replacement on each piece of data before sending it to BlocWatch.
    • Hash: Hash each piece of data before sending it to BlocWatch.
    • Exclude: Don't include the piece of data in uploads to BlocWatch.