MPC virtual currency
-
the concept of bitcoin was first proposed by Nakamoto in 2009. According to Nakamoto's idea, open source software was designed and released, and P2P network was built on it. Bitcoin is a kind of P2P digital currency. Point to point transmission means a decentralized payment system
Unlike most currencies, bitcoin does not rely on specific currency institutions to issue. It is generated by a large number of calculations based on specific algorithms. Bitcoin economy uses a distributed database composed of many nodes in the whole P2P network to confirm and record all transactions, and uses cryptography design to ensure the security of all aspects of currency circulation. The decentralized nature and algorithm of P2P can ensure that it is impossible to artificially manipulate the value of bitcoin through mass proction. The design based on cryptography can make bitcoin only be transferred or paid by the real owner. This also ensures the anonymity of money ownership and circulation transactions. The biggest difference between bitcoin and other virtual currencies is that the total amount of bitcoin is very limited and it has a strong scarcity
standard size
face value category Size (unit: mm)
100 yuan note Length 156, width 76
50 yuan note Length 150 width 70
20 yuan note Length 145 width 70
10 yuan note Length 140 width 70
5 yuan note Length 135, width 63
1 yuan note L 130 w 62
1 yuan coin Coins with a diameter of 25
5 cents Diameter 20.5
1 angle Coin Diameter 19
regardless of denomination, the size of modern dollar notes is 6.14 (length) × 2.61 (W) × 0.0043 (thick) in., 156 (long) × 66.3 (width) × 109 (thickness) mm. The size was passed by the act of 1914 and formally implemented in 1929. Before that, the dollar size was about 7.4218 × 125 inches, 189 x 79 (mm).
就会感觉到无从下手. 其实, 比特币程序是跨平台的.
你要编译windows版的比特币程序,基本上有两种方法,一种是在linux平台
(推荐ubuntu 13.10)通过交叉编译的方法来编译.另外一种,就是直接在windows平台编译.
我想,你既然要在windows平台使用,我就详细介绍一下如何在windwows平台编译比特币程序.
我的平台:windows7
第一步:安装变编译环境QT和MINGW,msys
1、msys是一个在windows平台模拟shell的程序
下载安装程序之后,通过安装管理程序,按安装以下内容:
From MinGW installation manager -> All packages -> MSYS
选中以下安装包
msys-base-bin
msys-autoconf-bin
msys-automake-bin
msys-libtool-bin
点 apply changes开始安装他会自动下载安装好
需要注意的是,确保不要安装msys-gcc和msys-w32api ,因为这两个包和我们的编译系统发生冲突
很多人出现一些莫名其妙的问题,就是因为这两个包
2、安装 MinGW-builds
下载并解压缩 i686-4.8.2-release-posix-dwarf-rt_v3-rev3.7z 到C盘根目录 C:\
注意我的目录结构你尽量和我一样
3、设置PATH环境变量,将C:\mingw32\bin;添加到第一个
4、在命令行模式下输入 gc -v 会得到以下内容
c:\gcc -v
Using built-in specs.
COLLECT_GCC=c:\mingw32\bin\gcc.exe
COLLECT_LTO_WRAPPER=c:/mingw32/bin/../libexec/gcc/i686-w64-mingw32/4.8.2/lto-wrapper.exe
Target: i686-w64-mingw32
Configured with: ../../../src/gcc-4.8.2/configure --host=i686-w64-mingw32 --build=i686-w64-mingw32 --target=i686-w64-mingw32 --prefix=/mingw32 --with-sysroot=/c/mingw482/i686-482-posix-dwarf-rt_v3-rev3/mingw32 --with-gxx-include-dir=/mingw32/i686-w64-mingw32/include/c++ --enable-shared --enable-static --disable-multilib --enable-languages=ada,c,c++,fortran,objc,obj-c++,lto --enable-libstdcxx-time=yes --enable-threads=posix --enable-libgomp --enable-libatomic --enable-lto --enable-graphite --enable-checking=release --enable-fully-dynamic-string --enable-version-specific-runtime-libs --disable-sjlj-exceptions --with-dwarf2 --disable-isl-version-check --disable-cloog-version-check --disable-libstdcxx-pch --disable-libstdcxx-debug --enable-bootstrap --disable-rpath --disable-win32-registry --disable-nls --disable-werror --disable-symvers --with-gnu-as --with-gnu-ld --with-arch=i686 --with-tune=generic --with-libiconv --with-system-zlib --with-gmp=/c/mingw482/prerequisites/i686-w64-mingw32-static --with-mpfr=/c/mingw482/prerequisites/i686-w64-mingw32-static --with-mpc=/c/mingw482/prerequisites/i686-w64-mingw32-static --with-isl=/c/mingw482/prerequisites/i686-w64-mingw32-static --with-cloog=/c/mingw482/prerequisites/i686-w64-mingw32-static --enable-cloog-backend=isl --with-pkgversion='i686-posix-dwarf-rev3, Built by MinGW-W64 project' --with-bugurl=http://sourceforge.net/projects/mingw-w64 CFLAGS='-O2 -pipe -I/c/mingw482/i686-482-posix-dwarf-rt_v3-rev3/mingw32/opt/include -I/c/mingw482/prerequisites/i686-zlib-static/include -I/c/mingw482/prerequisites/i686-w64-mingw32-static/include' CXXFLAGS='-O2 -pipe -I/c/mingw482/i686-482-posix-dwarf-rt_v3-rev3/mingw32/opt/include -I/c/mingw482/prerequisites/i686-zlib-static/include -I/c/mingw482/prerequisites/i686-w64-mingw32-static/include' CPPFLAGS= LDFLAGS='-pipe -L/c/mingw482/i686-482-posix-dwarf-rt_v3-rev3/mingw32/opt/lib -L/c/mingw482/prerequisites/i686-zlib-static/lib -L/c/mingw482/prerequisites/i686-w64-mingw32-static/lib -Wl,--large-address-aware'
Thread model: posix
gcc version 4.8.2 (i686-posix-dwarf-rev3, Built by MinGW-W64 project)
至此,你的开发环境已经搭建好了,很简单吧
第二部分:下载bitcoin引用的外部库
我们把它们全部放在 C:\deps目录下
2.1 安装OpenSSL下载:
进入启动 MinGw shell 比如目录:(C:\MinGW\msys\1.0\msys.bat)运行这个msys.bat,就会启动一个shell环境,提示符是$
输入命令
cd /c/deps/
tar xvfz openssl-1.0.1g.tar.gz
cd openssl-1.0.1g
Configure no-shared no-dso mingw
make
等待几分钟后,就把openssl编译好了
2.2 下载Berkeley DB
我们推荐使用 4.8版本
同样在msys shell环境下输入以下命令
cd /c/deps/
tar xvfz db-4.8.30.NC.tar.gz
cd db-4.8.30.NC/build_unix
../dist/configure --enable-mingw --enable-cxx --disable-shared --disable-replication
make
等待编译
2.3 安装Boost
msys命令:
cd C:\deps\boost_1_55_0\
bootstrap.bat mingw
b2 --build-type=complete --with-chrono --with-filesystem --with-program_options --with-system --with-thread toolset=gcc variant=release link=static threading=multi runtime-link=static stage
2.4 安装Miniupnpc
cd C:\deps\miniupnpc
mingw32-make -f Makefile.mingw init upnpc-static
2.5下载 protoc 和 libprotobuf:
msys shell命令
cd /c/deps/protobuf-2.5.0
configure --disable-shared
make
2.6 qrencode:
命令
cd /c/deps/libpng-1.6.10
configure --disable-shared
make
ode:
cd /c/deps/qrencode-3.4.3
LIBS="../libpng-1.6.10/.libs/libpng16.a ../../mingw32/i686-w64-mingw32/lib/libz.a" \
png_CFLAGS="-I../libpng-1.6.10" \
png_LIBS="-L../libpng-1.6.10/.libs" \
configure --enable-static --disable-shared --without-tools
make
2.7 安装 Qt 5 库
在 windows命令行输入:
set INCLUDE=C:\deps\libpng-1.6.10;C:\deps\openssl-1.0.1g\include
set LIB=C:\deps\libpng-1.6.10\.libs;C:\deps\openssl-1.0.1g
cd C:\Qt\5.2.1
configure.bat -release -opensource -confirm-license -static -make libs -no-sql-sqlite -no-opengl -system-zlib -qt-pcre -no-icu -no-gif -system-libpng -no-libjpeg -no-freetype -no-angle -no-vcproj -openssl-linked -no-dbus -no-audio-backend -no-wmf-backend -no-qml-debug
mingw32-make
set PATH=%PATH%;C:\Qt\5.2.1\bin
cd C:\Qt\qttools-opensource-src-5.2.1
qmake qttools.pro
mingw32-make
3. 下载Bitcoin 0.9.1
在msys shell下输入以下命令行:
cp /c/deps/libpng-1.6.10/.libs/libpng16.a /c/deps/libpng-1.6.10/.libs/libpng.a
cd /c/bitcoin-0.9.1
./autogen.sh
CPPFLAGS="-I/c/deps/boost_1_55_0 \
-I/c/deps/db-4.8.30.NC/build_unix \
-I/c/deps/openssl-1.0.1g/include \
-I/c/deps \
-I/c/deps/protobuf-2.5.0/src \
-I/c/deps/libpng-1.6.10 \
-I/c/deps/qrencode-3.4.3" \
LDFLAGS="-L/c/deps/boost_1_55_0/stage/lib \
-L/c/deps/db-4.8.30.NC/build_unix \
-L/c/deps/openssl-1.0.1g \
-L/c/deps/miniupnpc \
-L/c/deps/protobuf-2.5.0/src/.libs \
-L/c/deps/libpng-1.6.10/.libs \
-L/c/deps/qrencode-3.4.3/.libs" \
./configure \
--disable-upnp-default \
--disable-tests \
--with-qt-incdir=/c/Qt/5.2.1/include \
--with-qt-libdir=/c/Qt/5.2.1/lib \
--with-qt-bindir=/c/Qt/5.2.1/bin \
--with-qt-plugindir=/c/Qt/5.2.1/plugins \
--with-boost-system=mgw48-mt-s-1_55 \
--with-boost-filesystem=mgw48-mt-s-1_55 \
--with-boost-program-options=mgw48-mt-s-1_55 \
--with-boost-thread=mgw48-mt-s-1_55 \
--with-boost-chrono=mgw48-mt-s-1_55 \
--with-protoc-bindir=/c/deps/protobuf-2.5.0/src
make
strip src/bitcoin-cli.exe
strip src/bitcoind.exe
strip src/qt/bitcoin-qt.exe
这样,你就得到了变异好的 bitcoin-cli.exe和bitcoind.exe ,bitcoin-qt.exewindows QT图形界面的钱包软件
As of November 9, 2019, one thousand pounds is about 8931.7 yuan
British pound is the name of national currency and monetary unit. Sterling is mainly issued by the Bank of England, but there are other issuers. ISO 4217 was obtained by the international organization for Standardization (ISO) for the pound and the currency code is GBP (Great Britain pound). In addition to the United Kingdom, the currency of the British Overseas Territories is also in pounds, and the exchange rate with the pound is fixed at 1:1
after the euro was adopted, the pound has become the oldest currency still in use. It is the third largest foreign exchange reserve in the world, behind the US dollar and the euro. The pound is the fourth largest currency for foreign exchange trading, behind the US dollar, the euro, and the Japanese yen. Although there is no fixed exchange rate between the pound and the euro, there is often a long-term synchronous trend between the pound and the euro
{rrrrrrr}
extended data:
the most fundamental influencing factors of sterling exchange rate are the policies formulated by the Bank of England and the monetary policy committee. In addition, the influencing factors of sterling exchange rate are sterling interest rate and financial factors, including British government bonds, 3-month Euro Sterling deposit futures, 3-month Euro Sterling deposit futures, 3-month Euro Sterling deposit futures, etc Financial times 100 index and cross exchange rate
1. The Bank of England (BOE)
since 1997, the Bank of England has obtained the function of independently formulating monetary policy, but it still has to meet the inflation standard set by the Ministry of Finance
2. The monetary policy committee (MPC)
MPC is mainly responsible for setting the interest rate level
Interest rate the main interest rate of the Bank of England is the minimum lending rate (basic interest rate), and the change of interest rate usually has a great impact on the pound4. Financial factors
the financial factors affecting the exchange rate of the pound include British government bonds (gilt edged bonds), three-month Euro pound deposit Futures (short-term pound), three-month Euro pound deposits, financial times 100 index and cross exchange rate. The spread between the yield of 10-year gilt edged bonds and that of other national bonds or US Treasury bonds in the same period will also affect the exchange rate of the pound and other national currencies
the price of Euro pound deposit futures contract in three months reflects the market's expectation of Euro pound deposit interest rate in three months. The difference of futures contract price with other countries in the same period can also cause the change of pound exchange rate
3-month Euro pound deposits the pound deposits deposited in non UK banks are called Euro pound deposits. The difference between its interest rate and other countries' European deposit interest rate in the same period is also one of the factors affecting the exchange rate
the financial times 100 index is the main stock index in the UK. Although it has little impact on the pound, it has a strong linkage with the Dow Jones index in the US
5. Economic data
the British economic data affecting the pound include: initial unemployment, initial unemployment rate, average income, retail price index excluding mortgage loans, retail sales, instrial proction, GDP growth, purchasing manager index, manufacturing and service survey, money supply (M4), income and housing price balance
reference source: Internet
The currency of England is called pound sterling
the British pound is the standard unit of currency, issued by the Bank of England, which was founded in 1694. The second unit was shillings and pence. One pound equals 20 shillings and one shilling equals 12 pence
as of 2017, the Bank of England banknotes in circulation can be divided into four types: 5, 10, 20 and 50. In addition, several banks in Scotland and Northern Ireland issue pounds at the same time, but their designs and denominations are different. Internationally, the settlement of pound sterling generally only recognizes the Bank of England version. In China, foreign currency exchange banks do not exchange and accept pounds issued by banks other than the Bank of England
The British pound is the official currency of the United Kingdom. After the euro was adopted, the pound became the oldest currency still in use. It is the third largest foreign exchange reserve in the world, and the pound is the fourth largest foreign exchange trading currency after the US dollar, euro and Japanese yenthe new version of pound sterling, which was issued in 2008, includes 1p, 2p, 5p, 10p, 20p and 50p with a part of the British national emblem and shield. The coin can be put together to form a complete pattern, except the one with a complete shield. On the other side of each coin is the traditional head of the queen
from 2017, a new version of 12 sided 1 pound coin will be issued. The British Daily Mail website reported on October 8, 2017 that the old round pound 1 will no longer be used as legal tender from October 15
{rrrrrrr}
extended information
the relationship between the British pound and the European Economic and Monetary Union: the British pound is often under pressure e to Prime Minister Tony Blair's remarks about possible accession to the European single currency, the euro. If the UK wants to join the euro zone, its interest rate level must be reced to that of the euro. If the public votes to join the euro area, the pound will have to depreciate against the euro for the sake of its instrial trade. As a result, any talk of Britain's possible entry into the euro will depress the pound
because of the national symbolism of the pound, the idea of replacing the pound with euro has been disputed by some British public sectors. Scotland's conservative party claims that the adoption of the euro means the end of local characteristic banknotes, because the European Central Bank does not allow member states or the next level of government to design banknotes. The SNP also disagreed with the adoption of a single European currency, because it believed that an independent Scotland should have its own unique currency, and its party policy included the entry into the single currency system
against other currencies, the pound can be traded in foreign exchange markets all over the world, and its value fluctuates relative to other currencies. Historically, the pound has been the most valuable basic foreign exchange
1 Income level is one of the main factors that determine the money demand. This factor can be divided into income level and income interval. In general, the demand for money is proportional to the income level. When the income of residents, enterprises and other economic entities increases, their demand for money will also increase; As their income decreases, so does their demand for money. If the time interval for people to obtain income is prolonged, the money demand of the whole society will increase; On the contrary, if the time interval for people to obtain income is shortened, the money demand of the whole society will be reced< (2) propensity to consume
propensity to consume refers to the proportion of consumption expenditure in income, which can be divided into average propensity to comsum (APC) and marginal propensity to consume (MPC). Average propensity to consume refers to the proportion of total consumption in total income, while marginal propensity to consume refers to the proportion of incremental consumption in incremental income. Suppose that people's income and expenditure are savings except for consumption, then the corresponding consumption tendency is savings tendency. In general, the direction of consumption tendency is consistent with the change of money demand, that is, the consumption tendency is large and the money demand is large; And vice versa< (3) interest rate level
in the market economy, interest rate is an important lever to regulate economic activities. Under normal circumstances, the interest rate rises and the money demand decreases; The interest rate decreases while the money demand increases, and there is a negative correlation between the interest rate and the money demand. The reasons for the negative correlation between interest rate and money demand are as follows: first, the increase of interest rate in money market means that the opportunity cost of holding money increases (the interest income given up because of holding money), so the money demand tends to decrease; On the contrary, the market interest rate decreases, the opportunity cost of holding money decreases, and the money demand tends to increase. Second, the market interest rate changes inversely with the price of the securities, the interest rate rises and the price of the securities falls; When the interest rate falls, the price of securities rises. Thus, the public's desire to hold money is inversely proportional to the interest rate and directly proportional to the price of securities. The public's desire to hold money is an important factor determining the demand for money< (4) the degree of credit development
If a society has developed credit and sound credit system, and people can easily obtain cash or loans when they need money, then the amount of money necessary for the whole society is less than that for a society with underdeveloped credit and imperfect credit system< (5) the influence of the speed of money circulation, the supply of social goods and the price level on money demand can be explained by the law of money circulation. If M is the money demand, P is the price level, q is the social commodity supply, and V is the speed of money circulation, then according to the law of money circulation, there is the following formula: M = PQ / v. It can be seen that the price level and the supply of social goods are directly proportional to the money demand; The speed of money circulation is inversely proportional to money demand< (6) the expectation and preference of the public
the above five points are the objective factors that determine the money demand. Money demand is affected by people's subjective will and psychological activities to a certain extent. Generally speaking, the relationship between people's psychological activities and money demand is as follows:
1 when the interest rate rises greatly, people often expect that the interest rate will fall and the price of securities will rise, so people will rece their holding of cash and increase their holding of securities in order to obtain capital premium income in the future; And vice versa
2 if the price level is expected to rise, the money demand will decrease; If the price level is expected to decline, the money demand will increase
3 if people prefer money, the money demand will increase; if people prefer other financial assets, the money demand will decrease