Project Structure

BlockBase/
β”œβ”€β”€ apps/              # Feature modules
β”œβ”€β”€ data/              # Data storage
β”‚   β”œβ”€β”€ connect/       # Connected node info
β”‚   β”œβ”€β”€ database/      # Database info
β”‚   └── signature/     # Signature info for other nodes
β”œβ”€β”€ resources/         # Keys and certificates
β”‚   β”œβ”€β”€ private_key.pem       # Node private key
β”‚   β”œβ”€β”€ public_key.pem        # Node public key
β”‚   β”œβ”€β”€ public_key_top.pem    # Top-level public key
β”‚   └── signature.yml         # Authorization certificate
β”œβ”€β”€ node.yml           # Node config (BID, etc.)
└── .env               # Project environment config

Configuration Files

node.yml

Node config file containing:

ParameterDescription
ipfs_apiIPFS API endpoint, e.g. http://127.0.0.1:5001/api/v0
pivotWhether this is a relay node. Set true to relay traffic between nodes

.env

Project environment variables:

VariableDescriptionDefault
SIGNATURE_PATHSignature file pathresources/signature.yml
TOP_VERIFY_PUBLIC_PEY_PATHTop-level verification public key pathresources/public_key_top.pem
NODE_PRIVATE_PEY_PATHNode private key pathresources/private_key.pem
IDENTITYIdentity key used for App/API accessβ€”