From a28cda222cc7c94194e672b36f76ec98341c4d9a Mon Sep 17 00:00:00 2001 From: Cheng Date: Mon, 23 May 2022 16:06:01 +1000 Subject: [PATCH] minor layout --- display_wallet.cpp | 2 +- docs/blockdag_consensus.md | 2 +- docs/libraries.md | 4 ++-- docs/merkle_patricia_dag.md | 4 ++-- docs/number_encoding.md | 4 ++-- docs/replacing_TCP.md | 2 +- docs/scale_clients_trust.md | 2 +- docs/writing_and_editing_documentation.md | 4 ++-- frame.cpp | 2 +- frame.h | 3 +-- introspection_of_standard_C_types.h | 2 +- localization.h | 2 +- ristretto255.cpp | 1 - ristretto255.h | 2 +- testbed.cpp | 2 +- 15 files changed, 18 insertions(+), 20 deletions(-) diff --git a/display_wallet.cpp b/display_wallet.cpp index 42e488d..133f485 100644 --- a/display_wallet.cpp +++ b/display_wallet.cpp @@ -102,7 +102,7 @@ void display_wallet::OnClose(wxCloseEvent& event) { // and to object to the closing in a "file not saved" type situation. // https://docs.wxwidgets.org/trunk/classwx_close_event.html DestroyChildren(); - Destroy(); //Default handler will destroy the window. This is our handler for the user calling close, + Destroy(); //Default handler will destroy the window. This is our handler for the user calling close, // replacing the default handler.' if (singletonFrame->m_panel ==this)singletonFrame->m_panel = nullptr; diff --git a/docs/blockdag_consensus.md b/docs/blockdag_consensus.md index fad0b24..9e2d919 100644 --- a/docs/blockdag_consensus.md +++ b/docs/blockdag_consensus.md @@ -81,7 +81,7 @@ its total. On each block of the chain, a peer’s rank is the bit position of the highest bit of the running total that rolled over when its stake was added for that -block. +block. So if Bob has a third of the stake of Carol, and $N$ is a rank that corresponds to bit position higher than the stake of either of them, then diff --git a/docs/libraries.md b/docs/libraries.md index 287a424..93a48a5 100644 --- a/docs/libraries.md +++ b/docs/libraries.md @@ -145,7 +145,7 @@ It has become painfully apparent that building a blockchain is a very large proj Polkadot is a blockchain ecosystem, and substack a family of libraries for constructing blockchains. It is a lot a easier to refactor an existing -blockchain than to start entirely from scratch. [Near] is way ahead of me, +blockchain than to start entirely from scratch. [Near] is way ahead of me, because not suffering from not invented here syndrome. Polkadot is designed to make its ecosystem subordinate to the primary @@ -553,7 +553,7 @@ generate proofs that prove something about the results of hashes and elliptic point operations, making very difficult to produce a proof that a pile of proofs in the pre-image of a merkle tree have been verified. I suspect that a prover might take a very very long time to produce such a -proof. +proof. The proofs are succinct, in that you can prove something about a gigantic pile of data and the size of the proof and the time taken to verify scarcely diff --git a/docs/merkle_patricia_dag.md b/docs/merkle_patricia_dag.md index 0d226b3..345c188 100644 --- a/docs/merkle_patricia_dag.md +++ b/docs/merkle_patricia_dag.md @@ -123,7 +123,7 @@ The resulting patricia tree with infix keys is: style="background-color:#FF9" stroke-width="1.5" stroke-linecap="round" > + fill-rule="evenodd" fill="black" > + font-weight="400" fill-rule="evenodd" fill="black" > diff --git a/docs/number_encoding.md b/docs/number_encoding.md index 84c6ba4..e3f2a46 100644 --- a/docs/number_encoding.md +++ b/docs/number_encoding.md @@ -1,7 +1,7 @@ --- # katex title: Number encoding -... +--- # The problem to be solved As computers and networks grow, any fixed length fields @@ -90,7 +90,7 @@ are similarly represented by four base 58 characters. And so on, for arbitrarily large values. A truly enormous number is going to start with `zzzz....`, `z` being the representation of $58-1$ in base 58. -This amounts to shifting the underlying value to the appropriate range, then displaying it as the shifted base 58 value. +This amounts to shifting the underlying value to the appropriate range, then displaying it as the shifted base 58 value. We display a value in the range $0\le n \lt 58/2$ as itself, diff --git a/docs/replacing_TCP.md b/docs/replacing_TCP.md index 22c3cc5..4cee798 100644 --- a/docs/replacing_TCP.md +++ b/docs/replacing_TCP.md @@ -428,7 +428,7 @@ his private network address space, nor his subnet of the globally routable address space, gets sent to the internet facing network interface. Further, he would like every computer on his network to be automatically -assigned a globally routable address if it uses a name in the global system, +assigned a globally routable address if it uses a name in the global system, or a private fd:: address if it is using a name not in the global system, so that the first time his computer tries to access the network with the domain name he just assigned, it gets a unique network address which will never diff --git a/docs/scale_clients_trust.md b/docs/scale_clients_trust.md index ca8e388..84fa3af 100644 --- a/docs/scale_clients_trust.md +++ b/docs/scale_clients_trust.md @@ -279,7 +279,7 @@ which claims: setup, with the best of SNARKs, support for recursion and low verification cost ... - ... transpiled to ZK bytecode, which can be executed efficiently in our VM running inside a STARK. + ... transpiled to ZK bytecode, which can be executed efficiently in our VM running inside a STARK. So, if you have their VM that can run inside a stark, and their ZK bytecode, you can write your own ZK language to support a friendly diff --git a/docs/writing_and_editing_documentation.md b/docs/writing_and_editing_documentation.md index 1be88ed..2e817f0 100644 --- a/docs/writing_and_editing_documentation.md +++ b/docs/writing_and_editing_documentation.md @@ -32,7 +32,7 @@ navigation at your fingertips.] This layout is in some way automatically generated on the server, which sucks. Probably relies on server side include, which is the easiest way to -do it.The documentation needs to be in every install and every repository. +do it.The documentation needs to be in every install and every repository. Thus wxWidgets documentation on the server has nice organizational style, but on each person's individual installed copy, disorganized crap. @@ -55,7 +55,7 @@ and any subdirectories. On reflection, we will not use any cleverness to have a single header bar file that all html files use because each top bar of each html file will b different, having different items highlighted, and according to its depth in -the tree, a different number of '../' prepended to the links in the top bar. +the tree, a different number of '../' prepended to the links in the top bar. Each markdown file and directory in a directory should have a short human friendly name, which will correspond to the name in the top bar, diff --git a/frame.cpp b/frame.cpp index 530dc1f..f18e2c8 100644 --- a/frame.cpp +++ b/frame.cpp @@ -219,7 +219,7 @@ void Frame::OnDeleteConfiguration(wxCommandEvent&) using ro::bin2hex, ro::to_base64_string; void Frame::NewWallet(wxFileName& filename, ristretto255::hash<256>& secret) { /*If creation fails, abort with exception. If it succeeds, set LastUsed to default filename. - The exception in unit test should simply generate an error message, but if run during initialization, + The exception in unit test should simply generate an error message, but if run during initialization, should bring up the more complex UI for constructing or selecting your wallet file.*/ wxLogMessage(_wx("New wallet file %s"), filename.GetFullPath()); std::unique_ptr db{ nullptr }; diff --git a/frame.h b/frame.h index 45a7a0d..302a3a3 100644 --- a/frame.h +++ b/frame.h @@ -1,7 +1,7 @@ #pragma once template // This class exists to record the needed to unbind a drop down menu action and delete -// the corresponding item from the drop down menu when the handler is destroyed. +// the corresponding item from the drop down menu when the handler is destroyed. // (Because the handler is a method of an object that is about to be destroyed.) // Also avoids the need for manually creating a new windowid to link each additional bind // to each menu item, thus avoids the likelihood of mismatching binds and menu entries. @@ -91,4 +91,3 @@ public: }; extern Frame* singletonFrame; - diff --git a/introspection_of_standard_C_types.h b/introspection_of_standard_C_types.h index a327418..a0146f2 100644 --- a/introspection_of_standard_C_types.h +++ b/introspection_of_standard_C_types.h @@ -113,7 +113,7 @@ namespace ro { * and whose members have the spaceship operator * nonexistent arithemetic values of the shorter array * are considered zero - * Existent non arithmetic values are considered greater than + * Existent non arithmetic values are considered greater than * nonexistent non arithemetic values */ template std::enable_if_t, decltype(std::span(declval())[0] <=> std::span(declval())[0]) >operator <=>( diff --git a/localization.h b/localization.h index 0606243..c29c4aa 100644 --- a/localization.h +++ b/localization.h @@ -43,7 +43,7 @@ extern const char sz_existing_secret[]; extern const char sz_open_existing_wallet[]; extern const char sz_existing_wallet[]; extern const char sz_text_buffer_overflow[]; -extern const char sz_unknown_error[]; +extern const char sz_unknown_error[]; extern const char szAboutWallet[]; extern const char szAboutTitle[]; diff --git a/ristretto255.cpp b/ristretto255.cpp index 0a3c2e6..8e2e37c 100644 --- a/ristretto255.cpp +++ b/ristretto255.cpp @@ -143,4 +143,3 @@ template<> CompileSizedString < (sizeof(scalar) * 8 + 5) / 6> ); return sz; } - diff --git a/ristretto255.h b/ristretto255.h index 2892367..0460991 100644 --- a/ristretto255.h +++ b/ristretto255.h @@ -597,7 +597,7 @@ namespace ristretto255 { // After loading a point as a blog from the network, from the database, // or from user data typed as text, have to check for validity. bool valid(void) const { return 0 != crypto_core_ristretto255_is_valid_point(&blob[0]); } - explicit constexpr point(std::array&& in) : + explicit constexpr point(std::array&& in) : blob{ std::forward>(in) } { }; static_assert(crypto_core_ristretto255_BYTES == 32, "256 bit points expected"); ~point() = default; diff --git a/testbed.cpp b/testbed.cpp index c6dc1b6..3a1f5ae 100644 --- a/testbed.cpp +++ b/testbed.cpp @@ -42,7 +42,7 @@ No mechanism for input is available. You generally do not need it because you Uncaught exceptions result in unit test failure, but not in an error message in the main program UI. -If using a dialog, exceptions within the dialog will result in an error message in the +If using a dialog, exceptions within the dialog will result in an error message in the main program UI, rather than in the unit test result, since the unit test is over before the dialog runs. */