Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
JDChain
Explorer
提交
a5ac13a8
E
Explorer
项目概览
JDChain
/
Explorer
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
E
Explorer
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
a5ac13a8
编写于
11月 20, 2018
作者:
J
jinlong12
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
代码提交
上级
98e86069
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
39 addition
and
42 deletion
+39
-42
server/routes/ledgers.js
server/routes/ledgers.js
+12
-24
src/pages/history/history.t.html
src/pages/history/history.t.html
+12
-12
src/stores/HistoryStore.js
src/stores/HistoryStore.js
+15
-6
未找到文件。
server/routes/ledgers.js
浏览文件 @
a5ac13a8
...
...
@@ -1307,16 +1307,14 @@ router.get('/*/txs/*', function(req, res) {
},
"
endpointSignatures
"
:
[{
"
digest
"
:
{
"
algorithm
"
:
"
ED25519
"
,
"
rawDigest
"
:
"
emhhbmdzYW4=
"
"
value
"
:
"
41EAKo3Kx9K3Q7gf2Lj93SBisqdk5UzVMmnZYSZ8wnjJsqWuDcntspYTw8pCT4Ur4agTwkwEWH3Vqiih6ECW2jYMf
"
},
"
pubKey
"
:
{
"
value
"
:
"
S76SHyu8p164
"
}
},
{
"
digest
"
:
{
"
algorithm
"
:
"
ED25519
"
,
"
rawDigest
"
:
"
bGlzaQ==
"
"
value
"
:
"
41EAKo3Kx9K3Q7gf2Lj93SBisqdk5UzVMmnZYSZ8wnjJsqWuDcntspYTw8pCT4Ur4agTwkwEWH3Vqiih6ECW2jYMf
"
},
"
pubKey
"
:
{
"
value
"
:
"
S76SHz1gLqEL
"
...
...
@@ -1328,16 +1326,14 @@ router.get('/*/txs/*', function(req, res) {
},
"
nodeSignatures
"
:
[{
"
digest
"
:
{
"
algorithm
"
:
"
ED25519
"
,
"
rawDigest
"
:
"
d2FuZ3d1
"
"
value
"
:
"
41EAKo3Kx9K3Q7gf2Lj93SBisqdk5UzVMmnZYSZ8wnjJsqWuDcntspYTw8pCT4Ur4agTwkwEWH3Vqiih6ECW2jYMf
"
},
"
pubKey
"
:
{
"
value
"
:
"
S76SHz8DsfNc
"
}
},
{
"
digest
"
:
{
"
algorithm
"
:
"
ED25519
"
,
"
rawDigest
"
:
"
emhhb2xpdQ==
"
"
value
"
:
"
41EAKo3Kx9K3Q7gf2Lj93SBisqdk5UzVMmnZYSZ8wnjJsqWuDcntspYTw8pCT4Ur4agTwkwEWH3Vqiih6ECW2jYMf
"
},
"
pubKey
"
:
{
"
value
"
:
"
S76SHzEmQVWt
"
...
...
@@ -1368,8 +1364,7 @@ router.get('/*/txs/*', function(req, res) {
},
{
"
addressSignature
"
:
{
"
digest
"
:
{
"
algorithm
"
:
"
ED25519
"
,
"
rawDigest
"
:
"
d2FuZ3d1
"
"
value
"
:
"
41EAKo3Kx9K3Q7gf2Lj93SBisqdk5UzVMmnZYSZ8wnjJsqWuDcntspYTw8pCT4Ur4agTwkwEWH3Vqiih6ECW2jYMf
"
},
"
pubKey
"
:
{
"
value
"
:
"
6gtyw9HjZbi
"
...
...
@@ -1395,8 +1390,7 @@ router.get('/*/txs/*', function(req, res) {
},
"
addressSignature
"
:
{
"
digest
"
:
{
"
algorithm
"
:
"
ED25519
"
,
"
rawDigest
"
:
"
emhhb2xpdQ==
"
"
value
"
:
"
41EAKo3Kx9K3Q7gf2Lj93SBisqdk5UzVMmnZYSZ8wnjJsqWuDcntspYTw8pCT4Ur4agTwkwEWH3Vqiih6ECW2jYMf
"
},
"
pubKey
"
:
{
"
value
"
:
"
6gtyw9HjZbi
"
...
...
@@ -1432,16 +1426,14 @@ router.get('/*/txs/*', function(req, res) {
},
"
endpointSignatures
"
:
[{
"
digest
"
:
{
"
algorithm
"
:
"
ED25519
"
,
"
rawDigest
"
:
"
emhhbmdzYW4=
"
"
value
"
:
"
41EAKo3Kx9K3Q7gf2Lj93SBisqdk5UzVMmnZYSZ8wnjJsqWuDcntspYTw8pCT4Ur4agTwkwEWH3Vqiih6ECW2jYMf
"
},
"
pubKey
"
:
{
"
value
"
:
"
S76SHyu8p164
"
}
},
{
"
digest
"
:
{
"
algorithm
"
:
"
ED25519
"
,
"
rawDigest
"
:
"
bGlzaQ==
"
"
value
"
:
"
41EAKo3Kx9K3Q7gf2Lj93SBisqdk5UzVMmnZYSZ8wnjJsqWuDcntspYTw8pCT4Ur4agTwkwEWH3Vqiih6ECW2jYMf
"
},
"
pubKey
"
:
{
"
value
"
:
"
S76SHz1gLqEL
"
...
...
@@ -1453,16 +1445,14 @@ router.get('/*/txs/*', function(req, res) {
},
"
nodeSignatures
"
:
[{
"
digest
"
:
{
"
algorithm
"
:
"
ED25519
"
,
"
rawDigest
"
:
"
d2FuZ3d1
"
"
value
"
:
"
41EAKo3Kx9K3Q7gf2Lj93SBisqdk5UzVMmnZYSZ8wnjJsqWuDcntspYTw8pCT4Ur4agTwkwEWH3Vqiih6ECW2jYMf
"
},
"
pubKey
"
:
{
"
value
"
:
"
S76SHz8DsfNc
"
}
},
{
"
digest
"
:
{
"
algorithm
"
:
"
ED25519
"
,
"
rawDigest
"
:
"
emhhb2xpdQ==
"
"
value
"
:
"
41EAKo3Kx9K3Q7gf2Lj93SBisqdk5UzVMmnZYSZ8wnjJsqWuDcntspYTw8pCT4Ur4agTwkwEWH3Vqiih6ECW2jYMf
"
},
"
pubKey
"
:
{
"
value
"
:
"
S76SHzEmQVWt
"
...
...
@@ -1493,8 +1483,7 @@ router.get('/*/txs/*', function(req, res) {
},
{
"
addressSignature
"
:
{
"
digest
"
:
{
"
algorithm
"
:
"
ED25519
"
,
"
rawDigest
"
:
"
d2FuZ3d1
"
"
value
"
:
"
41EAKo3Kx9K3Q7gf2Lj93SBisqdk5UzVMmnZYSZ8wnjJsqWuDcntspYTw8pCT4Ur4agTwkwEWH3Vqiih6ECW2jYMf
"
},
"
pubKey
"
:
{
"
value
"
:
"
6gtyw9HjZbi
"
...
...
@@ -1520,8 +1509,7 @@ router.get('/*/txs/*', function(req, res) {
},
"
addressSignature
"
:
{
"
digest
"
:
{
"
algorithm
"
:
"
ED25519
"
,
"
rawDigest
"
:
"
emhhb2xpdQ==
"
"
value
"
:
"
41EAKo3Kx9K3Q7gf2Lj93SBisqdk5UzVMmnZYSZ8wnjJsqWuDcntspYTw8pCT4Ur4agTwkwEWH3Vqiih6ECW2jYMf
"
},
"
pubKey
"
:
{
"
value
"
:
"
6gtyw9HjZbi
"
...
...
src/pages/history/history.t.html
浏览文件 @
a5ac13a8
...
...
@@ -534,11 +534,11 @@
<tbody>
<tr>
<td>
签名算法 :
</td>
<td>
{
@item['digest']['algorithm'
]}
</td>
<td>
{
store.digests[@index
]}
</td>
</tr>
<tr>
<td>
签名数据 :
</td>
<td>
{@item['digest']['
rawDigest
'] || ''}
</td>
<td>
{@item['digest']['
value
'] || ''}
</td>
</tr>
<tr>
<td>
公钥算法 :
</td>
...
...
@@ -573,11 +573,11 @@
<tbody>
<tr>
<td>
签名算法 :
</td>
<td>
{
@item['digest']['algorithm'
] || ''}
</td>
<td>
{
store.digestsNode[@index
] || ''}
</td>
</tr>
<tr>
<td>
签名数据 :
</td>
<td>
{@item['digest']['
rawDigest
'] || ''}
</td>
<td>
{@item['digest']['
value
'] || ''}
</td>
</tr>
<tr>
<td>
公钥算法 :
</td>
...
...
@@ -662,13 +662,13 @@
<tr>
<td>
签名算法 :
</td>
<td>
{store.contracts.addressSignature.digest
.algorithm
|| ''}
{store.contracts.addressSignature.digest
['algotithm']
|| ''}
</td>
</tr>
<tr>
<td>
签名数据 :
</td>
<td>
{store.contracts.addressSignature.digest.
rawDigest
|| ''}
{store.contracts.addressSignature.digest.
value
|| ''}
</td>
</tr>
<tr>
...
...
@@ -761,11 +761,11 @@
</tr>
<tr>
<td>
签名算法 :
</td>
<td>
{store.accounts.addressSignature.digest
.algorithm
|| ''}
</td>
<td>
{store.accounts.addressSignature.digest
['algotithm']
|| ''}
</td>
</tr>
<tr>
<td>
签名数据 :
</td>
<td>
{store.accounts.addressSignature.digest.
rawDigest
|| ''}
</td>
<td>
{store.accounts.addressSignature.digest.
value
|| ''}
</td>
</tr>
<tr>
<td>
签名公钥算法 :
</td>
...
...
@@ -805,16 +805,16 @@
{store.users.userID.pubKey.value || ''}
</td>
</tr>
<
#if
{{
store.users.addressSignature.digest
.algorithm
}}
>
<
#if
{{
store.users.addressSignature.digest
['
algotithm
']
}}
>
<tr>
<td>
签名算法 :
</td>
<td>
{store.users.addressSignature.digest
.algorithm
|| ''}
</td>
<td>
{store.users.addressSignature.digest
['algotithm']
|| ''}
</td>
</tr>
</
#
if>
<
#if
{{
store.users.addressSignature.digest.
rawDigest
}}
>
<
#if
{{
store.users.addressSignature.digest.
value
}}
>
<tr>
<td>
签名数据 :
</td>
<td>
{store.users.addressSignature.digest.
rawDigest
|| ''}
</td>
<td>
{store.users.addressSignature.digest.
value
|| ''}
</td>
</tr>
</
#
if>
<
#if
{{
store.pubF
}}
>
...
...
src/stores/HistoryStore.js
浏览文件 @
a5ac13a8
...
...
@@ -265,15 +265,19 @@ export default class HistoryStore {
let
response
=
result
&&
result
.
data
?
result
.
data
:
{};
this
.
pubKeys
=
[];
this
.
digests
=
[];
this
.
pubKeysNode
=
[];
this
.
digestsNode
=
[];
this
.
showHistoryState
=
3
;
this
.
transactionData
=
{...
response
};
let
arr
=
this
.
transactionData
.
endpointSignatures
?
[...
this
.
transactionData
.
endpointSignatures
]
:
[];
arr
.
length
!=
0
&&
arr
.
map
((
item
,
key
)
=>
{
this
.
pubKeys
.
push
(
tranBase58
(
item
[
'
pubKey
'
][
'
value
'
]));
this
.
digests
.
push
(
tranBase58
(
item
[
'
digest
'
][
'
value
'
]));
});
let
arr1
=
this
.
transactionData
.
nodeSignatures
?
[...
this
.
transactionData
.
nodeSignatures
]
:
[];
arr1
.
length
!=
0
&&
arr1
.
map
((
item
,
key
)
=>
{
this
.
pubKeysNode
.
push
(
tranBase58
(
item
[
'
pubKey
'
][
'
value
'
]));
this
.
digestsNode
.
push
(
tranBase58
(
item
[
'
digest
'
][
'
value
'
]));
});
let
arr2
=
this
.
transactionData
.
transactionContent
&&
this
.
transactionData
.
transactionContent
.
operations
?
this
.
transactionData
.
transactionContent
.
operations
:
[];
arr2
.
length
!=
0
&&
arr2
.
map
((
item
,
key
)
=>
{
...
...
@@ -281,12 +285,23 @@ export default class HistoryStore {
this
.
writes
=
{...
item
};
}
else
if
(
item
.
contractID
&&
JSON
.
stringify
(
item
.
contractID
)
!=
'
{}
'
)
{
this
.
contracts
=
{...
item
};
this
.
contracts
.
addressSignature
.
digest
[
'
algotithm
'
]
=
tranBase58
(
this
.
contracts
.
addressSignature
.
digest
[
'
value
'
]);
this
.
pubA
=
tranBase58
(
this
.
contracts
.
addressSignature
.
pubKey
.
value
)
||
''
;
this
.
pubE
=
tranBase58
(
this
.
contracts
.
contractID
.
pubKey
.
value
)
||
''
;
}
else
if
(
item
.
args
&&
item
.
args
!=
''
)
{
this
.
events
=
{...
item
};
// this.events.addressSignature.digest['algotithms'] = tranBase58(this.events.addressSignature.digest['value']);
}
else
if
(
item
.
accountID
&&
JSON
.
stringify
(
item
.
accountID
)
!=
'
{}
'
)
{
this
.
accounts
=
{...
item
};
this
.
accounts
.
addressSignature
.
digest
[
'
algotithm
'
]
=
tranBase58
(
this
.
accounts
.
addressSignature
.
digest
[
'
value
'
]);
this
.
pubB
=
tranBase58
(
this
.
accounts
.
accountID
.
pubKey
.
value
)
||
''
;
this
.
pubC
=
tranBase58
(
this
.
accounts
.
addressSignature
.
pubKey
.
value
)
||
''
;
}
else
if
(
item
.
userID
&&
JSON
.
stringify
(
item
.
userID
)
!=
'
{}
'
)
{
this
.
users
=
{...
item
};
this
.
users
.
addressSignature
.
digest
[
'
algotithm
'
]
=
tranBase58
(
this
.
users
.
addressSignature
.
digest
[
'
value
'
]);
this
.
pubD
=
tranBase58
(
this
.
users
.
userID
.
pubKey
.
value
)
||
''
;
this
.
pubF
=
tranBase58
(
this
.
users
.
addressSignature
.
pubKey
.
value
)
||
''
;
}
else
{
}
...
...
@@ -299,12 +314,6 @@ export default class HistoryStore {
});
this
.
mapShow
(
this
.
writes
.
writeSet
);
this
.
pubA
=
tranBase58
(
this
.
contracts
.
addressSignature
.
pubKey
.
value
)
||
''
;
this
.
pubB
=
tranBase58
(
this
.
accounts
.
accountID
.
pubKey
.
value
)
||
''
;
this
.
pubC
=
tranBase58
(
this
.
accounts
.
addressSignature
.
pubKey
.
value
)
||
''
;
this
.
pubD
=
tranBase58
(
this
.
users
.
userID
.
pubKey
.
value
)
||
''
;
this
.
pubE
=
tranBase58
(
this
.
contracts
.
contractID
.
pubKey
.
value
)
||
''
;
this
.
pubF
=
tranBase58
(
this
.
users
.
addressSignature
.
pubKey
.
value
)
||
''
;
}
@
autobind
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录