├── .gitignore ├── LICENSE ├── README.md ├── package-lock.json ├── package.json ├── public ├── bootstrap-theme.min.css ├── bootstrap.min.css ├── favicon.ico.gif ├── favicon.ico.gif.oldzclassic ├── index.html └── manifest.json ├── src ├── App.css ├── App.js ├── bg.jpg ├── bg.jpg.orig ├── bitcointalk.png ├── blogger.png ├── components │ ├── Brain.jsx │ ├── Bulk.jsx │ ├── Details.jsx │ ├── Entropy.jsx │ ├── Footer.jsx │ ├── HD.jsx │ ├── Header.jsx │ ├── Header.jsx.v0.1 │ ├── MainPanel.jsx │ ├── MainPanel.jsx.orig │ ├── MainPanel.jsx.v1.withPaperMenu │ ├── Multisig.jsx │ ├── Paper.jsx │ └── Single.jsx ├── discord.png ├── facebook.png ├── forum.png ├── github.png ├── grid-world.png ├── index.js ├── logo_ ├── logo_full.png ├── logo_small.png ├── reddit.png ├── registerServiceWorker.js ├── telegram.png ├── twitter.png ├── website.png ├── youtube.png ├── zen_paper_back.png ├── zen_paper_front.png └── zen_paper_front_sm.png └── yarn.lock /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | 8 | # Runtime data 9 | pids 10 | *.pid 11 | *.seed 12 | *.pid.lock 13 | 14 | # Directory for instrumented libs generated by jscoverage/JSCover 15 | lib-cov 16 | 17 | # Coverage directory used by tools like istanbul 18 | coverage 19 | 20 | # nyc test coverage 21 | .nyc_output 22 | 23 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) 24 | .grunt 25 | 26 | # Bower dependency directory (https://bower.io/) 27 | bower_components 28 | 29 | # node-waf configuration 30 | .lock-wscript 31 | 32 | # Compiled binary addons (http://nodejs.org/api/addons.html) 33 | build/Release 34 | 35 | # Dependency directories 36 | node_modules/ 37 | jspm_packages/ 38 | 39 | # Typescript v1 declaration files 40 | typings/ 41 | 42 | # Optional npm cache directory 43 | .npm 44 | 45 | # Optional eslint cache 46 | .eslintcache 47 | 48 | # Optional REPL history 49 | .node_repl_history 50 | 51 | # Output of 'npm pack' 52 | *.tgz 53 | 54 | # Yarn Integrity file 55 | .yarn-integrity 56 | 57 | # dotenv environment variables file 58 | .env 59 | 60 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Bitcoin Private Paper Wallet - paperwallet.btcprivate.org 2 | 3 | ### JavaScript Client-Side BTCP Paper Wallet Generator. 4 | ### v0.0.2 5 | 6 | Uses [btcprivatejs](https://github.com/BTCPrivate/btcprivatejs) based on [zenaddress](https://github.com/ZencashOfficial/zenaddress). 7 | 8 | Also uses [ch4ot1c/bitcoinjs-lib#v3.3.2-z](https://github.com/ch4ot1c/bitcoinjs-lib/releases/tag/v3.3.2-z) - for `hdnode` (HD Wallets) (BIP44, BIP39, BIP32) 9 | 10 | 11 | Supports: 12 | - Input entropy (Mouse + Keyboard) 13 | - Generating Single Private Key + Addresses 14 | - Generating BIP44 BTCP Wallets (from random BIP39 mnemonic seed words) (from input entropy) 15 | - Creating multisig wallets (**needs further testing**) 16 | - 'Bulk Wallet' generation (Individual addresses; not using HD seeds) 17 | - Lookup Address by Private Key (**should be removed in deployed builds; web education anti-pattern**) 18 | - Official Explorer, Source code backlinks 19 | - English 20 | 21 | To run: 22 | 23 | ``` 24 | npm install 25 | npm start 26 | ``` 27 | 28 | To build a static version: 29 | 30 | First: 31 | ``` 32 | npm run eject 33 | vim config/webpack.config.prod.js 34 | ``` 35 | 36 | Then search for `UglifyJsPlugin`, and add to it's constructor: 37 | ``` 38 | mangle: { 39 | safari10: true, 40 | keep_fnames: true 41 | }, 42 | ``` 43 | 44 | Then run `node scripts/build.js`. The generated `build/` dir will contain the static files to place in your `wwwroot`. 45 | 46 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "paperwallet.btcprivate.org", 3 | "homepage": "https://paperwallet.btcprivate.org", 4 | "version": "0.0.2", 5 | "private": true, 6 | "dependencies": { 7 | "ajv": "^6.2.1", 8 | "axios": "^0.17.0", 9 | "babel-eslint": "^8.2.2", 10 | "bip39": "bitcoinjs/bip39", 11 | "bitcoinjs-lib": "ch4ot1c/bitcoinjs-lib#v3.3.2-z", 12 | "btcprivatejs": "BTCPrivate/btcprivatejs", 13 | "eslint": "^4.18.2", 14 | "react": "^15.6.1", 15 | "react-bootstrap": "^0.31.3", 16 | "react-dom": "^15.6.1", 17 | "react-qr-svg": "^2.0.2", 18 | "react-scripts": "1.0.13", 19 | "sync-exec": "^0.6.2", 20 | "webpack": "^3.11.0" 21 | }, 22 | "devDependencies": { 23 | "gh-pages": "^1.1.0", 24 | "gh-pages-deploy": "^0.4.2", 25 | "react-dev-utils": "^5.0.0" 26 | }, 27 | "scripts": { 28 | "start": "react-scripts start", 29 | "build": "react-scripts build", 30 | "test": "react-scripts test --env=jsdom", 31 | "eject": "react-scripts eject", 32 | "deploy": "npm run build&&gh-pages -d build" 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /public/bootstrap-theme.min.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * Bootstrap v3.3.6 (http://getbootstrap.com) 3 | * Copyright 2011-2015 Twitter, Inc. 4 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 5 | */.btn-danger,.btn-default,.btn-info,.btn-primary,.btn-success,.btn-warning{text-shadow:0 -1px 0 rgba(0,0,0,.2);-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 1px 1px rgba(0,0,0,.075)}.btn-danger.active,.btn-danger:active,.btn-default.active,.btn-default:active,.btn-info.active,.btn-info:active,.btn-primary.active,.btn-primary:active,.btn-success.active,.btn-success:active,.btn-warning.active,.btn-warning:active{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn-danger.disabled,.btn-danger[disabled],.btn-default.disabled,.btn-default[disabled],.btn-info.disabled,.btn-info[disabled],.btn-primary.disabled,.btn-primary[disabled],.btn-success.disabled,.btn-success[disabled],.btn-warning.disabled,.btn-warning[disabled],fieldset[disabled] .btn-danger,fieldset[disabled] .btn-default,fieldset[disabled] .btn-info,fieldset[disabled] .btn-primary,fieldset[disabled] .btn-success,fieldset[disabled] .btn-warning{-webkit-box-shadow:none;box-shadow:none}.btn-danger .badge,.btn-default .badge,.btn-info .badge,.btn-primary .badge,.btn-success .badge,.btn-warning .badge{text-shadow:none}.btn.active,.btn:active{background-image:none}.btn-default{text-shadow:0 1px 0 #fff;background-image:-webkit-linear-gradient(top,#fff 0,#e0e0e0 100%);background-image:-o-linear-gradient(top,#fff 0,#e0e0e0 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#fff),to(#e0e0e0));background-image:linear-gradient(to bottom,#fff 0,#e0e0e0 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe0e0e0', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#dbdbdb;border-color:#ccc}.btn-default:focus,.btn-default:hover{background-color:#e0e0e0;background-position:0 -15px}.btn-default.active,.btn-default:active{background-color:#e0e0e0;border-color:#dbdbdb}.btn-default.disabled,.btn-default.disabled.active,.btn-default.disabled.focus,.btn-default.disabled:active,.btn-default.disabled:focus,.btn-default.disabled:hover,.btn-default[disabled],.btn-default[disabled].active,.btn-default[disabled].focus,.btn-default[disabled]:active,.btn-default[disabled]:focus,.btn-default[disabled]:hover,fieldset[disabled] .btn-default,fieldset[disabled] .btn-default.active,fieldset[disabled] .btn-default.focus,fieldset[disabled] .btn-default:active,fieldset[disabled] .btn-default:focus,fieldset[disabled] .btn-default:hover{background-color:#e0e0e0;background-image:none}.btn-primary{background-image:-webkit-linear-gradient(top,#A84E16,#265a88 100%);background-image:-o-linear-gradient(top,#A84E16,#265a88 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#A84E16),to(#265a88));background-image:linear-gradient(to bottom,#A84E16,#265a88 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffA84E16', endColorstr='#ff265a88', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#245580}.btn-primary:focus,.btn-primary:hover{background-color:#265a88;background-position:0 -15px}.btn-primary.active,.btn-primary:active{background-color:#265a88;border-color:#245580}.btn-primary.disabled,.btn-primary.disabled.active,.btn-primary.disabled.focus,.btn-primary.disabled:active,.btn-primary.disabled:focus,.btn-primary.disabled:hover,.btn-primary[disabled],.btn-primary[disabled].active,.btn-primary[disabled].focus,.btn-primary[disabled]:active,.btn-primary[disabled]:focus,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary,fieldset[disabled] .btn-primary.active,fieldset[disabled] .btn-primary.focus,fieldset[disabled] .btn-primary:active,fieldset[disabled] .btn-primary:focus,fieldset[disabled] .btn-primary:hover{background-color:#265a88;background-image:none}.btn-success{background-image:-webkit-linear-gradient(top,#5cb85c 0,#419641 100%);background-image:-o-linear-gradient(top,#5cb85c 0,#419641 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#5cb85c),to(#419641));background-image:linear-gradient(to bottom,#5cb85c 0,#419641 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5cb85c', endColorstr='#ff419641', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#3e8f3e}.btn-success:focus,.btn-success:hover{background-color:#419641;background-position:0 -15px}.btn-success.active,.btn-success:active{background-color:#419641;border-color:#3e8f3e}.btn-success.disabled,.btn-success.disabled.active,.btn-success.disabled.focus,.btn-success.disabled:active,.btn-success.disabled:focus,.btn-success.disabled:hover,.btn-success[disabled],.btn-success[disabled].active,.btn-success[disabled].focus,.btn-success[disabled]:active,.btn-success[disabled]:focus,.btn-success[disabled]:hover,fieldset[disabled] .btn-success,fieldset[disabled] .btn-success.active,fieldset[disabled] .btn-success.focus,fieldset[disabled] .btn-success:active,fieldset[disabled] .btn-success:focus,fieldset[disabled] .btn-success:hover{background-color:#419641;background-image:none}.btn-info{background-image:-webkit-linear-gradient(top,#5bc0de 0,#2aabd2 100%);background-image:-o-linear-gradient(top,#5bc0de 0,#2aabd2 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#5bc0de),to(#2aabd2));background-image:linear-gradient(to bottom,#5bc0de 0,#2aabd2 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff2aabd2', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#28a4c9}.btn-info:focus,.btn-info:hover{background-color:#2aabd2;background-position:0 -15px}.btn-info.active,.btn-info:active{background-color:#2aabd2;border-color:#28a4c9}.btn-info.disabled,.btn-info.disabled.active,.btn-info.disabled.focus,.btn-info.disabled:active,.btn-info.disabled:focus,.btn-info.disabled:hover,.btn-info[disabled],.btn-info[disabled].active,.btn-info[disabled].focus,.btn-info[disabled]:active,.btn-info[disabled]:focus,.btn-info[disabled]:hover,fieldset[disabled] .btn-info,fieldset[disabled] .btn-info.active,fieldset[disabled] .btn-info.focus,fieldset[disabled] .btn-info:active,fieldset[disabled] .btn-info:focus,fieldset[disabled] .btn-info:hover{background-color:#2aabd2;background-image:none}.btn-warning{background-image:-webkit-linear-gradient(top,#f0ad4e 0,#eb9316 100%);background-image:-o-linear-gradient(top,#f0ad4e 0,#eb9316 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#f0ad4e),to(#eb9316));background-image:linear-gradient(to bottom,#f0ad4e 0,#eb9316 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0ad4e', endColorstr='#ffeb9316', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#e38d13}.btn-warning:focus,.btn-warning:hover{background-color:#eb9316;background-position:0 -15px}.btn-warning.active,.btn-warning:active{background-color:#eb9316;border-color:#e38d13}.btn-warning.disabled,.btn-warning.disabled.active,.btn-warning.disabled.focus,.btn-warning.disabled:active,.btn-warning.disabled:focus,.btn-warning.disabled:hover,.btn-warning[disabled],.btn-warning[disabled].active,.btn-warning[disabled].focus,.btn-warning[disabled]:active,.btn-warning[disabled]:focus,.btn-warning[disabled]:hover,fieldset[disabled] .btn-warning,fieldset[disabled] .btn-warning.active,fieldset[disabled] .btn-warning.focus,fieldset[disabled] .btn-warning:active,fieldset[disabled] .btn-warning:focus,fieldset[disabled] .btn-warning:hover{background-color:#eb9316;background-image:none}.btn-danger{background-image:-webkit-linear-gradient(top,#d9534f 0,#c12e2a 100%);background-image:-o-linear-gradient(top,#d9534f 0,#c12e2a 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#d9534f),to(#c12e2a));background-image:linear-gradient(to bottom,#d9534f 0,#c12e2a 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc12e2a', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#b92c28}.btn-danger:focus,.btn-danger:hover{background-color:#c12e2a;background-position:0 -15px}.btn-danger.active,.btn-danger:active{background-color:#c12e2a;border-color:#b92c28}.btn-danger.disabled,.btn-danger.disabled.active,.btn-danger.disabled.focus,.btn-danger.disabled:active,.btn-danger.disabled:focus,.btn-danger.disabled:hover,.btn-danger[disabled],.btn-danger[disabled].active,.btn-danger[disabled].focus,.btn-danger[disabled]:active,.btn-danger[disabled]:focus,.btn-danger[disabled]:hover,fieldset[disabled] .btn-danger,fieldset[disabled] .btn-danger.active,fieldset[disabled] .btn-danger.focus,fieldset[disabled] .btn-danger:active,fieldset[disabled] .btn-danger:focus,fieldset[disabled] .btn-danger:hover{background-color:#c12e2a;background-image:none}.img-thumbnail,.thumbnail{-webkit-box-shadow:0 1px 2px rgba(0,0,0,.075);box-shadow:0 1px 2px rgba(0,0,0,.075)}.dropdown-menu>li>a:focus,.dropdown-menu>li>a:hover{background-color:#e8e8e8;background-image:-webkit-linear-gradient(top,#f5f5f5 0,#e8e8e8 100%);background-image:-o-linear-gradient(top,#f5f5f5 0,#e8e8e8 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#f5f5f5),to(#e8e8e8));background-image:linear-gradient(to bottom,#f5f5f5 0,#e8e8e8 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffe8e8e8', GradientType=0);background-repeat:repeat-x}.dropdown-menu>.active>a,.dropdown-menu>.active>a:focus,.dropdown-menu>.active>a:hover{background-color:#2e6da4;background-image:-webkit-linear-gradient(top,#A84E16,#2e6da4 100%);background-image:-o-linear-gradient(top,#A84E16,#2e6da4 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#A84E16),to(#2e6da4));background-image:linear-gradient(to bottom,#A84E16,#2e6da4 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffA84E16', endColorstr='#ff2e6da4', GradientType=0);background-repeat:repeat-x}.navbar-default{background-image:-webkit-linear-gradient(top,#fff 0,#f8f8f8 100%);background-image:-o-linear-gradient(top,#fff 0,#f8f8f8 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#fff),to(#f8f8f8));background-image:linear-gradient(to bottom,#fff 0,#f8f8f8 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#fff8f8f8', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-radius:4px;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 1px 5px rgba(0,0,0,.075);box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 1px 5px rgba(0,0,0,.075)}.navbar-default .navbar-nav>.active>a,.navbar-default .navbar-nav>.open>a{background-image:-webkit-linear-gradient(top,#dbdbdb 0,#e2e2e2 100%);background-image:-o-linear-gradient(top,#dbdbdb 0,#e2e2e2 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#dbdbdb),to(#e2e2e2));background-image:linear-gradient(to bottom,#dbdbdb 0,#e2e2e2 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdbdbdb', endColorstr='#ffe2e2e2', GradientType=0);background-repeat:repeat-x;-webkit-box-shadow:inset 0 3px 9px rgba(0,0,0,.075);box-shadow:inset 0 3px 9px rgba(0,0,0,.075)}.navbar-brand,.navbar-nav>li>a{text-shadow:0 1px 0 rgba(255,255,255,.25)}.navbar-inverse{background-image:-webkit-linear-gradient(top,#3c3c3c 0,#222 100%);background-image:-o-linear-gradient(top,#3c3c3c 0,#222 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#3c3c3c),to(#222));background-image:linear-gradient(to bottom,#3c3c3c 0,#222 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff3c3c3c', endColorstr='#ff222222', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-radius:4px}.navbar-inverse .navbar-nav>.active>a,.navbar-inverse .navbar-nav>.open>a{background-image:-webkit-linear-gradient(top,#080808 0,#0f0f0f 100%);background-image:-o-linear-gradient(top,#080808 0,#0f0f0f 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#080808),to(#0f0f0f));background-image:linear-gradient(to bottom,#080808 0,#0f0f0f 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff080808', endColorstr='#ff0f0f0f', GradientType=0);background-repeat:repeat-x;-webkit-box-shadow:inset 0 3px 9px rgba(0,0,0,.25);box-shadow:inset 0 3px 9px rgba(0,0,0,.25)}.navbar-inverse .navbar-brand,.navbar-inverse .navbar-nav>li>a{text-shadow:0 -1px 0 rgba(0,0,0,.25)}.navbar-fixed-bottom,.navbar-fixed-top,.navbar-static-top{border-radius:0}@media (max-width:767px){.navbar .navbar-nav .open .dropdown-menu>.active>a,.navbar .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar .navbar-nav .open .dropdown-menu>.active>a:hover{color:#fff;background-image:-webkit-linear-gradient(top,#A84E16,#2e6da4 100%);background-image:-o-linear-gradient(top,#A84E16,#2e6da4 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#A84E16),to(#2e6da4));background-image:linear-gradient(to bottom,#A84E16,#2e6da4 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffA84E16', endColorstr='#ff2e6da4', GradientType=0);background-repeat:repeat-x}}.alert{text-shadow:0 1px 0 rgba(255,255,255,.2);-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 2px rgba(0,0,0,.05);box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 2px rgba(0,0,0,.05)}.alert-success{background-image:-webkit-linear-gradient(top,#dff0d8 0,#c8e5bc 100%);background-image:-o-linear-gradient(top,#dff0d8 0,#c8e5bc 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#dff0d8),to(#c8e5bc));background-image:linear-gradient(to bottom,#dff0d8 0,#c8e5bc 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffc8e5bc', GradientType=0);background-repeat:repeat-x;border-color:#b2dba1}.alert-info{background-image:-webkit-linear-gradient(top,#d9edf7 0,#b9def0 100%);background-image:-o-linear-gradient(top,#d9edf7 0,#b9def0 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#d9edf7),to(#b9def0));background-image:linear-gradient(to bottom,#d9edf7 0,#b9def0 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffb9def0', GradientType=0);background-repeat:repeat-x;border-color:#9acfea}.alert-warning{background-image:-webkit-linear-gradient(top,#fcf8e3 0,#f8efc0 100%);background-image:-o-linear-gradient(top,#fcf8e3 0,#f8efc0 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#fcf8e3),to(#f8efc0));background-image:linear-gradient(to bottom,#fcf8e3 0,#f8efc0 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fff8efc0', GradientType=0);background-repeat:repeat-x;border-color:#f5e79e}.alert-danger{background-image:-webkit-linear-gradient(top,#f2dede 0,#e7c3c3 100%);background-image:-o-linear-gradient(top,#f2dede 0,#e7c3c3 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#f2dede),to(#e7c3c3));background-image:linear-gradient(to bottom,#f2dede 0,#e7c3c3 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffe7c3c3', GradientType=0);background-repeat:repeat-x;border-color:#dca7a7}.progress{background-image:-webkit-linear-gradient(top,#ebebeb 0,#f5f5f5 100%);background-image:-o-linear-gradient(top,#ebebeb 0,#f5f5f5 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#ebebeb),to(#f5f5f5));background-image:linear-gradient(to bottom,#ebebeb 0,#f5f5f5 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffebebeb', endColorstr='#fff5f5f5', GradientType=0);background-repeat:repeat-x}.progress-bar{background-image:-webkit-linear-gradient(top,#A84E16,#E48D54 100%);background-image:-o-linear-gradient(top,#A84E16,#E48D54 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#A84E16),to(#813100));background-image:linear-gradient(to bottom,#A84E16,#E48D54 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffA84E16', endColorstr='#ff813100', GradientType=0);background-repeat:repeat-x}.progress-bar-success{background-image:-webkit-linear-gradient(top,#5cb85c 0,#449d44 100%);background-image:-o-linear-gradient(top,#5cb85c 0,#449d44 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#5cb85c),to(#449d44));background-image:linear-gradient(to bottom,#5cb85c 0,#449d44 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5cb85c', endColorstr='#ff449d44', GradientType=0);background-repeat:repeat-x}.progress-bar-info{background-image:-webkit-linear-gradient(top,#5bc0de 0,#31b0d5 100%);background-image:-o-linear-gradient(top,#5bc0de 0,#31b0d5 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#5bc0de),to(#31b0d5));background-image:linear-gradient(to bottom,#5bc0de 0,#31b0d5 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff31b0d5', GradientType=0);background-repeat:repeat-x}.progress-bar-warning{background-image:-webkit-linear-gradient(top,#f0ad4e 0,#ec971f 100%);background-image:-o-linear-gradient(top,#f0ad4e 0,#ec971f 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#f0ad4e),to(#ec971f));background-image:linear-gradient(to bottom,#f0ad4e 0,#ec971f 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0ad4e', endColorstr='#ffec971f', GradientType=0);background-repeat:repeat-x}.progress-bar-danger{background-image:-webkit-linear-gradient(top,#d9534f 0,#c9302c 100%);background-image:-o-linear-gradient(top,#d9534f 0,#c9302c 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#d9534f),to(#c9302c));background-image:linear-gradient(to bottom,#d9534f 0,#c9302c 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc9302c', GradientType=0);background-repeat:repeat-x}.progress-bar-striped{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.list-group{border-radius:4px;-webkit-box-shadow:0 1px 2px rgba(0,0,0,.075);box-shadow:0 1px 2px rgba(0,0,0,.075)}.list-group-item.active,.list-group-item.active:focus,.list-group-item.active:hover{text-shadow:0 -1px 0 #813100;background-image:-webkit-linear-gradient(top,#A84E16,#2b669a 100%);background-image:-o-linear-gradient(top,#A84E16,#2b669a 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#A84E16),to(#2b669a));background-image:linear-gradient(to bottom,#A84E16,#2b669a 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffA84E16', endColorstr='#ff2b669a', GradientType=0);background-repeat:repeat-x;border-color:#2b669a}.list-group-item.active .badge,.list-group-item.active:focus .badge,.list-group-item.active:hover .badge{text-shadow:none}.panel{-webkit-box-shadow:0 1px 2px rgba(0,0,0,.05);box-shadow:0 1px 2px rgba(0,0,0,.05)}.panel-default>.panel-heading{background-image:-webkit-linear-gradient(top,#f5f5f5 0,#e8e8e8 100%);background-image:-o-linear-gradient(top,#f5f5f5 0,#e8e8e8 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#f5f5f5),to(#e8e8e8));background-image:linear-gradient(to bottom,#f5f5f5 0,#e8e8e8 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffe8e8e8', GradientType=0);background-repeat:repeat-x}.panel-primary>.panel-heading{background-image:-webkit-linear-gradient(top,#A84E16,#2e6da4 100%);background-image:-o-linear-gradient(top,#A84E16,#2e6da4 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#A84E16),to(#2e6da4));background-image:linear-gradient(to bottom,#A84E16,#2e6da4 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffA84E16', endColorstr='#ff2e6da4', GradientType=0);background-repeat:repeat-x}.panel-success>.panel-heading{background-image:-webkit-linear-gradient(top,#dff0d8 0,#d0e9c6 100%);background-image:-o-linear-gradient(top,#dff0d8 0,#d0e9c6 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#dff0d8),to(#d0e9c6));background-image:linear-gradient(to bottom,#dff0d8 0,#d0e9c6 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffd0e9c6', GradientType=0);background-repeat:repeat-x}.panel-info>.panel-heading{background-image:-webkit-linear-gradient(top,#d9edf7 0,#c4e3f3 100%);background-image:-o-linear-gradient(top,#d9edf7 0,#c4e3f3 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#d9edf7),to(#c4e3f3));background-image:linear-gradient(to bottom,#d9edf7 0,#c4e3f3 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffc4e3f3', GradientType=0);background-repeat:repeat-x}.panel-warning>.panel-heading{background-image:-webkit-linear-gradient(top,#fcf8e3 0,#faf2cc 100%);background-image:-o-linear-gradient(top,#fcf8e3 0,#faf2cc 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#fcf8e3),to(#faf2cc));background-image:linear-gradient(to bottom,#fcf8e3 0,#faf2cc 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fffaf2cc', GradientType=0);background-repeat:repeat-x}.panel-danger>.panel-heading{background-image:-webkit-linear-gradient(top,#f2dede 0,#ebcccc 100%);background-image:-o-linear-gradient(top,#f2dede 0,#ebcccc 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#f2dede),to(#ebcccc));background-image:linear-gradient(to bottom,#f2dede 0,#ebcccc 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffebcccc', GradientType=0);background-repeat:repeat-x}.well{background-image:-webkit-linear-gradient(top,#e8e8e8 0,#f5f5f5 100%);background-image:-o-linear-gradient(top,#e8e8e8 0,#f5f5f5 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#e8e8e8),to(#f5f5f5));background-image:linear-gradient(to bottom,#e8e8e8 0,#f5f5f5 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffe8e8e8', endColorstr='#fff5f5f5', GradientType=0);background-repeat:repeat-x;border-color:#dcdcdc;-webkit-box-shadow:inset 0 1px 3px rgba(0,0,0,.05),0 1px 0 rgba(255,255,255,.1);box-shadow:inset 0 1px 3px rgba(0,0,0,.05),0 1px 0 rgba(255,255,255,.1)} 6 | /*# sourceMappingURL=bootstrap-theme.min.css.map */ -------------------------------------------------------------------------------- /public/favicon.ico.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BTCPrivate-Legacy/paper-wallet/10b8afbd6c469fe1a6e5341131d4ed1def1b41d5/public/favicon.ico.gif -------------------------------------------------------------------------------- /public/favicon.ico.gif.oldzclassic: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BTCPrivate-Legacy/paper-wallet/10b8afbd6c469fe1a6e5341131d4ed1def1b41d5/public/favicon.ico.gif.oldzclassic -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 11 | 12 | 13 | 14 | 15 | 24 | Paper Wallet - Bitcoin Private 25 | 26 | 27 | 30 |
31 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /public/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "short_name": "PaperWallet.BitcoinPrivate.com", 3 | "name": "BTCP Paper Wallet Generator", 4 | "icons": [ 5 | { 6 | "src": "favicon.ico.gif", 7 | "sizes": "192x192", 8 | "type": "image/png" 9 | } 10 | ], 11 | "start_url": "./index.html", 12 | "display": "standalone", 13 | "theme_color": "#000000", 14 | "background_color": "#ffffff" 15 | } 16 | -------------------------------------------------------------------------------- /src/App.css: -------------------------------------------------------------------------------- 1 | @import url('https://fonts.googleapis.com/css?family=Alegreya+Sans:300,400,500,700'); 2 | 3 | html { 4 | width:100%; 5 | min-width: 850px; 6 | height: 100%; 7 | background-color: #F7F7F7; 8 | } 9 | 10 | body { 11 | background: black url("bg.jpg") center center repeat; 12 | -webkit-background-size: auto; 13 | -moz-background-size: auto; 14 | -o-background-size: auto; 15 | background-size: auto; 16 | font-family: 'Alegreya Sans', sans-serif; 17 | font-weight: 400; 18 | font-size: 16px; 19 | color: #4C4C4C; 20 | } 21 | a{ 22 | color: #1B2F59; 23 | } 24 | br{ 25 | display: none; 26 | } 27 | a:hover{ 28 | text-decoration:none; 29 | opacity: 0.9; 30 | } 31 | #layout { 32 | display: -webkit-box; 33 | display: -webkit-flex; 34 | display: -moz-box; 35 | display: -ms-flexbox; 36 | display: flex; 37 | flex-flow: column nowrap; 38 | justify-content: center; 39 | align-items: center; 40 | } 41 | #header { 42 | font-weight: bold; 43 | } 44 | #footer { 45 | background-color: #272E64; 46 | width: 100%; 47 | } 48 | #body { 49 | min-height: 500px; 50 | } 51 | #seedMouseBox { 52 | padding: 10%; 53 | margin-bottom: 15px; 54 | height: 250px; 55 | border: 2px solid #666; 56 | color: #666; 57 | text-align: center; 58 | font-size: 1.5em; 59 | } 60 | .seedpoint { 61 | position: absolute; 62 | padding: 6px; 63 | border-radius: 6px; 64 | background-color: #7fa7d8; 65 | z-index: 10; 66 | } 67 | .max-width { 68 | word-break: break-all; 69 | max-width: 100%; 70 | } 71 | 72 | .zenHeader .container-fluid{ 73 | padding: 0px 63px; 74 | box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1), 0 4px 5px 0 rgba(0, 0, 0, 0.08), 0 1px 10px 0 rgba(0, 0, 0, 0.12); 75 | } 76 | .zenHeader{ 77 | margin-bottom: 0px; 78 | width: 100%; 79 | } 80 | .zenHeader .navbar-text{ 81 | margin-left: 0px; 82 | margin-right: 0px; 83 | font-size: 13px; 84 | } 85 | .headerLeftOption > a{ 86 | color: red; 87 | } 88 | /*|*/ 89 | 90 | .zenHeader .nav li { 91 | display: inline-block !important; 92 | } 93 | .zenHeader .nav li a{ 94 | font-weight: 400; 95 | color: #1B2F59; 96 | } 97 | .zenHeader .nav li a:hover{ 98 | color: #1B2F59; 99 | } 100 | .zenHeader .navbar-brand{ 101 | height: 65px; 102 | } 103 | .navbar-header { 104 | /*background: #69ffbd none repeat scroll 0 0;*/ 105 | position: relative; 106 | } 107 | .navbar-header::after { 108 | left: 100%; 109 | width: 15%; 110 | /*background: #69ffbd none repeat scroll 0 0;*/ 111 | content: ""; 112 | display: block; 113 | height: 100%; 114 | position: absolute; 115 | } 116 | .navbar-header::before, .navbar-header::before { 117 | /*background: #69ffbd none repeat scroll 0 0;*/ 118 | content: ""; 119 | display: block; 120 | height: 100%; 121 | position: absolute; 122 | right: 100%; 123 | top: 0; 124 | width: 9999px; 125 | } 126 | .navbar-nav { 127 | margin-bottom: 0px; 128 | } 129 | .zenHeader .nav{ 130 | padding: 6px 0px; 131 | padding-bottom: 0px; 132 | } 133 | /*________________tab section css___________*/ 134 | 135 | .zenTabsWrap{ 136 | text-align: center; 137 | padding: 1px 0px; 138 | } 139 | .zenTabsWrap > ul > li{ 140 | display: inline-block; 141 | padding-bottom: 10px; 142 | 143 | width: 15.96%; 144 | margin: 0.6%; 145 | } 146 | .zenTabsWrap > ul > li > a:hover { 147 | color: #272E64; 148 | } 149 | .zenTabs { 150 | text-align: left; 151 | } 152 | .zenTabs .r3{ 153 | margin: 15px auto auto auto; 154 | } 155 | .zenTabs ul{ 156 | list-style-type: none; 157 | padding: 0; 158 | margin: 0px; 159 | margin-bottom: 10px; 160 | } 161 | 162 | .zenTabsWrap > ul > li a{ 163 | border-radius: 0; 164 | font-size: 16px; 165 | /*padding: 12px 0;*/ 166 | text-align: center; 167 | text-transform: capitalize; 168 | /*width: 118px;*/ 169 | outline: none; 170 | background-color: #272e64; 171 | color: #fff; 172 | font-weight: 500; 173 | } 174 | .zenTabsWrap .nav-justified > li + li a{ 175 | margin-left: 0px; 176 | } 177 | 178 | .zenTabsWrap .nav-pills > li.active > a, 179 | .zenTabsWrap .nav-pills > li.active > a:focus, 180 | .zenTabsWrap .nav-pills > li.active > a:hover { 181 | background-color: #FFFFFF; 182 | color: #272E64; 183 | } 184 | 185 | .zenTabsWrap .nav-pills>li+li { 186 | margin-left: 0px !important; 187 | } 188 | 189 | .nav-pills>li { 190 | float: none !important; 191 | } 192 | 193 | .zenTabs { 194 | box-shadow: 0px 0px 10px #CCC; 195 | background: #ededed; 196 | padding: 24px 20px 14px 20px; 197 | } 198 | 199 | .btn-default { 200 | background-color: #fff; 201 | background-image: none; 202 | background-repeat: repeat-x; 203 | border: 1px solid #272E64; 204 | border-radius: 0; 205 | color: #272E64; 206 | padding: 3px 10px; 207 | text-shadow: 0 0; 208 | } 209 | .btn-default:hover{ 210 | background-color: #272E64; 211 | color: #fff; 212 | border-color: #272E64; 213 | } 214 | 215 | hr{ 216 | display: none; 217 | } 218 | .radio-inline { 219 | margin-right: 30px; 220 | display: inline-block; 221 | } 222 | .max-width{ 223 | padding-top: 15px; 224 | } 225 | .r2 h1{ 226 | font-size: 32px; 227 | padding: 0px; 228 | margin: 0px; 229 | margin-bottom: 6px; 230 | } 231 | .r2 h3{ 232 | font-size: 23px; 233 | padding: 0px; 234 | margin: 0px; 235 | margin-bottom: 15px; 236 | 237 | } 238 | 239 | .inherit-width{ 240 | width: inherit 241 | 242 | } 243 | 244 | .zentabcode{ 245 | max-width: 200px; 246 | } 247 | 248 | #Multisig .btn { 249 | margin-top: 28px; 250 | } 251 | #Bulk .radio-inline { 252 | margin-top: 30px; 253 | } 254 | #Bulk .btn { 255 | margin-top: 27px; 256 | } 257 | #Brain .radio-inline { 258 | margin-top: 24px; 259 | } 260 | #Brain .btn { 261 | margin-top: 27px; 262 | } 263 | 264 | #Details .btn { 265 | margin-top: 27px; 266 | } 267 | 268 | .multisigsubtitle { 269 | margin-left: 15px !important; 270 | margin-top: 15px !important; 271 | } 272 | .multisigsecretcode{ 273 | max-width: 150px 274 | } 275 | 276 | /**--------------footer-css---------**/ 277 | 278 | #footer{ 279 | background-color: #272E64; 280 | padding: 20px 0px; 281 | } 282 | #footer .footerSocialWrap{ 283 | text-align: center; 284 | } 285 | #footer .footerSocial{ 286 | padding: 0px; 287 | margin: 0 auto; 288 | list-style-type: none; 289 | text-align: center; 290 | display: inline-block; 291 | padding-bottom:40px; 292 | margin-bottom: 30px; 293 | border-bottom: 1px solid #FFFFFF; 294 | } 295 | 296 | 297 | #footer .footerSocial li { 298 | display: inline-block; 299 | } 300 | #footer .footerSocial li a{ 301 | display: block; 302 | } 303 | #footer .footerCopyright{ 304 | text-align: center; 305 | color: #fff; 306 | } 307 | 308 | #footer .footerCopyright a, #footer .footerCopyright a:hover{ 309 | color: #FFFFFF; 310 | padding: 0px 5px; 311 | text-decoration: none; 312 | } 313 | #footer .footerCopyright a:hover{ 314 | 315 | } 316 | 317 | .progress-bar { 318 | background-image: linear-gradient(to bottom,#272E64,#272E64 100%); 319 | } 320 | 321 | .footerSocial li a{ 322 | padding: 0px 10px; 323 | } 324 | .footerSocial li + li a{ 325 | margin-left: 10px; 326 | } 327 | .footerSocial a:hover { 328 | opacity: 0.6; 329 | } 330 | 331 | @media screen { 332 | .print-only { 333 | display: none; 334 | } 335 | 336 | #art-area { 337 | background-image: url("zen_paper_front_sm.png"); 338 | background-repeat: no-repeat; 339 | background-size: contain; 340 | width: 746px; 341 | height: 245px; 342 | margin: auto; 343 | overflow: hidden; 344 | text-align: center; 345 | } 346 | 347 | #art-area>#addr-QR { 348 | position: relative; 349 | display: block; 350 | left: 36.5%; 351 | top: 31%; 352 | } 353 | 354 | #art-area>#wif-QR { 355 | position: relative; 356 | display: block; 357 | left: -40%; 358 | top: -23%; 359 | } 360 | 361 | #art-area>#addr-str1 { 362 | position: relative; 363 | display: block; 364 | left: 33.5%; 365 | top: 47.5%; 366 | color: #272E64; 367 | font-weight: 900; 368 | font-size: 0.66em; 369 | } 370 | #art-area>#addr-str2 { 371 | position: relative; 372 | display: block; 373 | left: 33.5%; 374 | top: -42.5%; 375 | 376 | font-size: 0.66em; 377 | -webkit-transform: rotate(-180deg); 378 | -moz-transform: rotate(-180deg); 379 | -o-transform: rotate(-180deg); 380 | -ms-transform: rotate(-180deg); 381 | transform: rotate(-180deg); 382 | } 383 | 384 | #art-area>#wif-str1 { 385 | position: relative; 386 | display: block; 387 | left: -29.5%; 388 | top: -16.5%; 389 | 390 | font-size: 0.46em; 391 | } 392 | #art-area>#wif-str2 { 393 | position: relative; 394 | display: block; 395 | left: -29.5%; 396 | top: -83.5%; 397 | 398 | font-size: 0.46em; 399 | -webkit-transform: rotate(-180deg); 400 | -moz-transform: rotate(-180deg); 401 | -o-transform: rotate(-180deg); 402 | -ms-transform: rotate(-180deg); 403 | transform: rotate(-180deg); 404 | } 405 | } 406 | 407 | @media print { 408 | @page { 409 | size: landscape; 410 | margin: 0%; 411 | } 412 | .container{ 413 | width: 100%; 414 | padding: 0px; 415 | } 416 | body{ 417 | position: relative; 418 | } 419 | #header, #footer, .nav, hr, .r1, .r3, h2{ 420 | display: none!important; 421 | } 422 | 423 | .singleTabs { 424 | margin: 10px !important; 425 | } 426 | 427 | #layout { 428 | display: block; 429 | } 430 | 431 | #art1, #art2 { 432 | width: 100% !important; 433 | height: 100% !important; 434 | margin: auto; 435 | } 436 | 437 | #art-area { 438 | position: absolute; 439 | width: 100%; 440 | height: 100%; 441 | top: 0; 442 | } 443 | .max-width{ 444 | padding: 0; 445 | margin: 0px auto 20px auto; 446 | text-align: center 447 | } 448 | .zenTabsWrap{ 449 | padding: 0px; 450 | } 451 | .zentabcode{ 452 | margin: 0 auto; 453 | } 454 | 455 | .zenTabs > div { 456 | padding-top: 0px; 457 | } 458 | 459 | .multisigsecretcode{ 460 | margin: 0 auto; 461 | } 462 | #Bulk{ 463 | margin-top: 20px; 464 | } 465 | #art-area>#addr-QR { 466 | position: relative; 467 | display: block; 468 | left: 31%; 469 | top: 21%; 470 | } 471 | #art-area>#addr-QR>svg { 472 | width: 12vw !important; 473 | height: 12vw !important; 474 | } 475 | 476 | #layout { 477 | display: block; 478 | } 479 | 480 | #art1, #art2 { 481 | width: 100% !important; 482 | height: 100% !important; 483 | margin: auto; 484 | } 485 | 486 | #art-area { 487 | position: absolute; 488 | width: 100%!important; 489 | height: 100%!important; 490 | top: 0; 491 | } 492 | 493 | #art-area>#addr-QR { 494 | position: relative; 495 | display: block; 496 | left: 33%; 497 | top: 21%; 498 | } 499 | #art-area>#addr-QR>svg { 500 | width: 12vw !important; 501 | height: 12vw !important; 502 | } 503 | 504 | #art-area>#wif-QR { 505 | position: relative; 506 | display: block; 507 | left: -36.5%; 508 | top: 11%; 509 | } 510 | #art-area>#wif-QR>svg { 511 | width: 11vw !important; 512 | height: 11vw !important; 513 | } 514 | 515 | #art-area>#addr-str1 { 516 | position: relative; 517 | display: block; 518 | left: 28.65%; 519 | top: 24.3%; 520 | font-size: 1.1vw; 521 | } 522 | #art-area>#addr-str2 { 523 | position: relative; 524 | display: block; 525 | left: 28.65%; 526 | top: 7%; 527 | font-size: 1.1vw; 528 | -webkit-transform: rotate(-180deg) !important; 529 | -moz-transform: rotate(-180deg) !important; 530 | -o-transform: rotate(-180deg) !important; 531 | -ms-transform: rotate(-180deg) !important; 532 | transform: rotate(-180deg) !important; 533 | } 534 | 535 | #art-area>#wif-str1 { 536 | position: relative; 537 | display: block; 538 | left: -27.1%; 539 | top: 12.55%; 540 | font-size: 0.76vw; 541 | } 542 | #art-area>#wif-str2 { 543 | position: relative; 544 | display: block; 545 | left: -27.1%; 546 | top: 0%; 547 | font-size: 0.76vw; 548 | -webkit-transform: rotate(-180deg) !important; 549 | -moz-transform: rotate(-180deg) !important; 550 | -o-transform: rotate(-180deg) !important; 551 | -ms-transform: rotate(-180deg) !important; 552 | transform: rotate(-180deg) !important; 553 | } 554 | 555 | #art-area>#wif-str1 { 556 | position: relative; 557 | display: block; 558 | left: -27.1%; 559 | top: 12.55%; 560 | font-size: 0.76vw; 561 | } 562 | #art-area>#wif-str2 { 563 | position: relative; 564 | display: block; 565 | left: -27.1%; 566 | top: 0%; 567 | font-size: 0.76vw; 568 | -webkit-transform: rotate(-180deg) !important; 569 | -moz-transform: rotate(-180deg) !important; 570 | -o-transform: rotate(-180deg) !important; 571 | -ms-transform: rotate(-180deg) !important; 572 | transform: rotate(-180deg) !important; 573 | } 574 | 575 | @-moz-document url-prefix() { 576 | #art-area>#addr-QR { 577 | position: relative; 578 | display: block; 579 | left: 31%; 580 | top: 42%; 581 | } 582 | #art-area>#addr-QR>svg { 583 | width: 12vw !important; 584 | height: 12vw !important; 585 | } 586 | 587 | #art-area>#wif-QR { 588 | position: relative; 589 | display: block; 590 | left: -36.5%; 591 | top: 21.5%; 592 | } 593 | #art-area>#wif-QR>svg { 594 | width: 11vw !important; 595 | height: 11vw !important; 596 | } 597 | 598 | #art-area>#addr-str1 { 599 | position: relative; 600 | display: block; 601 | left: 28%; 602 | top: 48.4%; 603 | font-size: 1.1vw; 604 | } 605 | #art-area>#addr-str2 { 606 | position: relative; 607 | display: block; 608 | left: 28%; 609 | top: 13.5%; 610 | font-size: 1.1vw; 611 | -webkit-transform: rotate(-180deg) !important; 612 | -moz-transform: rotate(-180deg) !important; 613 | -o-transform: rotate(-180deg) !important; 614 | -ms-transform: rotate(-180deg) !important; 615 | transform: rotate(-180deg) !important; 616 | } 617 | 618 | #art-area>#wif-str1 { 619 | position: relative; 620 | display: block; 621 | left: -27.25%; 622 | top: 24.22%; 623 | font-size: 0.77vw; 624 | } 625 | #art-area>#wif-str2 { 626 | position: relative; 627 | display: block; 628 | left: -27.25%; 629 | top: -1%; 630 | font-size: 0.77vw; 631 | -webkit-transform: rotate(-180deg) !important; 632 | -moz-transform: rotate(-180deg) !important; 633 | -o-transform: rotate(-180deg) !important; 634 | -ms-transform: rotate(-180deg) !important; 635 | transform: rotate(-180deg) !important; 636 | } 637 | } 638 | } 639 | -------------------------------------------------------------------------------- /src/App.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | 3 | import Header from './components/Header'; 4 | import MainPanel from './components/MainPanel'; 5 | import Footer from './components/Footer'; 6 | 7 | 8 | class App extends Component { 9 | render() { 10 | return ( 11 |
12 | 13 |
14 | 15 |
16 | 17 |
18 | ); 19 | } 20 | } 21 | 22 | export default App; 23 | -------------------------------------------------------------------------------- /src/bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BTCPrivate-Legacy/paper-wallet/10b8afbd6c469fe1a6e5341131d4ed1def1b41d5/src/bg.jpg -------------------------------------------------------------------------------- /src/bg.jpg.orig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BTCPrivate-Legacy/paper-wallet/10b8afbd6c469fe1a6e5341131d4ed1def1b41d5/src/bg.jpg.orig -------------------------------------------------------------------------------- /src/bitcointalk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BTCPrivate-Legacy/paper-wallet/10b8afbd6c469fe1a6e5341131d4ed1def1b41d5/src/bitcointalk.png -------------------------------------------------------------------------------- /src/blogger.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BTCPrivate-Legacy/paper-wallet/10b8afbd6c469fe1a6e5341131d4ed1def1b41d5/src/blogger.png -------------------------------------------------------------------------------- /src/components/Brain.jsx: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { Row, Col, Button, FormGroup, ControlLabel, Radio, FormControl } 3 | from 'react-bootstrap'; 4 | import { QRCode } from 'react-qr-svg'; 5 | import btcprivatejs from 'btcprivatejs'; 6 | 7 | class Brain extends Component { 8 | constructor(props) { 9 | super(props); 10 | this.state = { 11 | type: 'T', 12 | passphrase: '', 13 | priv: '', 14 | wif: '', 15 | addr: '' 16 | }; 17 | } 18 | 19 | updateInputValue(e) { 20 | this.setState({ 21 | passphrase: e.target.value 22 | }); 23 | } 24 | 25 | vanity(word, it) { 26 | console.log("Vanity Gen"); 27 | let priv, wif, c_wif, pub, c_pub, addr, c_addr; 28 | 29 | console.log("START---->"); 30 | for(let i = 0 ; i < it ; i++) { 31 | if((i*100/it) % 10 === 0) console.log((i*100/it) + "%"); 32 | 33 | priv = btcprivatejs.address.mkPrivKey(this.props.entropy + i); 34 | 35 | pub = btcprivatejs.address.privKeyToPubKey(priv); 36 | addr = btcprivatejs.address.pubKeyToAddr(pub); 37 | 38 | c_pub = btcprivatejs.address.privKeyToPubKey(priv, true); 39 | c_addr = btcprivatejs.address.pubKeyToAddr(c_pub); 40 | 41 | if (addr.search("zn" + word) !== -1 42 | || c_addr.search("zn" + word) !== -1) { 43 | console.log("MATCH !"); 44 | break; 45 | } 46 | } 47 | console.log("<------END"); 48 | 49 | wif = btcprivatejs.address.privKeyToWIF(priv); 50 | c_wif = btcprivatejs.address.privKeyToWIF(priv, true); 51 | this.setState({ 52 | priv: priv, 53 | wif: wif, 54 | c_wif: c_wif, 55 | pub: pub, 56 | c_pub: c_pub, 57 | addr: addr, 58 | c_addr: c_addr 59 | }); 60 | console.log(this.state); 61 | } 62 | 63 | genTAddress() { 64 | if(!this.state.passphrase) return; 65 | 66 | const words = this.state.passphrase.split(' '); 67 | if(words[0] === "Vanity") { 68 | const it = parseInt(words[2], 10); 69 | if(Number.isInteger(it)) return this.vanity(words[1], it); 70 | } 71 | 72 | const priv = btcprivatejs.address.mkPrivKey(this.state.passphrase); 73 | const privWIF = btcprivatejs.address.privKeyToWIF(priv, true); 74 | const pubKey = btcprivatejs.address.privKeyToPubKey(priv, true); 75 | const znAddr = btcprivatejs.address.pubKeyToAddr(pubKey); 76 | 77 | this.setState({ 78 | priv: priv, 79 | wif: privWIF, 80 | addr: znAddr 81 | }); 82 | } 83 | 84 | genZAddress() { 85 | if(!this.state.passphrase) return; 86 | 87 | const z_secretKey = btcprivatejs.zaddress 88 | .mkZSecretKey(this.state.passphrase); 89 | const spendingKey = btcprivatejs.zaddress 90 | .zSecretKeyToSpendingKey(z_secretKey); 91 | const a_pk = btcprivatejs.zaddress 92 | .zSecretKeyToPayingKey(z_secretKey); 93 | const pk_enc = btcprivatejs.zaddress 94 | .zSecretKeyToTransmissionKey(z_secretKey); 95 | const Zaddress = btcprivatejs.zaddress.mkZAddress(a_pk, pk_enc); 96 | 97 | this.setState({ 98 | priv: z_secretKey, 99 | wif: spendingKey, 100 | addr: Zaddress 101 | }); 102 | } 103 | 104 | handleCheckRadio(type) { 105 | this.setState({ 106 | type: type, 107 | priv: '', 108 | wif: '', 109 | addr: '' 110 | }); 111 | } 112 | 113 | getZpriv() { 114 | if (this.state.type === 'Z') 115 | return("Private Key: " + this.state.priv); 116 | } 117 | 118 | render() { 119 | return ( 120 | 121 |
122 | 123 | 124 | 125 | this.handleCheckRadio('T')} 127 | checked={this.state.type === 'T'} inline> 128 | B Address (Transparent) 129 | 130 |
131 | this.handleCheckRadio('Z')} 133 | checked={this.state.type === 'Z'} inline> 134 | Z Address (Private) 135 | 136 |
137 | 138 | 139 | 140 | Secret Passphrase 141 | this.updateInputValue(e)} 145 | /> 146 | 147 | 148 | 149 | 155 | 156 | 157 | 160 | 161 |
162 |
163 | {this.state.addr ? ( 164 | 165 | 166 |

Public

167 |

BTCP Address

168 |
169 | 176 |
177 |
178 | {this.state.addr} 179 |
180 | 181 | 182 |

Secret

183 |
184 | {this.state.type === 'T' ? ( 185 |

Private Key

186 | ) : ( 187 |

Spending Key

188 | )} 189 |
190 | 197 |
198 |
{this.state.wif}
199 |
200 |

{this.getZpriv()}

201 | 202 |
203 | ) : ( 204 | 205 | )} 206 |
207 | 208 | 209 |

