mirror of
https://github.com/status-im/nim-libp2p.git
synced 2025-02-10 03:55:30 +00:00
update pinned & fix localCertificate
This commit is contained in:
parent
7945cc754e
commit
359a448c1b
2
.pinned
2
.pinned
@ -15,6 +15,6 @@ serialization;https://github.com/status-im/nim-serialization@#4bdbc29e54fe540499
|
||||
stew;https://github.com/status-im/nim-stew@#3159137d9a3110edb4024145ce0ba778975de40e
|
||||
testutils;https://github.com/status-im/nim-testutils@#dfc4c1b39f9ded9baf6365014de2b4bfb4dafc34
|
||||
unittest2;https://github.com/status-im/nim-unittest2@#2300fa9924a76e6c96bc4ea79d043e3a0f27120c
|
||||
webrtc;https://github.com/status-im/nim-webrtc.git@#7d14cdcb48e24f6e1736d0b335e4e98bbd9221fb
|
||||
webrtc;https://github.com/status-im/nim-webrtc.git@#ec51a19880f533d2f0afc9e79fa9894f81f25c40
|
||||
websock;https://github.com/status-im/nim-websock@#f8ed9b40a5ff27ad02a3c237c4905b0924e3f982
|
||||
zlib;https://github.com/status-im/nim-zlib@#a2f44bb7f65571a894227ff6fde9298a104e03a5
|
||||
|
@ -258,9 +258,10 @@ method upgrade*(
|
||||
assert noiseHandler.len > 0
|
||||
|
||||
let xx = "libp2p-webrtc-noise:".toBytes()
|
||||
let localCert = MultiHash.digest("sha2-256", webRtcConn.connection.conn.conn.localCert).get().data.buffer
|
||||
let localCert = MultiHash.digest("sha2-256", webRtcConn.connection.conn.conn.localCertificate()).get().data.buffer
|
||||
let remoteCert = MultiHash.digest("sha2-256", webRtcConn.connection.conn.conn.remoteCertificate()).get().data.buffer
|
||||
((Noise)noiseHandler[0]).commonPrologue = xx & remoteCert & localCert
|
||||
echo "=> ", ((Noise)noiseHandler[0]).commonPrologue
|
||||
|
||||
let
|
||||
stream = await webRtcConn.getStream(Out) #TODO add channelId: 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user