]> Cypherpunks.ru repositories - nncp.git/commitdiff
Fix invalid placeholders of newly generated private and public Noise keys
authorSergey Matveev <stargrave@stargrave.org>
Fri, 13 Dec 2019 14:57:51 +0000 (17:57 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Fri, 13 Dec 2019 15:47:08 +0000 (18:47 +0300)
doc/news.ru.texi
doc/news.texi
src/cmd/nncp-cfgnew/main.go

index d99a621ecac048171d449be586b48b6d14a9599c..54dbe00ac779994f57ee00a66e8434efbdedddcf 100644 (file)
@@ -5,6 +5,11 @@
 @subsection Релиз 5.1.2
 @itemize
 
+@item
+Исправлена ошибка: в новосозданных конфигурационных файлах, приватный
+публичный ключ Noise были поменяны местами, что приводило к
+невозможности online аутентификации нод.
+
 @item
 Явная синхронизация (fsync) директорий для гарантированного
 переименования файлов.
index 5b9d06bba8fe43683531d9b4ee37f075db2eba26..85095ba06a9db9332eede2f19287a6958857cbe7 100644 (file)
@@ -7,6 +7,10 @@ See also this page @ref{Новости, on russian}.
 @section Release 5.1.2
 @itemize
 
+@item
+Bugfix: private and public Noise keys were swapped in newly created
+configuration files, that lead to inability to authenticate online peers.
+
 @item
 Explicit directories fsync-ing for guaranteed files renaming.
 
index e2eac99d0c8affde1cdf17aae09de357ea858499..70bd1dcd4d190fb5bea47d8a59312748cb2fd372 100644 (file)
@@ -86,8 +86,8 @@ func main() {
                        nncp.ToBase32(nodeOur.ExchPrv[:]),
                        nncp.ToBase32(nodeOur.SignPub[:]),
                        nncp.ToBase32(nodeOur.SignPrv[:]),
-                       nncp.ToBase32(nodeOur.NoisePub[:]),
                        nncp.ToBase32(nodeOur.NoisePrv[:]),
+                       nncp.ToBase32(nodeOur.NoisePub[:]),
                        nodeOur.Id.String(),
                        nncp.ToBase32(nodeOur.ExchPub[:]),
                        nncp.ToBase32(nodeOur.SignPub[:]),
@@ -220,8 +220,8 @@ func main() {
                        nncp.ToBase32(nodeOur.ExchPrv[:]),
                        nncp.ToBase32(nodeOur.SignPub[:]),
                        nncp.ToBase32(nodeOur.SignPrv[:]),
-                       nncp.ToBase32(nodeOur.NoisePub[:]),
                        nncp.ToBase32(nodeOur.NoisePrv[:]),
+                       nncp.ToBase32(nodeOur.NoisePub[:]),
                        nodeOur.Id.String(),
                        nncp.ToBase32(nodeOur.ExchPub[:]),
                        nncp.ToBase32(nodeOur.SignPub[:]),