210 | A Brain Wallet is generated from a secret passphrase you decide, usually a long sequence of random words or a long sentence. The purpose of a brain wallet is to be able to only remember your passphrase with no need to write it down. At anytime, anywhere, you can regenerate your wallet here with your passphrase. 211 |

212 |

213 | Warning: Choosing a **strong passphrase** is important to avoid brute-force attempts to guess your passphrase and steal your funds. 214 |

215 | 216 |
217 | 218 | ); 219 | } 220 | } 221 | 222 | export default Brain; 223 | -------------------------------------------------------------------------------- /src/components/Bulk.jsx: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { Row, Col, Button, FormGroup, ControlLabel, FormControl, Table, Radio } 3 | from 'react-bootstrap'; 4 | import { address, zaddress } from 'btcprivatejs'; 5 | 6 | class Bulk extends Component { 7 | constructor(props) { 8 | super(props); 9 | this.state = { 10 | startIndex: 1, 11 | nbRows: 1, 12 | type: 'T', 13 | pairs: [] 14 | }; 15 | } 16 | 17 | updateInputValue(e) { 18 | const _value = parseInt(e.target.value, 10); 19 | const _id = e.target.id; 20 | const _state = this.state; 21 | 22 | if(!Number.isInteger(_value)) { 23 | console.log(_value); 24 | return; 25 | } 26 | 27 | _state[_id] = _value; 28 | this.setState(_state); 29 | } 30 | 31 | genTAddress() { 32 | const _state = this.state; 33 | _state.pairs = []; 34 | 35 | for(let i = 0 ; i < this.state.nbRows ; i++) { 36 | const priv = address 37 | .mkPrivKey(this.props.entropy + new Date().getTime() + i); 38 | const privWIF = address.privKeyToWIF(priv, true); 39 | const pubKey = address.privKeyToPubKey(priv, true); 40 | const znAddr = address.pubKeyToAddr(pubKey); 41 | 42 | const _pairs = this.state.pairs; 43 | _pairs.push({ 44 | index: _state.startIndex + i, 45 | priv: priv, 46 | wif: privWIF, 47 | addr: znAddr 48 | }); 49 | 50 | _state.pairs = _pairs; 51 | this.setState(_state); 52 | } 53 | } 54 | 55 | genZAddress() { 56 | const _state = this.state; 57 | _state.pairs = []; 58 | 59 | for(let i = 0 ; i < this.state.nbRows ; i++) { 60 | const z_secretKey = zaddress 61 | .mkZSecretKey(this.props.entropy + new Date().getTime() + i); 62 | const spendingKey = zaddress 63 | .zSecretKeyToSpendingKey(z_secretKey); 64 | const a_pk = zaddress 65 | .zSecretKeyToPayingKey(z_secretKey); 66 | const pk_enc = zaddress 67 | .zSecretKeyToTransmissionKey(z_secretKey); 68 | const Zaddress = zaddress.mkZAddress(a_pk, pk_enc); 69 | 70 | const _pairs = this.state.pairs; 71 | _pairs.push({ 72 | index: _state.startIndex + i, 73 | priv: z_secretKey, 74 | wif: spendingKey, 75 | addr: Zaddress 76 | }); 77 | 78 | _state.pairs = _pairs; 79 | this.setState(_state); 80 | } 81 | } 82 | 83 | handleCheckRadio(type) { 84 | this.setState({ 85 | type: type, 86 | pairs: [] 87 | }); 88 | } 89 | 90 | render() { 91 | return ( 92 | 93 |
94 | 95 | 96 | 99 | Start Index 100 | this.updateInputValue(e)} 103 | /> 104 | 105 | 106 | 107 | 110 | Rows to generate 111 | this.updateInputValue(e)} 114 | /> 115 | 116 | 117 | 118 | 119 | this.handleCheckRadio('T')} 121 | checked={this.state.type === 'T'} inline> 122 | B Address (Transparent) 123 | 124 |
125 | this.handleCheckRadio('Z')} 127 | checked={this.state.type === 'Z'} inline> 128 | Z Address (Private) 129 | 130 |
131 | 132 | 133 | 139 | 140 | 141 | 144 | 145 |
146 |
147 | {this.state.pairs[0] ? ( 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | { 156 | this.state.type === 'Z' ? 157 | () 158 | : null 159 | } 160 | 161 | 162 | 163 | 164 | {this.state.pairs.map((pair) => ( 165 | 166 | 167 | 168 | 169 | { 170 | this.state.type === 'Z' ? 171 | () 172 | : null 173 | } 174 | 175 | ))} 176 | 177 |
#AddressSpending KeyPrivate Key
{pair.index}{pair.addr}{pair.wif}{pair.priv}
178 | 179 |
180 | ) : ( 181 | 182 | )} 183 |
184 | 185 | 186 |

