create projects
ADD
.gitattributes
+###############################################################################
+# Set default behavior to automatically normalize line endings.
+###############################################################################
+* text=auto
+
+###############################################################################
+# Set default behavior for command prompt diff.
+#
+# This is need for earlier builds of msysgit that does not have it on by
+# default for csharp files.
+# Note: This is only used by command line
+###############################################################################
+#*.cs diff=csharp
+
+###############################################################################
+# Set the merge driver for project and solution files
+#
+# Merging from the command prompt will add diff markers to the files if there
+# are conflicts (Merging from VS is not affected by the settings below, in VS
+# the diff markers are never inserted). Diff markers may cause the following
+# file extensions to fail to load in VS. An alternative would be to treat
+# these files as binary and thus will always conflict and require user
+# intervention with every merge. To do so, just uncomment the entries below
+###############################################################################
+#*.sln merge=binary
+#*.csproj merge=binary
+#*.vbproj merge=binary
+#*.vcxproj merge=binary
+#*.vcproj merge=binary
+#*.dbproj merge=binary
+#*.fsproj merge=binary
+#*.lsproj merge=binary
+#*.wixproj merge=binary
+#*.modelproj merge=binary
+#*.sqlproj merge=binary
+#*.wwaproj merge=binary
+
+###############################################################################
+# behavior for image files
+#
+# image files are treated as binary by default.
+###############################################################################
+#*.jpg binary
+#*.png binary
+#*.gif binary
+
+###############################################################################
+# diff behavior for common document formats
+#
+# Convert binary document formats to text before diffing them. This feature
+# is only available from the command line. Turn it on by uncommenting the
+# entries below.
+###############################################################################
+#*.doc diff=astextplain
+#*.DOC diff=astextplain
+#*.docx diff=astextplain
+#*.DOCX diff=astextplain
+#*.dot diff=astextplain
+#*.DOT diff=astextplain
+#*.pdf diff=astextplain
+#*.PDF diff=astextplain
+#*.rtf diff=astextplain
+#*.RTF diff=astextplain

