Skip to content

Latest commit

 

History

History
46 lines (29 loc) · 1.83 KB

README.md

File metadata and controls

46 lines (29 loc) · 1.83 KB

AltCoinSamples

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.

Programs

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.

Building & Dependencies

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.

CI Build Status

All code is built on check-in to the master branch.

Build status AppVeyor builds the C# implementation.

Build Status Travis-CI builds the Ruby implementation.