187 | Generating several addresses at once can be useful for accepting BTCP payments on your website. You can import these addresses into your database and use a different address for each payment you receive. You can easily add more addresses into your database by choosing the correct start index to complete your list of addresses. 188 |

189 | 190 |
191 | 192 | ); 193 | } 194 | } 195 | 196 | export default Bulk; 197 | -------------------------------------------------------------------------------- /src/components/Details.jsx: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { Row, Col, Button, FormGroup, Radio, ControlLabel, FormControl } 3 | from 'react-bootstrap'; 4 | import { QRCode } from 'react-qr-svg'; 5 | import btcprivatejs from 'btcprivatejs'; 6 | 7 | 8 | class Details extends Component { 9 | constructor(props) { 10 | super(props); 11 | this.state = { 12 | type: 'T', 13 | input: '', 14 | priv: '', 15 | wif: '', 16 | addr: '' 17 | }; 18 | } 19 | 20 | updateInputValue(e) { 21 | const _value = e.target.value; 22 | 23 | this.setState({ 24 | input: _value 25 | }); 26 | } 27 | 28 | genTAddress() { 29 | let privWIF; 30 | let priv; 31 | 32 | try { 33 | if(!this.state.input) throw(this.state.input); 34 | 35 | if(this.state.input[0] === '5' 36 | || this.state.input[0] === 'L' 37 | || this.state.input[0] === 'K') { 38 | privWIF = this.state.input; 39 | priv = btcprivatejs.address.WIFToPrivKey(privWIF); 40 | } else { 41 | priv = this.state.input; 42 | privWIF = btcprivatejs.address.privKeyToWIF(priv, true); 43 | } 44 | } catch(e) { 45 | return alert("Invalid Private Key"); 46 | } 47 | 48 | const pubKey = btcprivatejs.address.privKeyToPubKey(priv, true); 49 | const znAddr = btcprivatejs.address.pubKeyToAddr(pubKey); 50 | 51 | this.setState({ 52 | priv: priv, 53 | wif: privWIF, 54 | addr: znAddr 55 | }); 56 | } 57 | 58 | genZAddress() { 59 | const z_secretKey = this.state.input; 60 | let spendingKey; 61 | let a_pk; 62 | let pk_enc; 63 | 64 | 65 | try { 66 | if(!z_secretKey) throw(z_secretKey); 67 | if(z_secretKey[0] !== '0') throw(z_secretKey); 68 | 69 | spendingKey = btcprivatejs.zaddress 70 | .zSecretKeyToSpendingKey(z_secretKey); 71 | a_pk = btcprivatejs.zaddress 72 | .zSecretKeyToPayingKey(z_secretKey); 73 | pk_enc = btcprivatejs.zaddress 74 | .zSecretKeyToTransmissionKey(z_secretKey); 75 | } catch(e) { 76 | return alert("Invalid Private Key"); 77 | } 78 | 79 | const Zaddress = btcprivatejs.zaddress.mkZAddress(a_pk, pk_enc); 80 | 81 | this.setState({ 82 | priv: z_secretKey, 83 | wif: spendingKey, 84 | addr: Zaddress 85 | }); 86 | } 87 | 88 | handleCheckRadio(type) { 89 | this.setState({ 90 | type: type, 91 | priv: '', 92 | wif: '', 93 | addr: '' 94 | }); 95 | } 96 | 97 | getZpriv() { 98 | if (this.state.type === 'Z') 99 | return("Private Key: " + this.state.priv); 100 | } 101 | 102 | render() { 103 | return ( 104 | 105 |
106 | 107 | 108 | 109 | this.handleCheckRadio('T')} 111 | checked={this.state.type === 'T'} inline> 112 | B Address (Transparent) 113 | 114 |
115 | this.handleCheckRadio('Z')} 117 | checked={this.state.type === 'Z'} inline> 118 | Z Address (Private) 119 | 120 |
121 | 122 | 123 | 126 | Enter Private Key 127 | this.updateInputValue(e)} 129 | /> 130 | 131 | 132 | 133 | 139 | 140 | 141 | 144 | 145 |
146 |
147 | {this.state.addr ? ( 148 | 149 | 150 |

Public

151 |

BTCP Address

152 |
153 | 160 |
161 |
162 | {this.state.addr} 163 |
164 | 165 | 166 |

Secret

167 |
168 | {this.state.type === 'T' ? ( 169 |

Private Key

170 | ) : ( 171 |

Spending Key

172 | )} 173 |
174 | 181 |
182 |

{this.state.wif}

183 |
184 |

{this.getZpriv()}

185 | 186 |
187 | ) : ( 188 | 189 | )} 190 |
191 | 192 | 193 |

