AltCoinSamples is a collection of sample programs to demonstrate some of the concepts behind cryptocurrencies.
Two implementations are available:
- C#/WPF: A Visual Studio solution is in the AltCoinSamples directory.
- Ruby: Scripts are in the Ruby directory.
Both include help files in Markdown format.
Hashing: Demonstrates the concept of hashing. It will calculate the SHA-2 hashes of two input strings and compare them for data and hash equality.
Mining: Simulates the mining process. It solves a set number of blocks conforming to a set target using the MD5 hashing algorithm.
An MSBuild script is provided to automate the build process. It has been optimised for creating the installer but can be used for any component including (MSBuild target shown in brackets):
- Building the C#/WPF apps (WpfApps).
- Checking the Ruby scripts for syntax errors (RubyScripts). Requires Ruby and Rake.
- Creating the HTML help files from Markdown (HelpFiles). Requires Node.js and NPM.
- Building the installer (Installer). Requires Inno Setup.
To run the whole build process run the following at a Visual Studio command prompt:
msbuild build.proj /t:All
To clean the build files, replace /t:All
with /t:Clean
. To clean a build step, add Clean
to the start of its target name.
All code is built on check-in to the master
branch.