Skip to content
View lcryp's full-sized avatar
🌴
On vacation
🌴
On vacation

Block or report lcryp

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
lcryp/README.md

LCRYP CORE INTEGRATION/STAGING TREE

Download the finished product (Portable) LcRyp-Wallet all versions, the latest version

Official site (the site is still under development)

What is LcRyp Core?

LcRyp Core connects to the LcRyp peer-to-peer network to download and fully validate blocks and transactions. It also includes a wallet and graphical user interface, which can be optionally built. And the possibility of mining on your personal computer.

License

LcRyp Core is released under the terms of the MIT license. For more information or see Copyright (c) 2022 LcRyp

For whom it was created?

The LcRyp coin was created for all those who did not have time to buy bitcoin at 50 cents) or have it on the processor of their personal computer, without video cards and without pools. Just install the ready-made version and run the application on your computer.

Mining!

The LcRyp-Qt coin allows you to mining directly from your own GUI (or from the command line) using your CPU cores!

Protection with all the best

The source code of the LcRyp coin is based on the latest version of bitcoin, so it supports all the created bitcoin achievements. Moreover, the development is carried out in such a way that the architecture of the LcRyp code supports the ability to update its code according to any future bitcoin source code updates.

Innovations in the LcRyp code are dictated by time

The main difference is in the implementation of the complexity adjustment using the MIDAS algorithm. Based on the fact that when all bitcoins started there were no super-powerful mining farms and other equipment, the algorithm for linear difficulty correction was enough for bitcoin. In this form, changes in difficulty occurred after 2 weeks. But if someone by that time had the current potency he just would have dealt all the coin in two weeks) and if it were time to change the difficulty, the coins would have ended in 2 weeks). In today's realities, it is necessary to implement a more advanced algorithm capable of dynamically changing the complexity. depending on how the power of miners changes to stabilize the average difficulty of mining a block in 10 minutes. and thus prevent super-farms from pere-minting the coin.

MIDAS - Multi Interval Difficulty Adjustment System

Responds well to sudden changes in hashing power whether up or down. Emergency adjustments if needed usually kick in within ten blocks, and in non-emergencies it’s got a responsive but gradual and well-damped adjustment. Additionally, it makes an effort to keep the block chain height approximately synchronized with real time. If it’s more behind, MIDAS will be trying to make block times about 10% faster than nominal, and if it’s more ahead, it will be trying to make block times about 10% slower than nominal. In between, there’s a linear interpolation between those speeds – meaning the point toward which MIDAS regulates will be exactly the nominal block time whenever there’s an exact correspondence between block height and real time. By checking multiple different intervals and making adjustments only when there is agreement as judged by several intervals as to which way and approximately how extreme the adjustment should be, MIDAS both avoids twitchiness and permits fairly extreme adjustments when they are actually needed. Because the intervals it checks have no common divisor, it is also extremely resistant to timewarp attacks; there are no 'harmonics' for an attacker to exploit that would allow bogus timestamps at particular intervals to reinforce each other leading to spurious adjustments, and no way for a bogus timestamp to cause a disproportional difficulty adjustment.

Development Process

The master branch is regularly built and tested, but it is not guaranteed to be completely stable. Tags are created regularly from release branches to indicate new official, stable release versions of LcRyp Core.

WINDOWS BUILD NOTES

Below are some notes on how to build LcRyp Core for Windows x64.

The options known to work for building LcRyp Core on Windows are:

On Windows x64, using Microsoft Visual Studio

Building LcRyp Core with Visual Studio

Introduction

Visual Studio 2022 is minimum required to build LcRyp Core.

Solution and project files to Visual Studio can be found in the build_msvc directory.

To build LcRyp Core from the command-line, it is sufficient to only install the Visual Studio Build Tools component.

Catalogs by default (the explanation will be in the text below)

  • Visual Studio 2022 С:\Program Files\Microsoft Visual Studio\2022\
  • Source codes LcRyp C:\lcryp-master\
  • Vcpkg ready assembly C:\vcpkg\
  • QT source codes C:\qt-everywhere-src-5.15.6\
  • QT ready assembly C:\qt-static-5.15.6\
  • Python C:\Python38\

Environment Variables

  • QTBASEDIR C:\qt-static-5.15.6\
  • PYTHONUTF8 1
  • Path add to existing line C:\Python38\Scripts\;C:\Python38\; If it is not automatically added during installation, install it yourself. Just check.

Download the project LcRyp source codes [LcRyp source]

  • Download source codes lcryp-master
  • Use a folder C:\lcryp-master\

Download the Microsoft Visual Studio [MVS install]

Installation Python [Python install]

For the correct assembly of projects, it is necessary to be able to execute python scripts.

  • Get started with Python
  • Python 3.8 Install
  • Python installation folder C:\Python38\
  • Create environment variables PYTHONUTF8 1 and Path add to existing line C:\Python38\Scripts\;C:\Python38\;
setx PYTHONUTF8 1 /M 
setx Path "%Path%;C:\Python38\Scripts\;C:\Python38\" /M 

Installation Vcpkg [Vcpkg source & assembly]

To build [dependencies] (except for Qt), the default approach is to use Vcpkg:

1. Download a single ZIP archive of vcpkg source code

