├── BTCWalletMiner ├── BTCWalletMiner.csproj ├── Classes │ ├── Bitcoin.cs │ └── Settings.cs └── Program.cs ├── README.md ├── BTCWalletMiner.sln ├── .gitignore └── LICENSE /BTCWalletMiner/BTCWalletMiner.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Exe 5 | net6.0 6 | enable 7 | disable 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /BTCWalletMiner/Classes/Bitcoin.cs: -------------------------------------------------------------------------------- 1 | namespace ProgramBitcoin 2 | { 3 | public class BitcoinAddress 4 | { 5 | public int minLength = 26; 6 | public int maxLength = 35; 7 | public string Address {get; set;} 8 | 9 | public void setAddress(string address) 10 | { 11 | this.Address = address; 12 | } 13 | } 14 | 15 | public class BitcoinPrivateKey 16 | { 17 | public Int32 length = 256; 18 | } 19 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # BTCWM -> BTCWalletMiner 2 | > A tool created to mine bitcoin wallets. 3 | 4 |

5 | Badge 1 6 | Badge 2 7 | Badge 3 8 | Badge 4 9 |

10 | 11 | ## Table of Contents 12 | * [Introduction](#introduction) 13 | * [Setup](#setup) 14 | * [Usage](#usage) 15 | 16 | ## Introduction 17 | To ensure that the future of BTC and BTC wallets can thrive, I've created a tool to test this. 18 | 19 | ## Setup 20 |

TODO: Implement

21 | 22 | ## Usage 23 |

TODO: Implement

24 | -------------------------------------------------------------------------------- /BTCWalletMiner.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 17 4 | VisualStudioVersion = 17.7.34031.279 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BTCWalletMiner", "BTCWalletMiner\BTCWalletMiner.csproj", "{4633302D-B526-4633-AC69-5B3193990111}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Release|Any CPU = Release|Any CPU 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {4633302D-B526-4633-AC69-5B3193990111}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {4633302D-B526-4633-AC69-5B3193990111}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {4633302D-B526-4633-AC69-5B3193990111}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {4633302D-B526-4633-AC69-5B3193990111}.Release|Any CPU.Build.0 = Release|Any CPU 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | GlobalSection(ExtensibilityGlobals) = postSolution 23 | SolutionGuid = {50F722CD-7ABC-484E-82BD-FD9DDEB551F6} 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /BTCWalletMiner/Classes/Settings.cs: -------------------------------------------------------------------------------- 1 | using ProgramBitcoin; 2 | namespace ProgramSettings 3 | { 4 | public class Settings 5 | { 6 | public static BitcoinAddress userBitcoinAddress = new BitcoinAddress(); 7 | public static string ProgramVersion = "0.3.5"; 8 | public string ProgramLogo = @" 9 | ______ _____ _____ _ _ _ _ _ ___ ____ 10 | | ___ \_ _/ __ \ | | | | | | | | | \/ (_) 11 | | |_/ / | | | / \/ | | | __ _| | | ___| |_| . . |_ _ __ ___ _ __ 12 | | ___ \ | | | | | |/\| |/ _` | | |/ _ \ __| |\/| | | '_ \ / _ \ '__| 13 | | |_/ / | | | \__/\ /\ / (_| | | | __/ |_| | | | | | | | __/ | 14 | \____/ \_/ \____/\/ \/ \__,_|_|_|\___|\__\_| |_/_|_| |_|\___|_| 15 | "; 16 | 17 | public void displayLogo() 18 | { 19 | Console.ForegroundColor = ConsoleColor.DarkBlue; 20 | Console.WriteLine(ProgramLogo); 21 | Console.ResetColor(); 22 | } 23 | 24 | public void displayVersion() 25 | { 26 | string ProgramVersionFixed = ProgramVersion.ToString().Replace(",", "."); //issue: comma instead of dot! 27 | Console.WriteLine("Current version: v" + ProgramVersionFixed); 28 | } 29 | 30 | public void displayCredits() 31 | { 32 | System.Console.OutputEncoding = System.Text.Encoding.UTF8; //allows the display of a copyright mark 33 | Console.WriteLine("Credits: Schwa/Rick Huisman © 2022"); 34 | } 35 | 36 | public void displayFee() 37 | { 38 | Random rnd = new Random(); 39 | int number = rnd.Next(1, 10); 40 | Console.WriteLine("Current fee: 0.0000" + number + " BTC"); 41 | } 42 | 43 | public void setColors() 44 | { 45 | Console.BackgroundColor = ConsoleColor.Black; 46 | Console.ForegroundColor = ConsoleColor.White; 47 | } 48 | } 49 | } -------------------------------------------------------------------------------- /BTCWalletMiner/Program.cs: -------------------------------------------------------------------------------- 1 | using ProgramSettings; 2 | using ProgramBitcoin; 3 | 4 | class Program 5 | { 6 | public void Entry() 7 | { 8 | var Settings = new Settings(); 9 | Settings.displayLogo(); 10 | Settings.setColors(); 11 | Settings.displayVersion(); 12 | Settings.displayFee(); 13 | Settings.displayCredits(); 14 | 15 | requestBitcoinAddress(); 16 | } 17 | 18 | public void requestBitcoinAddress() 19 | { 20 | Console.Write("Please enter your Bitcoin address: "); 21 | inputUser(); 22 | 23 | void inputUser() 24 | { 25 | var Settings = new Settings(); 26 | var BTCcoinAddress = new BitcoinAddress(); 27 | string userInput = Console.ReadLine(); 28 | 29 | if (userInput.Length >= BTCcoinAddress.minLength && userInput.Length <= BTCcoinAddress.maxLength) 30 | { 31 | InputConfirm(userInput); 32 | } 33 | else 34 | { 35 | inputInvalid(); 36 | } 37 | } 38 | 39 | void inputInvalid() 40 | { 41 | Console.ForegroundColor = ConsoleColor.Red; 42 | Console.WriteLine("Input invalid. Please try again"); 43 | Console.ResetColor(); 44 | requestBitcoinAddress(); 45 | } 46 | 47 | void InputConfirm(string address) 48 | { 49 | Console.Write("Do you confirm that " + address + " is your address: "); 50 | string userInput = Console.ReadLine(); 51 | 52 | if (userInput == "yes") 53 | { 54 | Settings.userBitcoinAddress.setAddress(userInput); //set the address 55 | 56 | Console.ForegroundColor = ConsoleColor.Green; 57 | Console.WriteLine("Address confirmed."); 58 | Console.ResetColor(); 59 | 60 | mineBtc(); 61 | } 62 | else 63 | { 64 | Console.ForegroundColor = ConsoleColor.Red; 65 | Console.WriteLine("Address not confirmed."); 66 | Console.ResetColor(); 67 | requestBitcoinAddress(); 68 | } 69 | } 70 | } 71 | 72 | public void mineBtc() 73 | { 74 | Boolean Mine = true; 75 | var BTCcoinAddress = new BitcoinAddress(); 76 | Random rnd = new Random(); 77 | 78 | int randomNumber() 79 | { 80 | int number = rnd.Next(BTCcoinAddress.minLength, BTCcoinAddress.maxLength); 81 | return number; 82 | } 83 | 84 | string randomBtcAddress(int length) 85 | { 86 | const string chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; 87 | return new string(Enumerable.Repeat(chars, length).Select(s => s[rnd.Next(s.Length)]).ToArray()); 88 | } 89 | 90 | double btcAmountWon() 91 | { 92 | double BTC = (rnd.NextDouble()); 93 | return BTC; 94 | } 95 | 96 | while (Mine) 97 | { 98 | Thread.Sleep(100); 99 | Console.ForegroundColor = ConsoleColor.DarkCyan; 100 | Console.Write("[+]"); 101 | Console.ResetColor(); 102 | Console.Write(" " + randomBtcAddress(randomNumber()) + " "); 103 | if (rnd.Next(0, 100) == 0) 104 | { 105 | Mine = false; 106 | 107 | Console.ForegroundColor = ConsoleColor.Green; 108 | Console.Write("(" + btcAmountWon() + " BTC)"); 109 | Console.ResetColor(); 110 | Console.ReadKey(); 111 | } 112 | else 113 | { 114 | Console.ForegroundColor = ConsoleColor.Red; 115 | Console.Write("(0 BTC)"); 116 | Console.ResetColor(); 117 | } 118 | Console.WriteLine(""); 119 | } 120 | } 121 | 122 | static void Main(string[] args) 123 | { 124 | var Program = new Program(); 125 | Program.Entry(); 126 | } 127 | } -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | 4 | ################### 5 | # compiled source # 6 | ################### 7 | *.com 8 | *.class 9 | *.dll 10 | *.exe 11 | *.pdb 12 | *.dll.config 13 | *.cache 14 | *.suo 15 | # Include dlls if they’re in the NuGet packages directory 16 | !/packages/*/lib/*.dll 17 | # Include dlls if they're in the CommonReferences directory 18 | !*CommonReferences/*.dll 19 | #################### 20 | # VS Upgrade stuff # 21 | #################### 22 | _UpgradeReport_Files/ 23 | ############### 24 | # Directories # 25 | ############### 26 | bin/ 27 | obj/ 28 | TestResults/ 29 | ################### 30 | # Web publish log # 31 | ################### 32 | *.Publish.xml 33 | ############# 34 | # Resharper # 35 | ############# 36 | /_ReSharper.* 37 | *.ReSharper.* 38 | ############ 39 | # Packages # 40 | ############ 41 | # it’s better to unpack these files and commit the raw source 42 | # git has its own built in compression methods 43 | *.7z 44 | *.dmg 45 | *.gz 46 | *.iso 47 | *.jar 48 | *.rar 49 | *.tar 50 | *.zip 51 | ###################### 52 | # Logs and databases # 53 | ###################### 54 | *.log 55 | *.sqlite 56 | # OS generated files # 57 | ###################### 58 | .DS_Store? 59 | ehthumbs.db 60 | Icon? 61 | Thumbs.db 62 | 63 | 64 | # User-specific files 65 | *.user 66 | *.userosscache 67 | *.sln.docstates 68 | 69 | # User-specific files (MonoDevelop/Xamarin Studio) 70 | *.userprefs 71 | 72 | # Build results 73 | [Dd]ebug/ 74 | [Dd]ebugPublic/ 75 | [Rr]elease/ 76 | [Rr]eleases/ 77 | x64/ 78 | x86/ 79 | build/ 80 | bld/ 81 | [Bb]in/ 82 | [Oo]bj/ 83 | 84 | # Visual Studo 2015 cache/options directory 85 | .vs/ 86 | 87 | # MSTest test Results 88 | [Tt]est[Rr]esult*/ 89 | [Bb]uild[Ll]og.* 90 | 91 | # NUNIT 92 | *.VisualState.xml 93 | TestResult.xml 94 | 95 | # Build Results of an ATL Project 96 | [Dd]ebugPS/ 97 | [Rr]eleasePS/ 98 | dlldata.c 99 | 100 | # DNX 101 | project.lock.json 102 | artifacts/ 103 | 104 | *_i.c 105 | *_p.c 106 | *_i.h 107 | *.ilk 108 | *.meta 109 | *.obj 110 | *.pch 111 | *.pgc 112 | *.pgd 113 | *.rsp 114 | *.sbr 115 | *.tlb 116 | *.tli 117 | *.tlh 118 | *.tmp 119 | *.tmp_proj 120 | *.vspscc 121 | *.vssscc 122 | .builds 123 | *.pidb 124 | *.svclog 125 | *.scc 126 | 127 | # Chutzpah Test files 128 | _Chutzpah* 129 | 130 | # Visual C++ cache files 131 | ipch/ 132 | *.aps 133 | *.ncb 134 | *.opensdf 135 | *.sdf 136 | *.cachefile 137 | 138 | # Visual Studio profiler 139 | *.psess 140 | *.vsp 141 | *.vspx 142 | 143 | # TFS 2012 Local Workspace 144 | $tf/ 145 | 146 | # Guidance Automation Toolkit 147 | *.gpState 148 | 149 | # ReSharper is a .NET coding add-in 150 | _ReSharper*/ 151 | *.[Rr]e[Ss]harper 152 | *.DotSettings.user 153 | 154 | # JustCode is a .NET coding add-in 155 | .JustCode 156 | 157 | # TeamCity is a build add-in 158 | _TeamCity* 159 | 160 | # DotCover is a Code Coverage Tool 161 | *.dotCover 162 | 163 | # NCrunch 164 | _NCrunch_* 165 | .*crunch*.local.xml 166 | 167 | # MightyMoose 168 | *.mm.* 169 | AutoTest.Net/ 170 | 171 | # Web workbench (sass) 172 | .sass-cache/ 173 | 174 | # Installshield output folder 175 | [Ee]xpress/ 176 | 177 | # DocProject is a documentation generator add-in 178 | DocProject/buildhelp/ 179 | DocProject/Help/*.HxT 180 | DocProject/Help/*.HxC 181 | DocProject/Help/*.hhc 182 | DocProject/Help/*.hhk 183 | DocProject/Help/*.hhp 184 | DocProject/Help/Html2 185 | DocProject/Help/html 186 | 187 | # Click-Once directory 188 | publish/ 189 | 190 | # Publish Web Output 191 | *.[Pp]ublish.xml 192 | *.azurePubxml 193 | # TODO: Comment the next line if you want to checkin your web deploy settings 194 | # but database connection strings (with potential passwords) will be unencrypted 195 | *.pubxml 196 | *.publishproj 197 | 198 | # NuGet Packages 199 | *.nupkg 200 | # The packages folder can be ignored because of Package Restore 201 | **/packages/* 202 | # except build/, which is used as an MSBuild target. 203 | !**/packages/build/ 204 | # Uncomment if necessary however generally it will be regenerated when needed 205 | #!**/packages/repositories.config 206 | 207 | # Windows Azure Build Output 208 | csx/ 209 | *.build.csdef 210 | 211 | # Windows Store app package directory 212 | AppPackages/ 213 | 214 | # Visual Studio cache files 215 | # files ending in .cache can be ignored 216 | *.[Cc]ache 217 | # but keep track of directories ending in .cache 218 | !*.[Cc]ache/ 219 | 220 | # Others 221 | ClientBin/ 222 | [Ss]tyle[Cc]op.* 223 | ~$* 224 | *~ 225 | *.dbmdl 226 | *.dbproj.schemaview 227 | *.pfx 228 | *.publishsettings 229 | node_modules/ 230 | bower_components/ 231 | orleans.codegen.cs 232 | 233 | # RIA/Silverlight projects 234 | Generated_Code/ 235 | 236 | # Backup & report files from converting an old project file 237 | # to a newer Visual Studio version. Backup files are not needed, 238 | # because we have git ;-) 239 | _UpgradeReport_Files/ 240 | Backup*/ 241 | UpgradeLog*.XML 242 | UpgradeLog*.htm 243 | 244 | # SQL Server files 245 | *.mdf 246 | *.ldf 247 | 248 | # Business Intelligence projects 249 | *.rdl.data 250 | *.bim.layout 251 | *.bim_*.settings 252 | 253 | # Microsoft Fakes 254 | FakesAssemblies/ 255 | 256 | # Node.js Tools for Visual Studio 257 | .ntvs_analysis.dat 258 | 259 | # Visual Studio 6 build log 260 | *.plg 261 | 262 | # Visual Studio 6 workspace options file 263 | *.opt 264 | 265 | # Visual Studio Code 266 | *.vscode/ 267 | 268 | # Github, too 269 | *.github/ -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | --------------------------------------------------------------------------------