diff --git a/libp2p/protocols/secure/secure.nim b/libp2p/protocols/secure/secure.nim index 5ab1e869c..68f2db821 100644 --- a/libp2p/protocols/secure/secure.nim +++ b/libp2p/protocols/secure/secure.nim @@ -10,8 +10,7 @@ import options import chronos import chronicles -import secureconn, - ../protocol, +import ../protocol, ../../stream/bufferstream, ../../crypto/crypto, ../../connection, @@ -19,6 +18,13 @@ import secureconn, type Secure* = ref object of LPProtocol # base type for secure managers + SecureConn* = ref object of Connection + +method readMessage*(c: SecureConn): Future[seq[byte]] {.async, base.} = + doAssert(false, "Not implemented!") + +method writeMessage*(c: SecureConn, data: seq[byte]) {.async, base.} = + doAssert(false, "Not implemented!") method handshake(s: Secure, conn: Connection, diff --git a/libp2p/protocols/secure/secureconn.nim b/libp2p/protocols/secure/secureconn.nim deleted file mode 100644 index db8a577a5..000000000 --- a/libp2p/protocols/secure/secureconn.nim +++ /dev/null @@ -1,20 +0,0 @@ -## Nim-LibP2P -## Copyright (c) 2020 Status Research & Development GmbH -## Licensed under either of -## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) -## * MIT license ([LICENSE-MIT](LICENSE-MIT)) -## at your option. -## This file may not be copied, modified, or distributed except according to -## those terms. - -import chronos -import ../../connection - -type - SecureConn* = ref object of Connection - -method readMessage*(c: SecureConn): Future[seq[byte]] {.async, base.} = - doAssert(false, "Not implemented!") - -method writeMessage*(c: SecureConn, data: seq[byte]) {.async, base.} = - doAssert(false, "Not implemented!")