How devprosvn/vnprider works
Project Type and Purpose
• This is a Layer-1 blockchain implementation (“VNPrider Blockchain – Hào Khí Việt Nam”) with military-grade security, a Vietnamese-centric mnemonic system, and a novel VN-PoA consensus mechanism.
• It targets use in defense-sector contexts, exposing both RPC API endpoints and a CLI for node operators/administrators.
File Structure
• Top‐level modules:
• api: HTTP/gRPC handlers and server entrypoint (api/server.go)
• cli: command-line interface for interacting with the node (cli/commands.go)
• config: loading and validating config parameters (config/config.go)
• consensus: VN-PoA algorithm (validator.go, vnpoa.go)
• core: on-chain objects and blockchain management (block.go, blockchain.go, transaction.go, merkle.go)
• crypto: key derivation, hashing, signatures, Vietnamese mnemonic support (address.go, hash.go, signature.go, mnemonic.go)
• network: P2P message formats and peer communication (message.go, p2p.go)
• storage: persistence of blocks and world state (blockchain.go, worldstate.go)
• types: shared type definitions and interfaces
• wordlist: Vietnamese mnemonic word list
• There is also an “export” directory containing the same modules for packaging as a standalone library or separate binary (“export/main.go”), indicating this code can be consumed or built independently.
README for Additional Insights
• Confirms the modular breakdown above.
• Emphasizes “military-grade security,” “Vietnamese mnemonic,” and “VN-PoA consensus.”
• Install/run instructions point to main.go which likely initializes all modules and spins up API + P2P node.