ADD
.gitignore
+## Ignore Visual Studio temporary files, build results, and
+## files generated by popular Visual Studio add-ons.
+
+# User-specific files
+*.suo
+*.user
+*.userosscache
+*.sln.docstates
+
+# User-specific files (MonoDevelop/Xamarin Studio)
+*.userprefs
+
+# Build results
+[Dd]ebug/
+[Dd]ebugPublic/
+[Rr]elease/
+[Rr]eleases/
+[Xx]64/
+[Xx]86/
+[Bb]uild/
+bld/
+[Bb]in/
+[Oo]bj/
+
+# Visual Studio 2015 cache/options directory
+.vs/
+# Uncomment if you have tasks that create the project's static files in wwwroot
+#wwwroot/
+
+# MSTest test Results
+[Tt]est[Rr]esult*/
+[Bb]uild[Ll]og.*
+
+# NUNIT
+*.VisualState.xml
+TestResult.xml
+
+# Build Results of an ATL Project
+[Dd]ebugPS/
+[Rr]eleasePS/
+dlldata.c
+
+# DNX
+project.lock.json
+artifacts/
+
+*_i.c
+*_p.c
+*_i.h
+*.ilk
+*.meta
+*.obj
+*.pch
+*.pdb
+*.pgc
+*.pgd
+*.rsp
+*.sbr
+*.tlb
+*.tli
+*.tlh
+*.tmp
+*.tmp_proj
+*.log
+*.vspscc
+*.vssscc
+.builds
+*.pidb
+*.svclog
+*.scc
+
+# Chutzpah Test files
+_Chutzpah*
+
+# Visual C++ cache files
+ipch/
+*.aps
+*.ncb
+*.opendb
+*.opensdf
+*.sdf
+*.cachefile
+*.VC.db
+
+# Visual Studio profiler
+*.psess
+*.vsp
+*.vspx
+*.sap
+
+# TFS 2012 Local Workspace
+$tf/
+
+# Guidance Automation Toolkit
+*.gpState
+
+# ReSharper is a .NET coding add-in
+_ReSharper*/
+*.[Rr]e[Ss]harper
+*.DotSettings.user
+
+# JustCode is a .NET coding add-in
+.JustCode
+
+# TeamCity is a build add-in
+_TeamCity*
+
+# DotCover is a Code Coverage Tool
+*.dotCover
+
+# NCrunch
+_NCrunch_*
+.*crunch*.local.xml
+nCrunchTemp_*
+
+# MightyMoose
+*.mm.*
+AutoTest.Net/
+
+# Web workbench (sass)
+.sass-cache/
+
+# Installshield output folder
+[Ee]xpress/
+
+# DocProject is a documentation generator add-in
+DocProject/buildhelp/
+DocProject/Help/*.HxT
+DocProject/Help/*.HxC
+DocProject/Help/*.hhc
+DocProject/Help/*.hhk
+DocProject/Help/*.hhp
+DocProject/Help/Html2
+DocProject/Help/html
+
+# Click-Once directory
+publish/
+
+# Publish Web Output
+*.[Pp]ublish.xml
+*.azurePubxml
+
+# TODO: Un-comment the next line if you do not want to checkin
+# your web deploy settings because they may include unencrypted
+# passwords
+#*.pubxml
+*.publishproj
+
+# NuGet Packages
+*.nupkg
+# The packages folder can be ignored because of Package Restore
+**/packages/*
+# except build/, which is used as an MSBuild target.
+!**/packages/build/
+# Uncomment if necessary however generally it will be regenerated when needed
+#!**/packages/repositories.config
+# NuGet v3's project.json files produces more ignoreable files
+*.nuget.props
+*.nuget.targets
+
+# Microsoft Azure Build Output
+csx/
+*.build.csdef
+
+# Microsoft Azure Emulator
+ecf/
+rcf/
+
+# Windows Store app package directory
+AppPackages/
+BundleArtifacts/
+
+# Visual Studio cache files
+# files ending in .cache can be ignored
+*.[Cc]ache
+# but keep track of directories ending in .cache
+!*.[Cc]ache/
+
+# Others
+ClientBin/
+[Ss]tyle[Cc]op.*
+~$*
+*~
+*.dbmdl
+*.dbproj.schemaview
+*.pfx
+*.publishsettings
+node_modules/
+orleans.codegen.cs
+
+# RIA/Silverlight projects
+Generated_Code/
+
+# Backup & report files from converting an old project file
+# to a newer Visual Studio version. Backup files are not needed,
+# because we have git ;-)
+_UpgradeReport_Files/
+Backup*/
+UpgradeLog*.XML
+UpgradeLog*.htm
+
+# SQL Server files
+*.mdf
+*.ldf
+
+# Business Intelligence projects
+*.rdl.data
+*.bim.layout
+*.bim_*.settings
+
+# Microsoft Fakes
+FakesAssemblies/
+
+# GhostDoc plugin setting file
+*.GhostDoc.xml
+
+# Node.js Tools for Visual Studio
+.ntvs_analysis.dat
+
+# Visual Studio 6 build log
+*.plg
+
+# Visual Studio 6 workspace options file
+*.opt
+
+# Visual Studio LightSwitch build output
+**/*.HTMLClient/GeneratedArtifacts
+**/*.DesktopClient/GeneratedArtifacts
+**/*.DesktopClient/ModelManifest.xml
+**/*.Server/GeneratedArtifacts
+**/*.Server/ModelManifest.xml
+_Pvt_Extensions
+
+# LightSwitch generated files
+GeneratedArtifacts/
+ModelManifest.xml
+
+# Paket dependency manager
+.paket/paket.exe
+
+# FAKE - F# Make
+.fake/
+Wallets
+/src/HiddenWallet/Config.json

ADD
HiddenWallet/HiddenWallet.API/HiddenWallet.API.csproj
+<Project Sdk="Microsoft.NET.Sdk.Web">
+
+ <PropertyGroup>
+ <TargetFramework>netcoreapp1.1</TargetFramework>
+ </PropertyGroup>
+
+ <ItemGroup>
+ <Folder Include="wwwroot\" />
+ </ItemGroup>
+ <ItemGroup>
+ <PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.0.0" />
+ <PackageReference Include="Microsoft.AspNetCore" Version="1.1.1" />
+ <PackageReference Include="Microsoft.AspNetCore.Mvc" Version="1.1.2" />
+ <PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="1.1.1" />
+ </ItemGroup>
+ <ItemGroup>
+ <DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="1.0.0" />
+ </ItemGroup>
+
+</Project>

ADD
HiddenWallet/HiddenWallet.GUI/HiddenWallet.GUI.csproj
+<Project Sdk="Microsoft.NET.Sdk">
+
+ <PropertyGroup>
+ <OutputType>Exe</OutputType>
+ <TargetFramework>netcoreapp1.1</TargetFramework>
+ </PropertyGroup>
+
+</Project>
\ No newline at end of file

ADD
README.md
+The code is proof of concept. Use it with caution.
+
+# Hidden Wallet
+Easy-to-use, instant, anonymous Bitcoin wallet. (None of them are true at this point, but that's the goal.)
+
+## Privacy
+
+The software should gravitate towards complete anonymity keeping up and build on the newest technological developments rapidly happening in the space.
+
+## Intro
+
+The core of this software is a sample Bitcoin wallet, I wrote: [DotNetWallet](https://github.com/nopara73/DotNetWallet/) - a cross platform Bitcoin wallet implementation in .NET Core for a CodeProject tutorial: [Build a Bitcoin wallet in C#](https://www.codeproject.com/script/Articles/ArticleVersion.aspx?waid=214550&aid=1115639)
+
+The wallet might also will turn out to be the first iteration of a dedicated wallet for a Bitcoin privacy improvement technique, called [TumbleBit](https://github.com/BUSEC/TumbleBit). TumbleBit will be integrated through [NTumbleBit](https://github.com/NTumbleBit/NTumbleBit).
+
+The wallet can communicate with the network through HTTP API and paved the way for a full node integration.
+It has a Command Line Interface.
+
+##How to use it
+The app is cross-platform, you can try it in any OS. You only need to get [dotnet core](https://www.microsoft.com/net/core).
+After you acquired dotnet core, get and initialize HiddenWallet:
+
+```
+git clone https://github.com/nopara73/HiddenWallet
+cd HiddenWallet/src/HiddenWallet/
+dotnet restore
+dotnet run
+```
+
+It will generate your configuration file, called `Config.json`, then open it:
+
+```
+gedit Config.json
+```
+
+Default config looks like this:
+
+```
+{
+ "DefaultWalletFileName": "Wallet.json",
+ "Network": "Main",
+ "ConnectionType": "Http",
+ "CanSpendUnconfirmed": "False"
+}
+```
+
+**"Network"** can be `"Main"` or `"TestNet"`. Change to testnet for the shake of practice.
+**"ConnectionType"** can be `"Http"` or `"FullNode"`. Full node mode is not implemented.
+**"CanSpendUnconfirmed"** can be `"False"` or `"True"`. Change to "True", so you can play around with it without waiting for confirmations.
+
+###Walkthrough
+
+Generate a wallet with `dotnet run generate-wallet`.
+**Output:**
+```
+Choose a password:
+***
+Confirm password:
+***
+
+Wallet is successfully created.
+Wallet file: Wallets/Wallet.json
+
+Write down the following mnemonic words.
+With the mnemonic words AND your password you can recover this wallet by using the recover-wallet command.
+
+-------
+virus into smooth shock eternal task guitar bus glide taste glow barrel
+-------
+```
+Recover your wallet to an other wallet file: `dotnet run recover-wallet wallet-file=recovered.json`
+**Output:**
+```
+Your software is configured using the Bitcoin TestNet network.
+Provide your mnemonic words, separated by spaces:
+virus into smooth shock eternal task guitar bus glide taste glow barrel
+Provide your password. Please note the wallet cannot check if your password is correct or not. If you provide a wrong password a wallet will be recovered with your provided mnemonic AND password pair:
+***
+
+Wallet is successfully recovered.
+Wallet file: Wallets/recovered.json
+```
+[Get some testnet bitcoins](http://tpfaucet.appspot.com/) to the wallet. You can get unused addresses with: `dotnet run receive`
+**Output:**
+```
+Type your password:
+***
+Wallets/Wallet.json wallet is decrypted.
+7 Normal keys are processed.
+
+---------------------------------------------------------------------------
+Unused Receive Addresses
+---------------------------------------------------------------------------
+mzz63n3n89KVeHQXRqJEVsQX8MZj5zeqCw
+mhm1pFe2hH7yqkdQhwbBQ8qLnMZqfL6jXb
+mmRzqMDBrfNxMfryQSYec3rfPHXURNapBA
+my2ELDBqLGVz1ER7CMynDqG4BUpV2pwfR5
+mmwccp4GefhPn4P6Mui6DGLGzHTVyQ12tD
+miTedyDXJAz6GYMRasiJk9M3ibnGnb99M1
+mrsb39MmPceSPfKAURTH23hYgLRH1M1Uhg
+```
+Check out your balances: `dotnet run show-balances`
+**Output:**
+```
+Type your password:
+***
+Wallets/Wallet.json wallet is decrypted.
+7 Normal keys are processed.
+14 Normal keys are processed.
+7 Change keys are processed.
+
+---------------------------------------------------------------------------
+Address Confirmed Unconfirmed
+---------------------------------------------------------------------------
+mhm1pFe2hH7yqkdQhwbBQ8qLnMZqfL6jXb 0.00000000 0.00880000
+mmwccp4GefhPn4P6Mui6DGLGzHTVyQ12tD 0.00000000 0.02710000
+
+---------------------------------------------------------------------------
+Confirmed Wallet Balance: 0.00000000
+Unconfirmed Wallet Balance: 0.03590000
+---------------------------------------------------------------------------
+```
+Check out your wallet history: `dotnet run show-history`
+```
+Type your password:
+***
+Wallets/Wallet.json wallet is decrypted.
+7 Normal keys are processed.
+14 Normal keys are processed.
+7 Change keys are processed.
+
+---------------------------------------------------------------------------
+Date Amount Confirmed Transaction Id
+---------------------------------------------------------------------------
+12/1/16 11:18:33 PM 0.00880000 False fe9fe4b8ea249097eccb0e4efa7395e4a8ef3c5f084c6264ccb73d1dc634e954
+12/1/16 11:19:17 PM 0.00870000 False 704599df454ac0d3e4c1d5ad9f0debd848493dc1f7695e9b455eca934106e4a9
+12/1/16 11:19:23 PM 0.00870000 False c5881cc2ce2386fb320ad60d46762027a2c977532b2773795e613238e29c8bcc
+12/1/16 11:19:43 PM 0.00870000 False 986fe7630d66978cfa888df6b47303e97051a0cbf4145a9787b493fbe18b2d42
+12/1/16 11:20:41 PM 0.00100000 False ffb04388d228c52135d4e2212245c91c116b6f3a228418831715065ffcb056d9
+```
+Send some money to a random address: `dotnet run send address=mxYpuqcSRbdFBgUkeErYSCT14Em72ZUTQn btc=0.016`
+```
+Type your password:
+***
+Wallets/Wallet.json wallet is decrypted.
+7 Normal keys are processed.
+14 Normal keys are processed.
+7 Change keys are processed.
+Finding not empty private keys...
+Select change address...
+1 Change keys are processed.
+Gathering unspent coins...
+Calculating transaction fee...
+Fee: 0.000275btc
+
+The transaction fee is 2% of your transaction amount.
+Sending: 0.016btc
+Fee: 0.000275btc
+Are you sure you want to proceed? (y/n)
+y
+Selecting coins...
+Signing transaction...
+Transaction Id: 3069a436113022d1977b9a9c1a9f233d3aa77b8cd9b6876c8c7dfa0f909ada5e
+Broadcasting transaction...
+
+Transaction is successfully propagated on the network.
+```
+Finally send all your money from the address to somewhere: `dotnet run send address=miasyhU2EhANWVGAoD9PicPACCUhUzdDN4 btc=0.01`
+
+```
+Type your password:
+
+Wallets/test wallet is decrypted.
+7 Receive keys are processed.
+14 Receive keys are processed.
+7 Change keys are processed.
+14 Change keys are processed.
+Finding not empty private keys...
+Select change address...
+1 Change keys are processed.
+2 Change keys are processed.
+3 Change keys are processed.
+4 Change keys are processed.
+5 Change keys are processed.
+6 Change keys are processed.
+Gathering unspent coins...
+Calculating transaction fee...
+Fee: 0.00025btc
+
+The transaction fee is 2% of your transaction amount.
+Sending: 0.01btc
+Fee: 0.00025btc
+Are you sure you want to proceed? (y/n)
+y
+Selecting coins...
+Signing transaction...
+Transaction Id: ad29443fee2e22460586ed0855799e32d6a3804d2df059c102877cc8cf1df2ad
+Try broadcasting transaction... (1)
+
+Transaction is successfully propagated on the network.
+```
+
+You can specify an optional `wallet-file=` argument to any command if you wish not to use the default wallet file, like `wallet-file=testwallet.json`.
+
+You can get the extkey and the extpubkey with the following commands:
+`dotnet run show-extkey`
+`dotnet run show-extpubkey`

create projects