2. Create a bat file C:\vcpkg\install-vcpkg.bat and execute it

@echo off
powershell.exe -NoProfile -ExecutionPolicy Bypass "& {& '%~dp0scripts\bootstrap.ps1' %*}"
%comspec% /k "С:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat"
pause

After running this file, a console window will open in which you need to enter the following 3 lines in sequence:

.\vcpkg.exe update
.\vcpkg.exe integrate install
.\vcpkg.exe install --clean-after-build --triplet x64-windows-static --x-manifest-root "C:\lcryp-master\build_msvc" 

3. By default, vcpkg makes both release and debug builds for each package. To save build time and disk space, one could skip debug builds (example uses PowerShell, let's set the environment variable):

Add-Content -Path "C:\vcpkg\triplets\x64-windows-static.cmake" -Value "set(VCPKG_BUILD_TYPE release)"

Installation Qt [Qt source & assembly]

To build LcRyp Core with the GUI, a static build of Qt is required.

1. Download a single ZIP archive of Qt source code

2. Open "x64 Native Tools Command Prompt for VS 2022", and input the following commands or create a bat file: Create a bat file C:\qt-everywhere-src-5.15.6\install-qt.bat and execute it.

@echo off
%comspec% /k "С:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat"
pause

After running this file, a console window will open in which you need to enter the following 5 lines in sequence:

mkdir C:\qt-everywhere-src-5.15.6\build\
cd C:\qt-everywhere-src-5.15.6\build\
..\configure -release -silent -opensource -confirm-license -opengl desktop -no-shared -static -static-runtime -mp -qt-zlib -qt-pcre -qt-libpng -no-libjpeg -nomake examples -nomake tests -nomake tools -no-dbus -no-libudev -no-icu -no-gtk -no-opengles3 -no-angle -no-sql-sqlite -no-sql-odbc -no-sqlite -no-libudev -no-vulkan -skip qt3d -skip qtactiveqt -skip qtandroidextras -skip qtcanvas3d -skip qtcharts -skip qtconnectivity -skip qtdatavis3d -skip qtdeclarative -skip qtdoc -skip qtgamepad -skip qtgraphicaleffects -skip qtimageformats -skip qtlocation -skip qtmacextras -skip qtmultimedia -skip qtnetworkauth -skip qtpurchasing -skip qtquickcontrols -skip qtquickcontrols2 -skip qtscript -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtserialport -skip qtspeech -skip qtvirtualkeyboard -skip qtwayland -skip qtwebchannel -skip qtwebengine -skip qtwebsockets -skip qtwebview -skip qtx11extras -skip qtxmlpatterns -no-openssl -no-feature-sql -no-feature-sqlmodel -prefix "C:\qt-static-5.15.6"
nmake
nmake install

3. Create environment variables QTBASEDIR C:\qt-static-5.15.6\

setx QTBASEDIR "C:\qt-static-5.15.6\" /M 

To build LcRyp Core without Qt, unload or disable the lcryp-qt and liblcryp_qt projects.

Building [LcRyp assembly]

1. An optional step is to adjust the settings In the build_msvc directory and the common.init.vcxproj file. This project file contains settings that are common to all projects such as the runtime library version and target Windows SDK version. The Qt directories can also be set. To specify a non-default path to a static Qt package directory, use the QTBASEDIR environment variable.

2. To generate the project files *.vcxproj For the Visual Studio 2022 in accordance with the configurations, it is necessary to run the python script toolchain from Makefile. To do this, enter the following in the command line:

Create a bat file C:\lcryp-master\build_msvc\msvc-autogen.bat and execute it.

"C:\Python38\python.exe" "C:\lcryp-master\build_msvc\msvc-autogen.py"

Now your project is ready to compile!

3. To build from the command-line with the Visual Studio toolchain use: Create a bat file C:\lcryp-master\build_msvc.bat

@echo off
"C:\Programing Files\Microsoft Visual Studio\2022\MSBuild\Current\Bin\msbuild.exe" build_msvc\lcryp.sln -property:Configuration=Release -maxCpuCount -verbosity:minimal
pause

Or you can run a ready-made file:

"C:\lcryp-master\build_msvc.bat"

@echo off
set prg=lcryp
"C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\msbuild.exe" build_msvc\%prg%.sln -property:Configuration=Release -maxCpuCount -verbosity:minimal
rd /s /q "LcRyp Core"
MD "LcRyp Core"
MD "LcRyp Core\daemon"
copy "build_msvc\x64\Release\%prg%-qt.exe" "LcRyp Core\%prg%-qt.exe"
copy "build_msvc\x64\Release\%prg%-cli.exe" "LcRyp Core\daemon\%prg%-cli.exe"
copy "build_msvc\x64\Release\%prg%-tx.exe" "LcRyp Core\daemon\%prg%-tx.exe"
copy "build_msvc\x64\Release\%prg%d.exe" "LcRyp Core\daemon\%prg%d.exe"
pause

Alternatively, open the C:\lcryp-master\build_msvc\build_msvc\lcryp.sln file in Visual Studio 2022. When compiling from the environment, specify the both release or debug builds for each method.

Popular repositories Loading

  1. lcryp lcryp Public

    LcRyp Core integration/staging tree

    C++