libp2p/protocols/secure/plaintext

    Dark Mode
Search:
Group by:
  Source   Edit

Types

PlainText = ref object of Secure
  localPublicKey: PublicKey
  Source   Edit
PlainTextConnection = ref object of SecureConn
  Source   Edit
PlainTextError = object of LPError
  Source   Edit

Consts

PlainTextCodec = "/plaintext/2.0.0"
  Source   Edit

Procs

proc new(T: typedesc[PlainText]; privateKey: PrivateKey): T:type {....raises: [].}
  Source   Edit

Methods

method handshake(p: PlainText; conn: Connection; initiator: bool;
                 peerId: Opt[PeerId]): Future[SecureConn] {.stackTrace: false,
    ...gcsafe, raises: [], raises: [], tags: [RootEffect].}
  Source   Edit
method init(p: PlainText) {....gcsafe, raises: [], tags: [].}
  Source   Edit
method readMessage(sconn: PlainTextConnection): Future[seq[byte]] {.
    stackTrace: false, ...gcsafe, raises: [], raises: [], tags: [RootEffect].}
  Source   Edit
method write(sconn: PlainTextConnection; message: seq[byte]): Future[void] {.
    ...raises: [], tags: [].}
  Source   Edit