From 9ddbec04942a31334304187042a80610e16b3d9d Mon Sep 17 00:00:00 2001 From: Umar Bolatov Date: Sat, 8 Feb 2020 14:35:52 -0800 Subject: [PATCH 1/5] Add .editorconfig file to enforce editor rules --- .editorconfig | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..b3dfee7 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,7 @@ +root = true + +[*] +end_of_line = lf +insert_final_newline = true +indent_style = space +indent_size = 2 From 4afc11e92efe683cdb4adcd4dfd878a347b65a86 Mon Sep 17 00:00:00 2001 From: Umar Bolatov Date: Sat, 8 Feb 2020 14:41:42 -0800 Subject: [PATCH 2/5] Add newline ending to atlas.json --- atlas.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atlas.json b/atlas.json index 5ea5360..c72fbc8 100644 --- a/atlas.json +++ b/atlas.json @@ -53,4 +53,4 @@ "lang": "en", "accent_color": "", "templating": false -} \ No newline at end of file +} From 9f54a72d05f3d633c8b64f95af0e3f06668923f9 Mon Sep 17 00:00:00 2001 From: Umar Bolatov Date: Sat, 8 Feb 2020 15:31:50 -0800 Subject: [PATCH 3/5] Trim trailing whitespace --- 01_introduction.asciidoc | 2 +- 02_getting_started.asciidoc | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/01_introduction.asciidoc b/01_introduction.asciidoc index 702ec9e..dc96e95 100644 --- a/01_introduction.asciidoc +++ b/01_introduction.asciidoc @@ -2,7 +2,7 @@ [[intro_what_is_the_lightning_network]] == Introduction -Welcome to Mastering the Lightning Network or "LN" as we'll call it throughout the book! +Welcome to Mastering the Lightning Network or "LN" as we'll call it throughout the book! The LN is a protocol for using Bitcoin in a smart and non obvious way. Thus it is a second layer technology on top of Bitcoin. It is changing the way people exchange value online and it's one of the most exciting advancements to happen to the Bitcoin network over the past few years. Right now, LN is in its infancy. In concept it's about 5 years old, in implementation about 3 years old. We're only beginning to see the opportunities LN provides including improved privacy, speed, and scale. With core knowledge of LN, you can help shape the future of the network while building opportunities for yourself as well. Some basic knowledge about Bitcoin is assumed but can be readily acquired by reading the first two chapters of _Mastering Bitcoin_ which are available for free online. diff --git a/02_getting_started.asciidoc b/02_getting_started.asciidoc index 6f59d77..cac24c1 100644 --- a/02_getting_started.asciidoc +++ b/02_getting_started.asciidoc @@ -35,9 +35,9 @@ Blockchains, especially open blockchains like Bitcoin, attempt to minimize or el Every other component of a lightning wallet brings similar considerations of trust. If all the components are under the control of the user, then the amount of trust in third parties is minimized, bringing maximum power to the user. Of course, this is a direct trade-off, as with that power comes the responsibility to manage complex software. -Every user must consider their own technical skills before deciding what type of lightning wallet to use. Those with strong technical skills should use a lightning wallet that puts all of the components under the direct control of the user. Those with less technical skill but a desire to control their funds, should choose a _non-custodial_ lightning wallet, even if some of the components (other than the keystore) rely on some trusted third parties. -Often the trust in those cases relates to privacy. -If users decide to outsource some functionality to a third party they usually give up some privacy as the third party will learn some information. +Every user must consider their own technical skills before deciding what type of lightning wallet to use. Those with strong technical skills should use a lightning wallet that puts all of the components under the direct control of the user. Those with less technical skill but a desire to control their funds, should choose a _non-custodial_ lightning wallet, even if some of the components (other than the keystore) rely on some trusted third parties. +Ofter the trust in those cases relates to privacy. +If users decides to outsource some functionality to a thrid party they usually give up some privacy as the third party will learn some information. Finally, those seeking simplicity and convenience, even at the expense of control and security, may choose a custodial lightning wallet. This is the least challenging option, but it _undermines the trust model of cryptocurrency_ and should, therefore, be considered only as a stepping stone towards more control and self-reliance. From 1639d2784f7c41df07159ad23d0efe0c910915e7 Mon Sep 17 00:00:00 2001 From: Umar Bolatov Date: Sat, 8 Feb 2020 15:32:41 -0800 Subject: [PATCH 4/5] Add trim_trailing_whitespace to .editorconfig --- .editorconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/.editorconfig b/.editorconfig index b3dfee7..0daf12d 100644 --- a/.editorconfig +++ b/.editorconfig @@ -5,3 +5,4 @@ end_of_line = lf insert_final_newline = true indent_style = space indent_size = 2 +trim_trailing_whitespace = true From 6796f85fa8678c9d2940362782744aa02f40485f Mon Sep 17 00:00:00 2001 From: Umar Bolatov Date: Sat, 8 Feb 2020 15:37:05 -0800 Subject: [PATCH 5/5] Fix typos --- 02_getting_started.asciidoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/02_getting_started.asciidoc b/02_getting_started.asciidoc index cac24c1..c8427a1 100644 --- a/02_getting_started.asciidoc +++ b/02_getting_started.asciidoc @@ -36,8 +36,8 @@ Blockchains, especially open blockchains like Bitcoin, attempt to minimize or el Every other component of a lightning wallet brings similar considerations of trust. If all the components are under the control of the user, then the amount of trust in third parties is minimized, bringing maximum power to the user. Of course, this is a direct trade-off, as with that power comes the responsibility to manage complex software. Every user must consider their own technical skills before deciding what type of lightning wallet to use. Those with strong technical skills should use a lightning wallet that puts all of the components under the direct control of the user. Those with less technical skill but a desire to control their funds, should choose a _non-custodial_ lightning wallet, even if some of the components (other than the keystore) rely on some trusted third parties. -Ofter the trust in those cases relates to privacy. -If users decides to outsource some functionality to a thrid party they usually give up some privacy as the third party will learn some information. +Often the trust in those cases relates to privacy. +If users decide to outsource some functionality to a third party they usually give up some privacy as the third party will learn some information. Finally, those seeking simplicity and convenience, even at the expense of control and security, may choose a custodial lightning wallet. This is the least challenging option, but it _undermines the trust model of cryptocurrency_ and should, therefore, be considered only as a stepping stone towards more control and self-reliance.