资源简介
应用描述
该应用为一款基于JUICE开放服务平台开发的图书管理DApp应用,通过应用界面可以对图书进行增删查功能操作
项目运行(nodejs 6.0+)
安装依赖
npm install
本地调试(http://localhost:30001/bookMgr)
npm run dev
发布
npm run build
打包后的demo下目录static和文件index.html,放到服务器上,直接访问静态文件index.html
开放服务平台线上打包修改两个地方
DApp-Demo\config\index.js assetsPublicPath: '/bookMgr'
\DApp-Demo\index.html [removed][removed]
代码片段和文件信息
/*
Implementation by the Keccak Keyak and Ketje Teams namely Guido Bertoni
Joan Daemen Michaël Peeters Gilles Van Assche and Ronny Van Keer hereby
denoted as “the implementer“.
For more information feedback or questions please refer to our websites:
http://keccak.noekeon.org/
http://keyak.noekeon.org/
http://ketje.noekeon.org/
To the extent possible under law the implementer has waived all copyright
and related or neighboring rights to the source code in this file.
http://creativecommons.org/publicdomain/zero/1.0/
*/
#include
#include
#include
#include
#include “brg_endian.h“
#ifdef KeccakReference
#include “displayIntermediateValues.h“
#endif
typedef unsigned char UINT8;
typedef unsigned long long UINT64;
typedef UINT64 tKeccakLane;
#define maxNrRounds 24
#define nrLanes 25
#define index(x y) (((x)%5)+5*((y)%5))
#ifdef KeccakReference
static tKeccakLane KeccakRoundConstants[maxNrRounds];
static unsigned int KeccakRhoOffsets[nrLanes];
/* ---------------------------------------------------------------- */
void KeccakP1600_InitializeRoundConstants(void);
void KeccakP1600_InitializeRhoOffsets(void);
static int LFSR86540(UINT8 *LFSR);
void KeccakP1600_StaticInitialize(void)
{
if (sizeof(tKeccakLane) != 8) {
printf(“tKeccakLane should be 64-bit wide\n“);
abort();
}
KeccakP1600_InitializeRoundConstants();
KeccakP1600_InitializeRhoOffsets();
}
void KeccakP1600_InitializeRoundConstants(void)
{
UINT8 LFSRstate = 0x01;
unsigned int i j bitPosition;
for(i=0; i KeccakRoundConstants[i] = 0;
for(j=0; j<7; j++) {
bitPosition = (1< if (LFSR86540(&LFSRstate))
KeccakRoundConstants[i] ^= (tKeccakLane)1< }
}
}
void KeccakP1600_InitializeRhoOffsets(void)
{
unsigned int x y t newX newY;
KeccakRhoOffsets[index(0 0)] = 0;
x = 1;
y = 0;
for(t=0; t<24; t++) {
KeccakRhoOffsets[index(x y)] = ((t+1)*(t+2)/2) % 64;
newX = (0*x+1*y) % 5;
newY = (2*x+3*y) % 5;
x = newX;
y = newY;
}
}
static int LFSR86540(UINT8 *LFSR)
{
int result = ((*LFSR) & 0x01) != 0;
if (((*LFSR) & 0x80) != 0)
/* Primitive polynomial over GF(2): x^8+x^6+x^5+x^4+1 */
(*LFSR) = ((*LFSR) << 1) ^ 0x71;
else
(*LFSR) <<= 1;
return result;
}
#else
static const tKeccakLane KeccakRoundConstants[maxNrRounds] =
{
0x0000000000000001
0x0000000000008082
0x800000000000808a
0x8000000080008000
0x000000000000808b
0x0000000080000001
0x8000000080008081
0x8000000000008009
0x000000000000008a
0x0000000000000088
0x0000000080008009
0x000000008000000a
0x000000008000808b
0x800000000000008b
0x8000000000008089
0x8000000000008003
0x8000000000008002
0x8000000000000080
0x000000000000800a
0x800000008000
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-05-25 14:27 DApp-Demo-master\
文件 96 2018-05-17 16:58 DApp-Demo-master\.babelrc
文件 441 2018-05-17 16:58 DApp-Demo-master\.gitignore
文件 392 2018-05-25 13:57 DApp-Demo-master\.project
目录 0 2018-05-17 16:58 DApp-Demo-master\build\
文件 763 2018-05-17 16:58 DApp-Demo-master\build\build.js
文件 239 2018-05-17 16:58 DApp-Demo-master\build\dev-client.js
文件 2126 2018-05-17 16:58 DApp-Demo-master\build\dev-server.js
文件 2070 2018-05-17 16:58 DApp-Demo-master\build\utils.js
文件 2322 2018-05-17 16:58 DApp-Demo-master\build\webpack.ba
文件 1275 2018-05-17 16:58 DApp-Demo-master\build\webpack.dev.conf.js
文件 3572 2018-05-17 16:58 DApp-Demo-master\build\webpack.prod.conf.js
目录 0 2018-05-17 16:58 DApp-Demo-master\config\
文件 1471 2018-05-17 16:58 DApp-Demo-master\config\index.js
目录 0 2018-05-17 16:58 DApp-Demo-master\contract\
文件 4968 2018-05-17 16:58 DApp-Demo-master\contract\BookManager.sol
文件 4533 2018-05-17 16:58 DApp-Demo-master\contract\BookModule.sol
文件 3001 2018-05-17 16:58 DApp-Demo-master\contract\LibBook.sol
目录 0 2018-05-25 14:27 DApp-Demo-master\demo\
文件 974 2018-05-25 14:27 DApp-Demo-master\demo\index.html
目录 0 2018-05-25 14:27 DApp-Demo-master\demo\static\
目录 0 2018-05-25 14:27 DApp-Demo-master\demo\static\css\
文件 189682 2018-05-25 14:27 DApp-Demo-master\demo\static\css\app.css
目录 0 2018-05-25 14:27 DApp-Demo-master\demo\static\fonts\
文件 11040 2018-05-25 14:27 DApp-Demo-master\demo\static\fonts\element-icons.6f0a763.ttf
目录 0 2018-05-25 14:27 DApp-Demo-master\demo\static\js\
文件 11287 2018-05-25 14:27 DApp-Demo-master\demo\static\js\app.js
文件 447826 2018-05-25 14:27 DApp-Demo-master\demo\static\js\home.6cb6cc557bc6f21c8ad2.min.js
文件 1355585 2018-05-25 14:27 DApp-Demo-master\demo\static\js\key-manager-min.js
文件 884 2018-05-25 14:27 DApp-Demo-master\demo\static\js\manifest.js
文件 739664 2018-05-25 14:27 DApp-Demo-master\demo\static\js\vendor.js
............此处省略18881个文件信息
- 上一篇:xiaomi.zip
- 下一篇:Sandcastle
评论
共有 条评论