194 | Entering your private key here allows you to view your Bitcoin Private (BTCP) address and print your wallet if you wish. 195 |

196 |

197 | Warning: make sure you are on paperwallet.btcprivate.org ! 198 |

199 |

200 | Your private key is a sensitive element. Whomever knows it can manage your funds. If you enter your private key into some website, double-check the URL to avoid phishing attempts. 201 |

202 | 203 |
204 | 205 | ); 206 | } 207 | } 208 | 209 | export default Details; 210 | -------------------------------------------------------------------------------- /src/components/Entropy.jsx: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { Row, Col, FormGroup, ControlLabel, FormControl, ProgressBar } 3 | from 'react-bootstrap'; 4 | 5 | import {randomBytes} from 'crypto-browserify'; 6 | 7 | class Entropy extends Component { 8 | /*constructor(props) { 9 | super(props); 10 | //const entropy = this.props.getEntropy(); 11 | //this.state = entropy; 12 | }*/ 13 | 14 | seed(e){ 15 | const _state = this.props.getEntropy(); 16 | 17 | const timeStamp = new Date().getTime(); 18 | const timeDiff = timeStamp - _state.lastInputTime; 19 | // seeding is over now we generate and display the address 20 | if (_state.seedCount === _state.seedLimit) { 21 | _state.seedCount++; 22 | 23 | _state.isStillSeeding = false; 24 | this.removePoints(); 25 | _state.random = _state.random.toString('hex'); 26 | this.props.setEntropy(_state); 27 | } 28 | // seed mouse position X and Y when mouse movements are greater than 40ms apart. 29 | else if ((_state.seedCount < _state.seedLimit) 30 | && e 31 | && (timeDiff) > 40) { 32 | 33 | _state.random = this.mergeTypedArrays( 34 | _state.random, 35 | randomBytes(((timeDiff + e.clientX + e.clientY) % 65535 ) | 0) 36 | ); 37 | 38 | this.showPoint(e.clientX, e.clientY); 39 | 40 | _state.seedCount++; 41 | _state.lastInputTime = timeStamp; 42 | } 43 | 44 | this.props.setEntropy(_state); 45 | } 46 | 47 | mergeTypedArrays(a, b) { 48 | // Checks for truthy values on both arrays 49 | if(!a && !b) console.error('Please specify valid arguments for parameters a and b.'); 50 | 51 | // Checks for truthy values or empty arrays on each argument 52 | // to avoid the unnecessary construction of a new array and 53 | // the type comparison 54 | if(!b || b.length === 0) return a; 55 | if(!a || a.length === 0) return b; 56 | 57 | // Make sure that both typed arrays are of the same type 58 | if(Object.prototype.toString.call(a) !== Object.prototype.toString.call(b)) 59 | console.error('The types of the two arguments passed for parameters a and b do not match.'); 60 | 61 | var c = new a.constructor(a.length + b.length); 62 | c.set(a); 63 | c.set(b, a.length); 64 | 65 | return c; 66 | } 67 | 68 | seedKeyPress(e) { 69 | const _state = this.props.getEntropy(); 70 | 71 | if (_state.seedCount === _state.seedLimit) { 72 | _state.seedCount++; 73 | 74 | _state.isStillSeeding = false; 75 | this.removePoints(); 76 | _state.random = _state.random.toString('hex'); 77 | this.props.setEntropy(_state); 78 | } 79 | else if ((_state.seedCount < _state.seedLimit) && e.key) { 80 | 81 | const timeStamp = new Date().getTime(); 82 | const timeDiff = timeStamp - _state.lastInputTime; 83 | const keyCode = e.key.charCodeAt(0); 84 | 85 | _state.random = this.mergeTypedArrays( 86 | _state.random, 87 | randomBytes(((timeDiff + keyCode) % 65535 ) | 0) 88 | ); 89 | 90 | _state.seedCount++; 91 | _state.lastInputTime = timeStamp; 92 | } 93 | 94 | this.props.setEntropy(_state); 95 | } 96 | 97 | getSeedingProgress(){ 98 | const _state = this.props.getEntropy(); 99 | return( 100 | Math.trunc((_state.seedCount * 100) / _state.seedLimit) 101 | ); 102 | } 103 | 104 | showPoint(x, y) { 105 | const _state = this.props.getEntropy(); 106 | 107 | var div = document.createElement("div"); 108 | div.setAttribute("class", "seedpoint"); 109 | div.style.top = y + "px"; 110 | div.style.left = x + "px"; 111 | document.body.appendChild(div); 112 | 113 | _state.seedPoints.push(div); 114 | this.props.setEntropy(_state); 115 | } 116 | 117 | removePoints() { 118 | const _state = this.props.getEntropy(); 119 | for (let i = 0; i < _state.seedPoints.length; i++) { 120 | document.body.removeChild(_state.seedPoints[i]); 121 | } 122 | _state.seedPoints = []; 123 | this.props.setEntropy(_state); 124 | } 125 | 126 | render() { 127 | return ( 128 | 129 | 130 | 131 | 134 |
this.seed(e)} 136 | >

Move your mouse around to generate randomness

137 |

138 | 139 | ... or type random letters and numbers here: 140 | this.seedKeyPress(e)} 143 | /> 144 | 145 |

