- 博客(395)
- 资源 (17)
- 收藏
- 关注
原创 椭圆曲线加法运算(三)
1. 椭圆曲线加法运算无穷远点] https://zh.wikipedia.org/zh-cn/%E6%A9%A2%E5%9C%93%E6%9B%B2%E7%B7%9A%E7%9A%84%E7%B4%94%E9%87%8F%E4%B9%98%E6%B3%95。此时只能找到切线方程与椭圆曲线的两个交点,找不到第三个交点。对椭圆曲线的隐函数在x, y方向上分别求导,得到,,点P=(-2,0),求P+P=?: 切线方程与椭圆曲线的第三个交点。代入P点,得到切线方程,联立切线方程与椭圆曲线,
2024-08-06 21:01:04
249
原创 椭圆曲线加法运算(二)
2. 椭圆曲线的加法运算] https://zh.wikipedia.org/zh-cn/%E6%A9%A2%E5%9C%93%E6%9B%B2%E7%B7%9A%E7%9A%84%E7%B4%94%E9%87%8F%E4%B9%98%E6%B3%95。[1. 椭圆曲线的加法运算] https://www.ruanx.net/elliptic-curve/对椭圆曲线的隐函数在x,y方向上分别求导,有,代入P点,得到过P点切线的方程。联立切线方程和椭圆曲线,得到,切线方程代入椭圆曲线,得到,
2024-08-06 16:39:37
283
原创 椭圆曲线加法运算
y2x3axby2x3axb其中,判别式Δ−164a327b2≠0Δ−164a327b20。判别式表示该方程需要满足无奇点的约束条件。无奇点在几何上意味着曲线没有尖点,自相交点,或孤立点。举例而言,当ab00ab00时,Δ0\Delta=0Δ0意味着曲线存在奇点,不满足无奇点的约束条件,此时曲线y2x3y^2=x^3y2x3不是椭圆曲线。
2024-08-04 21:49:29
331
原创 Visual Studio Code连接远程MS Azure服务器的方法
点击VS Code的正上方居中位置的"Search"方框,选择"Show and Run Commands",输入"ssh",选择"Rmote SSH: Add New SSH Host", 输入"ssh Your_Azure_Username@Your_Azure_IP_Address", 成功通过VS Code连接远程Azure虚拟机。登录MS Azure账号,https://azure.microsoft.com/en-us/get-started/azure-portal。
2024-02-15 10:36:07
984
原创 Git 代码协同的使用方法 for Azure DevOps
登陆Azure DevOps网页,点击"Clone"按钮,获取Https URL,并点击 “Generate Git Credentials” 获取YourAzurePassword,如下,Ubuntu下,通过Git Clone Azure DevOps的项目,命令如下,登陆Azure Cloud的Ubuntu环境后,配置Git账户信息,如下,增加代码到GitTester者一个repository中,如下,检验查看当前用户的Git账户信息配置,如下,
2024-02-08 10:16:48
794
原创 Ubuntu上传源代码到自己的远程Github账户 (即Git Push)
本文回答的问题是:Ubuntu环境下,如何通过Git命令将源代码上传到远程Github服务器?, 新版的Github需要用Token(口令) 替代 Password(密码))步骤一:当前目录下,克隆目标Github项目 (备注:可能需要成功设置。步骤二:修改Github XXX项目。步骤三:commit相关修改。步骤四:push相关修改。
2022-11-10 12:29:39
1210
原创 [9th of series ABE] Programming Attribute Based Encryption
Previously, from the Advanced Crypto Software Collection tool, we ran several high-level ciphertext-policy attribute-based encryption (CP-ABE) examples.This blog is going to introduce how to implement CP-ABE using a low-level Python library named Charm.Ana
2022-10-04 16:44:02
928
原创 [7th of series ABE] CP-ABE Usage
This blog is going to make use of the CP-ABE toolkit.This part is going to create a test project.First, we create a new folder for the test project.**Second, **we run the “cpabe-setup” command to set up the public key and master keys.**Third, **we are go
2022-10-04 16:37:48
1251
原创 [6th of series ABE] Coding Attribute-Based Encryption
This blog is going to do code the attribute-based encryption.This part is going to install the Ciphertext-Policy Attribute-Based Encryption Toolkit.First, we go to the official website, download the source code “cpabe-0.11.tar.gz” and unzip the source code
2022-10-04 16:30:34
351
原创 [5th of series ABE] Generator in Cyclic Group
给定有限域GF(x, q),有限域的阶为2^q有限域中的元素分别从0到(2^q)-1有限域中GF(x, q)的生成元可能有多个。
2022-10-03 12:01:19
749
原创 [4th of series ABE] Finite Field Operations
This blog is going to install pyfinite in order to support finite field operations. We will also have a comparison with Python finite field operation with Matlab.First, 192.168.0.101 install pyfinite.2. Finite FieldA valid finite field satisfies the fol
2022-10-03 11:58:33
391
原创 [3th of series ABE] Shamir‘s Secret Sharing
This blog is going to discuss Shamir’s Secret Sharing Scheme.给定n个不同的节点,问经过所有点的最高阶的多项式函数的形式如何获得?平面上任意两个不同的点(x1, y1)和(x2, y2),能唯一地确定一个关于x的一次多项式, i.e., y=ax+b.平面上任意三个不同的点(x1, y2), (x2, y2), 和(x3, y3),能唯一地确定一个关于x的二次多项式,i.e., y=ax²+bx+c以此类推,平面上任意n个不同的点,能唯一地确定一个
2022-10-03 11:56:04
459
原创 [2nd of series ABE] Installation of “GoFE“ and Usage of ABE
This blog is going to install the Golang encryption library named “GoFE”.First, download and build the library by running the following command,**Second, **to make sure the library works as expected, we have a double-check,2. Usage of “GoFE”Our project
2022-10-03 11:50:21
490
原创 [1st of series ABE] Installation of “libopenabe-1.0.0“
This blog is going to install “libopenabe-1.0.0”.First, we download and unzip the installation package.Second, to compile OpenABE on Ubuntu Linux-based distro, first run deps/install_pkgs.sh script from the source directory to install the OpenABE system-s
2022-10-03 11:45:11
530
原创 [19th of series6] Step12: Handle Bitcoin Transaction Types
This blog is going to analyze Bitcoin transaction types, transaction fees, and transaction sizes.We going to use Python-Bitcoinlib to analyze transaction types.First, we handle all transactions of a given block and group them into different types according
2022-10-03 11:36:02
1111
原创 [18th of series6] Step11: Get the Daily Block Rewards (of a Given Day)
This blog is going to get the daily block rewards.This part is going to calculate the daily block rewards of a given day. In particular, we are going to calculate the daily block rewards on May 12, 2020, and May 13, 2020, as well.First, we implemented a Py
2022-10-03 11:31:07
586
原创 [17th of series6] Step10: Transaction Selection Policy of the Bitcoin Network
This blog is going to explore the transaction selection policy of the Bitcoin network.This part is going to calculate the transaction selection policy for top mining pools, i.e., AntPool, F2Pool, BTC.com, and ViaBTC.First, we implemented a Python data hand
2022-10-03 11:24:11
969
原创 [16th of series6] Step9: Transaction Delays of the Bitcoin Network
This blog is going to explore the transaction delays of the bitcoin network.This part is going to calculate transaction delays.First, because calculating the transaction delays for all blocks is costly. To make it more efficient, we only focus on the targe
2022-10-03 11:20:57
405
原创 [15th of series6] Step8: Throughput of the Bitcoin Network
This blog will calculate the throughput of the bitcoin network.This part is going to calculate the number of transactions per block. The input file is standard_timestamp_output.csv . The output files are standard_lentxs_antpool.csv , standard_lentxs_f2pool
2022-10-03 11:13:45
344
原创 [14th of series6] Step7: Timestamps when Data Server Received Blocks
Because the timestamp of blocks could be inconsistent since miners may have different system clock, to solve this problem, we introduced the timestamps when data servers first received new blocks.This part is going to implement a Python crawler to collect
2022-10-02 22:48:34
342
原创 [13th of series6] Step6: Blocksize and Empty Blocks of Top Mining Pools
This blog is going to get block size and empty blocks of the top mining pools: AntPool, F2Pool, BTC.com, and ViaBTC.This part is going to handle transaction types and Bitcoin SegWit protocol for top mining pools.First, we implement a Python tool to handle
2022-10-02 22:45:56
265
原创 [12th of series6] Step5: Mining Revenues of Top Mining Pools
This blog is going to get mining revenues of the top mining pools: AntPool, F2Pool, BTC.com, and ViaBTC.First, we get mining revenues of top mining pools from the all_ver9.csv . The mining revenues of top mining pools can be calculated via: mining revenue
2022-10-02 22:43:12
506
原创 [11th of series6] Step4: Bitcoin Market Info
This blog is going to get some Bitcoin market information of an overall Bitcoin network.We are going to explore the Bitcoin market price in the unit of USD.First, we get the Bitcoin price from https://www.coindesk.com/price/bitcoin.https://finance.yahoo.co
2022-10-02 22:35:20
501
原创 [10th of series6] Step3: Hash Rate of Top Bitcoin Mining Pools
This blog is going to depict the hash rate of top Bitcoin mining pools: AntPool, F2Pool, BTC.com, and ViaBTC.The hash rate of the Bitcoin network is approximately equivalent to the ratio of mining difficulty to block time. We get the hash rate data from th
2022-10-02 22:19:11
703
原创 [9th of series6] Step2: Dominating Computing Power of the Bitcoin Network
This blog is going to analyze the dominating computing power of the Bitcoin network over a period of time.This part is going to get the timestamp of each block. We implemented a python tool to interact with bitcoin.RPC. The input of the python tool is mini
2022-10-02 22:10:24
382
原创 [8th of series6] Step1: Label Each Block’s Mining Pool
This blog is going to label each block’s mining pool via Python crawler.We are going to implement a Python crawler to crawl each block’s mining pool. There are two inputs: start_blockid and end_blockid . In this case, start_blockid=615527 and end_blockid=6
2022-10-02 22:03:52
306
原创 Medium博客转成Markdown文件
Windows环境下,将Medium博客转成Markdown文件的一个方法如下,下载安装Nodejs安装插件’mediumexporter’进入CMD,执行Dos commands如下,使用插件’mediumexporter’,导出目标Markdown文件,
2022-10-02 21:44:10
204
原创 ubuntu新建用户
root账户为新账户指定解释程序和工作目录,root账户为新帐户增加超级用户权限,root账户新建一个新账户工作目录,root账户添加一个新用户,登录一个root账户,并设置登录密码,如下,
2022-10-02 21:31:13
3720
1
原创 2022-7-5 随机过程之条件期望及其性质 (三)
Problem: Suppose that we are to be presented with nnn distinct prizes in sequence. After being presented with a prize, we must immediately decide whether to accept it or reject it and consider the next prize. The only information we are given when deciding
2022-07-05 16:11:26
246
原创 2022-6-30 随机过程之条件期望及其性质 (二)
Problem: Suppose that the number of people who visit a yoga studio each day is a Poisson random variable with mean λ\lambdaλ. Suppose further that each person who visits is independently, female with probability ppp or male with probability 1−p1-p1−p. Find
2022-06-30 21:32:01
263
原创 2022-6-30 随机过程之条件期望及其性质 (一)
Let an conditional expectation beE[X∣Y]\mathbb{E}\left [ X|Y \right ]E[X∣Y]where the function of random variable YYY whose value at Y=yY=yY=y is E[X∣Y=y]\mathbb{E}\left [ X|Y=y \right ]E[X∣Y=y]. Note that E[X∣Y=y]\mathbb{E}\left [ X|Y=y \right ]E[X∣Y=y] is
2022-06-30 21:00:18
503
原创 2022-6-10 随机过程之矩生成函数 (五) 利用矩生成函数证明中心极限定理
假设X1X_1X1, X2X_2X2, X3X_3X3, ⋯\cdots⋯, XnX_nXn 是独立同分布的随机变量。每个随机变量的期望值是μ\muμ, 方差是σ2\sigma^2σ2。当样本数nnn增大时,这nnn个样本服从正态分布如下,limn→∞X1+X2+X3+⋯+Xnn∼N(μ,σ2n)\lim_{n \to \infty} \frac{X_1+X_2+X_3+\cdots+X_n}{n}\sim N(\mu, \frac{\sigma^2}{n})limn→∞nX1+X2+X3
2022-06-10 16:47:33
243
1
原创 2022-6-9 随机过程之矩生成函数 (四) 标准正态分布的矩生成函数及其高斯积分的计算
给定随机变量XXX服从标准正态分布。其中,标准正态分布的概率密度函数为,f(x)=12πe−x22f(x)=\frac{1}{\sqrt{2\pi}}e^{-\frac{x^2}{2}}f(x)=2π1e−2x2令矩生成函数ϕX(t)\phi_X(t)ϕX(t),有,ϕX(t)=E[etX]\phi_X(t)=\mathbb{E}[e^{tX}]ϕX(t)=E[etX]=∫−∞+∞etxf(x)dx=\int_{-\infty}^{+\infty}e^{tx}f(x)dx=∫−∞+∞etxf(
2022-06-09 14:51:29
989
原创 2022-6-8 随机过程之矩生成函数 (三)
If XXX and YYY are independent binomial random variables with parameters (n,p)(n, p)(n,p) and (m,p)(m, p)(m,p), respectively, then what is the distribution of X+YX+YX+Y.ϕX+Y(t)=ϕX(t)ϕY(t)\phi_{X+Y}(t)=\phi_X(t) \phi_Y(t)ϕX+Y(t)=ϕX(t)ϕY(t)=(pet+1−p)n(pe
2022-06-08 10:45:19
201
原创 2022-6-7 随机过程之矩生成函数 (二)
给定随机变量XXX服从二项分布,X∼B(n,p)X\sim B\left ( n,p \right )X∼B(n,p),求二项分布的矩生成函数。二项分布的概率质量函数为,p(i)=(ni)pi(1−p)n−ip(i)=\binom{n}{i}p^i(1-p)^{n-i}p(i)=(in)pi(1−p)n−i, i=0,1,2,⋯ ,ni=0, 1, 2, \cdots, ni=0,1,2,⋯,n.令矩生成函数ϕ(t)\phi(t)ϕ(t),有,ϕ(t)=E[etX]\phi(t)=\mathbb{E}[e
2022-06-07 21:27:57
598
原创 2022-6-6 随机过程之矩生成函数 (一)
The moment generating function (MGF) of the random variable X
2022-06-06 21:30:20
270
原创 2022-5-27 随机过程之二项,泊松随机变量及其关系
1. The Binomial Random Variable1.1. DefinitionSuppose that nnn independent trails, each of which results in a success with probability ppp and a fail with probability 1−p1-p1−p. If XXX represents the number of successes that occur in the nnn trails, then
2022-05-27 20:59:29
213
原创 2022-5-27 随机过程之条件概率和贝叶斯概率
1. Conditional Probability1.1. DefinitionP(E∣F)P(E|F)P(E∣F): If we let EEE and FFF denote, the event that the sum of the dice is six and the event that the first die is a four, respectively, then the probability just obtained is called the conditional pr
2022-05-27 16:22:48
178
hyperledger-fabric-readthedocs-io-en-v2.2.1.pdf
2021-01-27
LibreOffice Draw 之网络图示模板 VRTnetworkequipment_1.2.0-lo
2018-08-01
1999年到2018年香港房地产走势数据
2018-04-02
GeoIP Databases of Country and City
2017-06-06
Performance analysis of the Blockchain
2017-01-19
An introduction to Blockchain that is a supporting technology of Bitcoin.
2017-01-03
Linux Kervel Version 1.0 (open source)
2017-01-03
GPU与MATLAB混合编程之书本实现代码
2016-07-15
Totem拓扑数据
2016-05-25
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人