Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
whqwjb
go-ethereum
提交
8d8ddea1
G
go-ethereum
项目概览
whqwjb
/
go-ethereum
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
go-ethereum
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
8d8ddea1
编写于
2月 08, 2019
作者:
G
gluk256
提交者:
Rafael Matias
2月 19, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
swarm/pss: transition to whisper v6 (#19023)
(cherry picked from commit
cde02e01
)
上级
068725c5
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
8 addition
and
8 deletion
+8
-8
swarm/pss/client/client_test.go
swarm/pss/client/client_test.go
+1
-1
swarm/pss/forwarding_test.go
swarm/pss/forwarding_test.go
+1
-1
swarm/pss/notify/notify_test.go
swarm/pss/notify/notify_test.go
+1
-1
swarm/pss/pss.go
swarm/pss/pss.go
+3
-3
swarm/pss/pss_test.go
swarm/pss/pss_test.go
+1
-1
swarm/pss/types.go
swarm/pss/types.go
+1
-1
未找到文件。
swarm/pss/client/client_test.go
浏览文件 @
8d8ddea1
...
...
@@ -38,7 +38,7 @@ import (
"github.com/ethereum/go-ethereum/swarm/network"
"github.com/ethereum/go-ethereum/swarm/pss"
"github.com/ethereum/go-ethereum/swarm/state"
whisper
"github.com/ethereum/go-ethereum/whisper/whisperv
5
"
whisper
"github.com/ethereum/go-ethereum/whisper/whisperv
6
"
)
type
protoCtrl
struct
{
...
...
swarm/pss/forwarding_test.go
浏览文件 @
8d8ddea1
...
...
@@ -12,7 +12,7 @@ import (
"github.com/ethereum/go-ethereum/p2p/protocols"
"github.com/ethereum/go-ethereum/swarm/network"
"github.com/ethereum/go-ethereum/swarm/pot"
whisper
"github.com/ethereum/go-ethereum/whisper/whisperv
5
"
whisper
"github.com/ethereum/go-ethereum/whisper/whisperv
6
"
)
type
testCase
struct
{
...
...
swarm/pss/notify/notify_test.go
浏览文件 @
8d8ddea1
...
...
@@ -19,7 +19,7 @@ import (
"github.com/ethereum/go-ethereum/swarm/network"
"github.com/ethereum/go-ethereum/swarm/pss"
"github.com/ethereum/go-ethereum/swarm/state"
whisper
"github.com/ethereum/go-ethereum/whisper/whisperv
5
"
whisper
"github.com/ethereum/go-ethereum/whisper/whisperv
6
"
)
var
(
...
...
swarm/pss/pss.go
浏览文件 @
8d8ddea1
...
...
@@ -38,7 +38,7 @@ import (
"github.com/ethereum/go-ethereum/swarm/network"
"github.com/ethereum/go-ethereum/swarm/pot"
"github.com/ethereum/go-ethereum/swarm/storage"
whisper
"github.com/ethereum/go-ethereum/whisper/whisperv
5
"
whisper
"github.com/ethereum/go-ethereum/whisper/whisperv
6
"
"golang.org/x/crypto/sha3"
)
...
...
@@ -666,7 +666,7 @@ func (p *Pss) processSym(envelope *whisper.Envelope) (*whisper.ReceivedMessage,
if
err
!=
nil
{
continue
}
if
!
recvmsg
.
Validate
()
{
if
!
recvmsg
.
Validate
AndParse
()
{
return
nil
,
""
,
nil
,
fmt
.
Errorf
(
"symmetrically encrypted message has invalid signature or is corrupt"
)
}
p
.
symKeyPoolMu
.
Lock
()
...
...
@@ -693,7 +693,7 @@ func (p *Pss) processAsym(envelope *whisper.Envelope) (*whisper.ReceivedMessage,
return
nil
,
""
,
nil
,
fmt
.
Errorf
(
"could not decrypt message: %s"
,
err
)
}
// check signature (if signed), strip padding
if
!
recvmsg
.
Validate
()
{
if
!
recvmsg
.
Validate
AndParse
()
{
return
nil
,
""
,
nil
,
fmt
.
Errorf
(
"invalid message"
)
}
pubkeyid
:=
common
.
ToHex
(
crypto
.
FromECDSAPub
(
recvmsg
.
Src
))
...
...
swarm/pss/pss_test.go
浏览文件 @
8d8ddea1
...
...
@@ -50,7 +50,7 @@ import (
"github.com/ethereum/go-ethereum/swarm/network"
"github.com/ethereum/go-ethereum/swarm/pot"
"github.com/ethereum/go-ethereum/swarm/state"
whisper
"github.com/ethereum/go-ethereum/whisper/whisperv
5
"
whisper
"github.com/ethereum/go-ethereum/whisper/whisperv
6
"
)
var
(
...
...
swarm/pss/types.go
浏览文件 @
8d8ddea1
...
...
@@ -26,7 +26,7 @@ import (
"github.com/ethereum/go-ethereum/p2p"
"github.com/ethereum/go-ethereum/rlp"
"github.com/ethereum/go-ethereum/swarm/storage"
whisper
"github.com/ethereum/go-ethereum/whisper/whisperv
5
"
whisper
"github.com/ethereum/go-ethereum/whisper/whisperv
6
"
)
const
(
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录