146 | 147 |
148 | 149 | ); 150 | } 151 | } 152 | 153 | export default Entropy; 154 | -------------------------------------------------------------------------------- /src/components/Footer.jsx: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { Grid, Row, Col } from 'react-bootstrap'; 3 | 4 | import website from "../website.png"; 5 | import twitter from "../twitter.png"; 6 | 7 | export default class Footer extends Component { 8 | render() { 9 | return ( 10 | 11 |
12 |
13 | 14 | 15 | 27 | 28 | 29 | 30 | 31 | 32 |
33 |
34 |

35 | {/* ZCL donations to maintain the servers: t1HzsNXe9B5AL7vc3ZJp3c7ZG5zjUWSYvSi */} 36 |

37 | 38 |

39 | JavaScript Client-Side Bitcoin Private Wallet Generator 40 |

41 |
42 |
43 | ); 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /src/components/HD.jsx: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { Row, Col, Button } 3 | from 'react-bootstrap'; 4 | import { HDNode } from 'bitcoinjs-lib'; 5 | import bip39 from 'bip39'; 6 | 7 | class HD extends Component { 8 | constructor(props) { 9 | super(props); 10 | this.state = { 11 | mnemonic: '', 12 | }; 13 | } 14 | 15 | genMnemonic() { 16 | var m = bip39.entropyToMnemonic(this.props.entropy.toString(16).substring(0, 32)) 17 | //var m = bip39.generateMnemonic(); 18 | //console.log(m.toString()); 19 | 20 | var hd = HDNode.fromSeedHex(bip39.mnemonicToSeedHex(m)); 21 | //console.log(hd.toBase58()); 22 | 23 | var masterXprv = hd.toBase58(); 24 | var masterXpub = hd.neutered().toBase58(); 25 | 26 | var derivedHD = hd.deriveHardened(44).deriveHardened(183).deriveHardened(0); 27 | var derivedXprv = derivedHD.toBase58(); 28 | var derivedXpub = derivedHD.neutered().toBase58(); 29 | 30 | this.setState({ 31 | mnemonic: m, 32 | xprv: masterXprv, 33 | xpub: masterXpub, 34 | derivedXprv: derivedXprv, 35 | derivedXpub: derivedXpub 36 | }); 37 | } 38 | 39 | handleCheckRadio(type) { 40 | this.setState({ 41 | type: type, 42 | mnemonic: '', 43 | xprv: '', 44 | xpub: '', 45 | derivedXprv: '', 46 | derivedXpub: '' 47 | }); 48 | } 49 | 50 | render() { 51 | return ( 52 | 53 | 54 | 55 | 58 | 59 | 60 | 63 | 64 | 65 | 66 | {this.state.mnemonic ? ( 67 | 68 | 69 |

Private

70 |

BIP39 Mnemonic

71 |
master seed words (= master xprv)
72 |
73 | {this.state.mnemonic} 74 |
75 |
master xpub/xprv (m/)
76 |
77 | {this.state.xprv} 78 |
79 |
80 | {this.state.xpub} 81 |
82 |
xpub/xprv derived at BIP44 for BTCP, account 0 (m/44'/183'/0')
83 |
84 | {this.state.derivedXprv} 85 |
86 |
87 | {this.state.derivedXpub} 88 |
89 | 90 | 91 |
92 | ) : ( 93 | 94 | )} 95 | 96 |
97 | 98 | 99 |
100 |

101 | A Bitcoin Private HD Wallet is a mnemonic phrase of English words. These are determined by your initial mouse movements, and result in a seed for chains of wallets/addresses. These allow for chains selected by 'derivation path' (bip32/bip44), whose keys start with 'xprv'. You can also export a corresponding, view/'generate'-only 'xpub'. Your mnemonic seed words, or your master 'xprv' key, or your derived 'xprv' key will allow you to unlock, manage, and spend those corresponding funds - keep it safe. 102 |

103 |

104 | **To safeguard this wallet** you must print or otherwise record the address and private key. It is important to make a backup copy of the private key and store it in a safe location. This site does not have knowledge of your private key. If you leave/refresh the site or press the "Generate New Address" button then a new private key will be generated and the previously displayed private key will be forever lost. Your private key should be kept a secret. Whomever you share the private key with has access to spend all the BTCP associated with that address. If you print your wallet then store it in a zip lock bag to keep it safe from water. Treat a paper wallet like cash. 105 |

106 |
107 |

108 | Add funds to this wallet by instructing others to send BTCP to your BTCP address. 109 |

110 |

111 | Check your balance by entering your BTCP address on one of these explorers: 112 |

113 | 116 |
117 |

118 | To spend your BTCP, you can download a wallet from Bitcoin Private and import your private key to the p2p client wallet. It is **strongly discouraged** to spend directly from this address without importing the private key into a wallet application, since certain precautions need to be taken so you receive your change! 119 |

120 |
121 | 122 |
123 | 124 | ); 125 | } 126 | } 127 | 128 | export default HD; 129 | -------------------------------------------------------------------------------- /src/components/Header.jsx: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { Navbar, Nav, NavItem } from 'react-bootstrap'; 3 | 4 | import logoFull from "../logo_full.png"; 5 | 6 | export default class Header extends Component { 7 | 8 | render() { 9 | return ( 10 | 11 | 12 | 13 | logo 14 | 15 | 16 | 20 | 21 | ); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /src/components/Header.jsx.v0.1: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { Navbar, Nav, NavItem } from 'react-bootstrap'; 3 | 4 | import logoFull from "../logo_full.png"; 5 | 6 | export default class Header extends Component { 7 | 8 | render() { 9 | return ( 10 | 11 | 12 | 13 | logo 14 | 15 | 16 | 20 | 21 | ); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /src/components/MainPanel.jsx: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { Tabs, Tab, Row, Col, Grid } from 'react-bootstrap'; 3 | import {randomBytes} from 'crypto-browserify'; 4 | 5 | import Single from "./Single"; 6 | import Bulk from "./Bulk"; 7 | import Details from "./Details"; 8 | import Multisig from "./Multisig"; 9 | import HD from "./HD"; 10 | import Entropy from "./Entropy"; 11 | 12 | export default class MainPanel extends Component { 13 | constructor(props) { 14 | super(props); 15 | this.state = { 16 | entropy: { 17 | random: randomBytes(1), 18 | isStillSeeding: true, 19 | seedLimit: 200 + Math.floor(randomBytes(12)[11]), 20 | seedCount: 0, 21 | lastInputTime: new Date().getTime(), 22 | seedPoints: [] 23 | }, 24 | activeTab: 0 25 | }; 26 | } 27 | 28 | getCategories() { 29 | return [ 30 | { id: 0, title: "Single Address", content: Single }, 31 | { id: 1, title: "Multi-Sig Wallet", content: Multisig }, 32 | { id: 2, title: "Bulk Wallet", content: Bulk }, 33 | { id: 3, title: "Wallet Details", content: Details }, 34 | { id: 4, title: "HD Wallet", content: HD } 35 | ]; 36 | } 37 | 38 | setEntropy(x){ 39 | this.setState({entropy: x}); 40 | } 41 | getEntropy(){ 42 | return this.state.entropy; 43 | } 44 | 45 | tabContent(id) { 46 | const Comp = this.getCategories()[id].content; 47 | 48 | if( Comp === Details ){ 49 | return ; 50 | } 51 | if( this.state.entropy.isStillSeeding ){ 52 | 53 | return(); 57 | 58 | } else { 59 | return ; 60 | } 61 | } 62 | 63 | renderMainPanel() { 64 | return ( 65 | this.setState({activeNavTab: key})} 68 | className="zenTabsWrap" 69 | > 70 | {this.getCategories().map((category) => ( 71 | 76 | {this.tabContent(category.id)} 77 | 78 | ))} 79 | 80 | ); 81 | } 82 | 83 | 84 | render() { 85 | return ( 86 |
87 | 88 | 89 | 90 | {this.renderMainPanel()} 91 | 92 | 93 | 94 |
95 | ); 96 | } 97 | } 98 | -------------------------------------------------------------------------------- /src/components/MainPanel.jsx.orig: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { Tabs, Tab, Row, Col, Grid } from 'react-bootstrap'; 3 | import {randomBytes} from 'crypto-browserify'; 4 | 5 | import Single from "./Single"; 6 | import Brain from "./Brain"; 7 | import Bulk from "./Bulk"; 8 | import Details from "./Details"; 9 | import Multisig from "./Multisig"; 10 | import Paper from "./Paper"; 11 | import Entropy from "./Entropy"; 12 | 13 | export default class MainPanel extends Component { 14 | constructor(props) { 15 | super(props); 16 | this.state = { 17 | entropy: { 18 | random: randomBytes(1), 19 | isStillSeeding: true, 20 | seedLimit: 200 + Math.floor(randomBytes(12)[11]), 21 | seedCount: 0, 22 | lastInputTime: new Date().getTime(), 23 | seedPoints: [] 24 | }, 25 | activeTab: 0 26 | }; 27 | } 28 | 29 | getCategories() { 30 | return [ 31 | { id: 0, title: "Single Address", content: Single }, 32 | { id: 1, title: "Paper Wallet", content: Paper }, 33 | { id: 2, title: "Brain Wallet", content: Brain }, 34 | { id: 3, title: "Multi-Sig Wallet", content: Multisig }, 35 | { id: 4, title: "Bulk Wallet", content: Bulk }, 36 | { id: 5, title: "Wallet Details", content: Details } 37 | ]; 38 | } 39 | 40 | setEntropy(x){ 41 | this.setState({entropy: x}); 42 | } 43 | getEntropy(){ 44 | return this.state.entropy; 45 | } 46 | 47 | tabContent(id) { 48 | const Comp = this.getCategories()[id].content; 49 | 50 | if( Comp === Details ){ 51 | return ; 52 | } 53 | if( this.state.entropy.isStillSeeding ){ 54 | 55 | return(); 59 | 60 | } else { 61 | return ; 62 | } 63 | } 64 | 65 | renderMainPanel() { 66 | return ( 67 | this.setState({activeNavTab: key})} 70 | className="zenTabsWrap" 71 | > 72 | {this.getCategories().map((category) => ( 73 | 78 | {this.tabContent(category.id)} 79 | 80 | ))} 81 | 82 | ); 83 | } 84 | 85 | 86 | render() { 87 | return ( 88 |
89 | 90 | 91 | 92 | {this.renderMainPanel()} 93 | 94 | 95 | 96 |
97 | ); 98 | } 99 | } 100 | -------------------------------------------------------------------------------- /src/components/MainPanel.jsx.v1.withPaperMenu: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { Tabs, Tab, Row, Col, Grid } from 'react-bootstrap'; 3 | import {randomBytes} from 'crypto-browserify'; 4 | 5 | import Single from "./Single"; 6 | import Bulk from "./Bulk"; 7 | import Details from "./Details"; 8 | import Multisig from "./Multisig"; 9 | import Entropy from "./Entropy"; 10 | import Paper from "./Paper"; 11 | 12 | export default class MainPanel extends Component { 13 | constructor(props) { 14 | super(props); 15 | this.state = { 16 | entropy: { 17 | random: randomBytes(1), 18 | isStillSeeding: true, 19 | seedLimit: 200 + Math.floor(randomBytes(12)[11]), 20 | seedCount: 0, 21 | lastInputTime: new Date().getTime(), 22 | seedPoints: [] 23 | }, 24 | activeTab: 0 25 | }; 26 | } 27 | 28 | getCategories() { 29 | return [ 30 | { id: 0, title: "Single Address", content: Single }, 31 | { id: 1, title: "Paper Wallet", content: Paper }, 32 | { id: 2, title: "Multi-Sig Wallet", content: Multisig }, 33 | { id: 3, title: "Bulk Wallet", content: Bulk }, 34 | { id: 4, title: "Wallet Details", content: Details } 35 | ]; 36 | } 37 | 38 | setEntropy(x){ 39 | this.setState({entropy: x}); 40 | } 41 | getEntropy(){ 42 | return this.state.entropy; 43 | } 44 | 45 | tabContent(id) { 46 | const Comp = this.getCategories()[id].content; 47 | 48 | if( Comp === Details ){ 49 | return ; 50 | } 51 | if( this.state.entropy.isStillSeeding ){ 52 | 53 | return(); 57 | 58 | } else { 59 | return ; 60 | } 61 | } 62 | 63 | renderMainPanel() { 64 | return ( 65 | this.setState({activeNavTab: key})} 68 | className="zenTabsWrap" 69 | > 70 | {this.getCategories().map((category) => ( 71 | 76 | {this.tabContent(category.id)} 77 | 78 | ))} 79 | 80 | ); 81 | } 82 | 83 | 84 | render() { 85 | return ( 86 |
87 | 88 | 89 | 90 | {this.renderMainPanel()} 91 | 92 | 93 | 94 |
95 | ); 96 | } 97 | } 98 | -------------------------------------------------------------------------------- /src/components/Multisig.jsx: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { Row, Col, Button, FormGroup, ControlLabel, FormControl } 3 | from 'react-bootstrap'; 4 | import { QRCode } from 'react-qr-svg'; 5 | import { address } from 'btcprivatejs'; 6 | 7 | class Multisig extends Component { 8 | constructor(props) { 9 | super(props); 10 | this.state = { 11 | min: 2, 12 | max: 3, 13 | priv: [], 14 | redeem: '', 15 | addr: '' 16 | }; 17 | } 18 | 19 | updateInputValue(e) { 20 | const _value = parseInt(e.target.value, 10); 21 | const _id = e.target.id; 22 | const _state = this.state; 23 | 24 | if(!Number.isInteger(_value)) { 25 | console.log(_value); 26 | return; 27 | } 28 | 29 | _state[_id] = _value; 30 | this.setState(_state); 31 | } 32 | 33 | genAddress() { 34 | const _state = { 35 | min: this.state.min, 36 | max: this.state.max, 37 | priv: [], 38 | redeem: '', 39 | addr: '' 40 | }; 41 | 42 | for(let i = 0 ; i < _state.max ; i++) { 43 | _state.priv.push( address.mkPrivKey( 44 | this.props.entropy + new Date().getTime() + i 45 | )); 46 | } 47 | 48 | _state.redeem = address.mkMultiSigRedeemScript( 49 | _state.priv.map((x) => address.privKeyToPubKey(x, true)), 50 | _state.min, 51 | _state.max 52 | ); 53 | 54 | _state.addr = address.multiSigRSToAddress(_state.redeem); 55 | 56 | this.setState(_state); 57 | } 58 | 59 | render() { 60 | return ( 61 | 62 |
63 | 64 | 65 | 68 | Minimum signatures 69 | this.updateInputValue(e)} 73 | /> 74 | 75 | 76 | 77 | 80 | Total shares 81 | this.updateInputValue(e)} 85 | /> 86 | 87 | 88 | 89 | 92 | 93 | 94 | 97 | 98 | 99 |
100 | {this.state.addr ? ( 101 | 102 | 103 |

Public

104 |

BTCP Address

105 |
106 | 113 |
114 |
115 | {this.state.addr} 116 |
117 | 118 | 119 |

Secret

120 |
121 | Redeem Script : {this.state.redeem} 122 |
123 |
124 |

Private Keys

125 | {this.state.priv.map((priv) => ( 126 |
127 | 134 |

{priv}

135 |
136 | ))} 137 |
138 | 139 |
140 | ) : ( 141 | 142 | )} 143 |
144 | 145 | 146 |

147 | A Multi-Signature Wallet is useful if the funds belong to more than one person. It's like a joint account. 148 |

149 |

150 | You can choose how many people receive a key, and how many keys are required to send the funds. 151 |

152 | 153 |
154 | 155 | ); 156 | } 157 | } 158 | 159 | export default Multisig; 160 | -------------------------------------------------------------------------------- /src/components/Paper.jsx: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { Row, Col, Button } from 'react-bootstrap'; 3 | import { QRCode } from 'react-qr-svg'; 4 | import btcprivatejs from 'btcprivatejs'; 5 | 6 | import art1 from '../zen_paper_front.png'; 7 | import art2 from '../zen_paper_back.png'; 8 | 9 | class Paper extends Component { 10 | constructor(props) { 11 | super(props); 12 | this.state = { 13 | type: 'T', 14 | priv: '', 15 | wif: '', 16 | addr: '' 17 | }; 18 | } 19 | 20 | genAddress() { 21 | const priv = btcprivatejs.address 22 | .mkPrivKey(this.props.entropy + new Date().getTime()); 23 | const privWIF = btcprivatejs.address.privKeyToWIF(priv, true); 24 | const pubKey = btcprivatejs.address.privKeyToPubKey(priv, true); 25 | const znAddr = btcprivatejs.address.pubKeyToAddr(pubKey); 26 | 27 | this.setState({ 28 | priv: priv, 29 | wif: privWIF, 30 | addr: znAddr 31 | }); 32 | } 33 | 34 | render() { 35 | return ( 36 | 37 | 38 |
39 | 40 | 41 | 44 | 45 | 46 | 47 | 48 | 51 | 52 | 53 |
54 | {this.state.addr ? ( 55 | 56 | 57 | 58 |

Overview

59 | 60 | art1 63 | art2 66 | 67 |
68 | 69 | 70 | 71 | 78 | 79 | 80 | 81 | {this.state.addr} 82 | 83 | 84 | {this.state.addr} 85 | 86 | 87 | 88 | 95 | 96 | 97 | 98 | {this.state.wif} 99 | 100 | 101 | {this.state.wif} 102 | 103 | 104 |
105 | 106 | 107 |
108 | ) : ( 109 | 110 | )} 111 |
112 | 113 | 114 |

115 | A Paper Wallet is a piece of paper containing a public address and a private key. It allows you to store Bitcoin Private (BTCP) offline. 116 |

117 |

118 | These kind of wallets are vulnerable to loss and theft. You should keep it safe like jewels or cash. Therefore it is recommended either to have a backup or to generate it only for temporary use. 119 |

120 |

121 | When Printing: Print this wallet with Chrome for better image quality. 122 |

123 | 124 |
125 | 126 |
127 | ); 128 | } 129 | } 130 | 131 | export default Paper; 132 | -------------------------------------------------------------------------------- /src/components/Single.jsx: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { Row, Col, Button, FormGroup, Radio } 3 | from 'react-bootstrap'; 4 | import { QRCode } from 'react-qr-svg'; 5 | import btcprivatejs from 'btcprivatejs'; 6 | 7 | class Single extends Component { 8 | constructor(props) { 9 | super(props); 10 | this.state = { 11 | type: 'T', 12 | priv: '', 13 | wif: '', 14 | addr: '' 15 | }; 16 | } 17 | 18 | genTAddress() { 19 | const priv = btcprivatejs.address.mkPrivKey(this.props.entropy + new Date().getTime()); 20 | const privWIF = btcprivatejs.address.privKeyToWIF(priv, true); 21 | const pubKey = btcprivatejs.address.privKeyToPubKey(priv, true); 22 | const znAddr = btcprivatejs.address.pubKeyToAddr(pubKey); 23 | 24 | this.setState({ 25 | priv: priv, 26 | wif: privWIF, 27 | addr: znAddr 28 | }); 29 | } 30 | 31 | genZAddress() { 32 | const z_secretKey = btcprivatejs.zaddress 33 | .mkZSecretKey(this.props.entropy + new Date().getTime()); 34 | const spendingKey = btcprivatejs.zaddress 35 | .zSecretKeyToSpendingKey(z_secretKey); 36 | const a_pk = btcprivatejs.zaddress 37 | .zSecretKeyToPayingKey(z_secretKey); 38 | const pk_enc = btcprivatejs.zaddress 39 | .zSecretKeyToTransmissionKey(z_secretKey); 40 | const Zaddress = btcprivatejs.zaddress.mkZAddress(a_pk, pk_enc); 41 | 42 | this.setState({ 43 | priv: z_secretKey, 44 | wif: spendingKey, 45 | addr: Zaddress 46 | }); 47 | } 48 | 49 | handleCheckRadio(type) { 50 | this.setState({ 51 | type: type, 52 | priv: '', 53 | wif: '', 54 | addr: '' 55 | }); 56 | } 57 | 58 | getZpriv() { 59 | if (this.state.type === 'Z') 60 | return("Private Key: " + this.state.priv); 61 | } 62 | 63 | render() { 64 | return ( 65 | 66 | 67 | 68 | 69 | this.handleCheckRadio('T')} 71 | checked={this.state.type === 'T'} inline> 72 | B Address (Transparent) 73 | 74 |
75 | this.handleCheckRadio('Z')} 77 | checked={this.state.type === 'Z'} inline> 78 | Z Address (Private) 79 | 80 |
81 | 82 | 83 | 84 | 90 | 91 | 92 | 95 | 96 |
97 | 98 | {this.state.addr ? ( 99 | 100 | 101 |

Public

102 |

BTCP Address

103 |
104 | 110 |
111 |
112 | {this.state.addr} 113 |
114 | 115 | 116 |

Secret

117 |
118 | {this.state.type === 'T' ? ( 119 |

Private Key

120 | ) : ( 121 |

Spending Key

122 | )} 123 |
124 | 130 |
131 |
{this.state.wif}
132 |
133 |
{this.getZpriv()}
134 | 135 |
136 | ) : ( 137 | 138 | )} 139 |
140 | 141 | 142 |
143 |

144 | A Bitcoin Private Wallet can be as simple as a single pairing of an address with its corresponding private key. You can share your address to receive BTCP payments, however your private key is what allows you to unlock, manage, and send your funds - keep it safe. 145 |

146 |

147 | **To safeguard this wallet** you must print or otherwise record the address and private key. It is important to make a backup copy of the private key and store it in a safe location. This site does not have knowledge of your private key. If you leave/refresh the site or press the "Generate New Address" button then a new private key will be generated and the previously displayed private key will be forever lost. Your private key should be kept a secret. Whomever you share the private key with has access to spend all the BTCP associated with that address. If you print your wallet then store it in a zip lock bag to keep it safe from water. Treat a paper wallet like cash. 148 |

149 |
150 |

151 | Add funds to this wallet by instructing others to send BTCP to your BTCP address. 152 |

153 |

154 | Check your balance by entering your BTCP address on one of these explorers: 155 |

156 | 159 |
160 |

161 | To spend your BTCP, you can download a wallet from Bitcoin Private and import your private key to the p2p client wallet. It is **strongly discouraged** to spend directly from this address without importing the private key into a wallet application, since certain precautions need to be taken so you receive your change! 162 |

163 |
164 | 165 |
166 | 167 | ); 168 | } 169 | } 170 | 171 | export default Single; 172 | -------------------------------------------------------------------------------- /src/discord.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BTCPrivate-Legacy/paper-wallet/10b8afbd6c469fe1a6e5341131d4ed1def1b41d5/src/discord.png -------------------------------------------------------------------------------- /src/facebook.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BTCPrivate-Legacy/paper-wallet/10b8afbd6c469fe1a6e5341131d4ed1def1b41d5/src/facebook.png -------------------------------------------------------------------------------- /src/forum.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BTCPrivate-Legacy/paper-wallet/10b8afbd6c469fe1a6e5341131d4ed1def1b41d5/src/forum.png -------------------------------------------------------------------------------- /src/github.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BTCPrivate-Legacy/paper-wallet/10b8afbd6c469fe1a6e5341131d4ed1def1b41d5/src/github.png -------------------------------------------------------------------------------- /src/grid-world.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BTCPrivate-Legacy/paper-wallet/10b8afbd6c469fe1a6e5341131d4ed1def1b41d5/src/grid-world.png -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { render } from 'react-dom'; 3 | 4 | import registerServiceWorker from './registerServiceWorker'; 5 | 6 | import App from './App.js'; 7 | import './App.css'; 8 | 9 | render(, document.getElementById('root')); 10 | registerServiceWorker(); 11 | -------------------------------------------------------------------------------- /src/logo_: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BTCPrivate-Legacy/paper-wallet/10b8afbd6c469fe1a6e5341131d4ed1def1b41d5/src/logo_ -------------------------------------------------------------------------------- /src/logo_full.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BTCPrivate-Legacy/paper-wallet/10b8afbd6c469fe1a6e5341131d4ed1def1b41d5/src/logo_full.png -------------------------------------------------------------------------------- /src/logo_small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BTCPrivate-Legacy/paper-wallet/10b8afbd6c469fe1a6e5341131d4ed1def1b41d5/src/logo_small.png -------------------------------------------------------------------------------- /src/reddit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BTCPrivate-Legacy/paper-wallet/10b8afbd6c469fe1a6e5341131d4ed1def1b41d5/src/reddit.png -------------------------------------------------------------------------------- /src/registerServiceWorker.js: -------------------------------------------------------------------------------- 1 | // In production, we register a service worker to serve assets from local cache. 2 | 3 | // This lets the app load faster on subsequent visits in production, and gives 4 | // it offline capabilities. However, it also means that developers (and users) 5 | // will only see deployed updates on the "N+1" visit to a page, since previously 6 | // cached resources are updated in the background. 7 | 8 | // To learn more about the benefits of this model, read https://goo.gl/KwvDNy. 9 | // This link also includes instructions on opting out of this behavior. 10 | 11 | const isLocalhost = Boolean( 12 | window.location.hostname === 'localhost' || 13 | // [::1] is the IPv6 localhost address. 14 | window.location.hostname === '[::1]' || 15 | // 127.0.0.1/8 is considered localhost for IPv4. 16 | window.location.hostname.match( 17 | /^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/ 18 | ) 19 | ); 20 | 21 | export default function register() { 22 | if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) { 23 | // The URL constructor is available in all browsers that support SW. 24 | const publicUrl = new URL(process.env.PUBLIC_URL, window.location); 25 | if (publicUrl.origin !== window.location.origin) { 26 | // Our service worker won't work if PUBLIC_URL is on a different origin 27 | // from what our page is served on. This might happen if a CDN is used to 28 | // serve assets; see https://github.com/facebookincubator/create-react-app/issues/2374 29 | return; 30 | } 31 | 32 | window.addEventListener('load', () => { 33 | const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`; 34 | 35 | if (!isLocalhost) { 36 | // Is not local host. Just register service worker 37 | registerValidSW(swUrl); 38 | } else { 39 | // This is running on localhost. Lets check if a service worker still exists or not. 40 | checkValidServiceWorker(swUrl); 41 | } 42 | }); 43 | } 44 | } 45 | 46 | function registerValidSW(swUrl) { 47 | navigator.serviceWorker 48 | .register(swUrl) 49 | .then(registration => { 50 | registration.onupdatefound = () => { 51 | const installingWorker = registration.installing; 52 | installingWorker.onstatechange = () => { 53 | if (installingWorker.state === 'installed') { 54 | if (navigator.serviceWorker.controller) { 55 | // At this point, the old content will have been purged and 56 | // the fresh content will have been added to the cache. 57 | // It's the perfect time to display a "New content is 58 | // available; please refresh." message in your web app. 59 | console.log('New content is available; please refresh.'); 60 | } else { 61 | // At this point, everything has been precached. 62 | // It's the perfect time to display a 63 | // "Content is cached for offline use." message. 64 | console.log('Content is cached for offline use.'); 65 | } 66 | } 67 | }; 68 | }; 69 | }) 70 | .catch(error => { 71 | console.error('Error during service worker registration:', error); 72 | }); 73 | } 74 | 75 | function checkValidServiceWorker(swUrl) { 76 | // Check if the service worker can be found. If it can't reload the page. 77 | fetch(swUrl) 78 | .then(response => { 79 | // Ensure service worker exists, and that we really are getting a JS file. 80 | if ( 81 | response.status === 404 || 82 | response.headers.get('content-type').indexOf('javascript') === -1 83 | ) { 84 | // No service worker found. Probably a different app. Reload the page. 85 | navigator.serviceWorker.ready.then(registration => { 86 | registration.unregister().then(() => { 87 | window.location.reload(); 88 | }); 89 | }); 90 | } else { 91 | // Service worker found. Proceed as normal. 92 | registerValidSW(swUrl); 93 | } 94 | }) 95 | .catch(() => { 96 | console.log( 97 | 'No internet connection found. App is running in offline mode.' 98 | ); 99 | }); 100 | } 101 | 102 | export function unregister() { 103 | if ('serviceWorker' in navigator) { 104 | navigator.serviceWorker.ready.then(registration => { 105 | registration.unregister(); 106 | }); 107 | } 108 | } 109 | -------------------------------------------------------------------------------- /src/telegram.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BTCPrivate-Legacy/paper-wallet/10b8afbd6c469fe1a6e5341131d4ed1def1b41d5/src/telegram.png -------------------------------------------------------------------------------- /src/twitter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BTCPrivate-Legacy/paper-wallet/10b8afbd6c469fe1a6e5341131d4ed1def1b41d5/src/twitter.png -------------------------------------------------------------------------------- /src/website.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BTCPrivate-Legacy/paper-wallet/10b8afbd6c469fe1a6e5341131d4ed1def1b41d5/src/website.png -------------------------------------------------------------------------------- /src/youtube.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BTCPrivate-Legacy/paper-wallet/10b8afbd6c469fe1a6e5341131d4ed1def1b41d5/src/youtube.png -------------------------------------------------------------------------------- /src/zen_paper_back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BTCPrivate-Legacy/paper-wallet/10b8afbd6c469fe1a6e5341131d4ed1def1b41d5/src/zen_paper_back.png -------------------------------------------------------------------------------- /src/zen_paper_front.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BTCPrivate-Legacy/paper-wallet/10b8afbd6c469fe1a6e5341131d4ed1def1b41d5/src/zen_paper_front.png -------------------------------------------------------------------------------- /src/zen_paper_front_sm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BTCPrivate-Legacy/paper-wallet/10b8afbd6c469fe1a6e5341131d4ed1def1b41d5/src/zen_paper_front_sm.png --------------------------------------------------------------------------------