Types
NoiseConnection = ref object of SecureConn
- Source Edit
NoiseDecryptTagError = object of NoiseError
- Source Edit
NoiseError = object of LPStreamError
- Source Edit
NoiseHandshakeError = object of NoiseError
- Source Edit
NoiseHandshakePayloadMsg {.proto2.} = object identityKey* {.fieldNumber: 1.}: Opt[seq[byte]] identitySig* {.fieldNumber: 2.}: Opt[seq[byte]]
- Source Edit
NoiseNonceMaxError = object of NoiseError
- Source Edit
NoiseOversizedPayloadError = object of NoiseError
- Source Edit
Consts
NoiseCodec = "/noise"
- Source Edit
Procs
proc encode(c`gensym2: NoiseHandshakePayloadMsg): seq[byte] {....raises: [], tags: [RootEffect], forbids: [].}
- Source Edit
func shortLog(conn: NoiseConnection): auto {....raises: [], tags: [], forbids: [].}
- Source Edit
Methods
method closeImpl(s: NoiseConnection): InternalRaisesFuture[void, void] {. ...stackTrace: false, raises: [], gcsafe, raises: [], tags: [RootEffect], forbids: [].}
- Source Edit
method handshake(p: Noise; conn: RawConn; initiator: bool; peerId: Opt[PeerId]): InternalRaisesFuture[ SecureConn, (CancelledError, LPStreamError)] {....stackTrace: false, raises: [], gcsafe, raises: [], tags: [RootEffect], forbids: [].}
- Source Edit
method readMessage(sconn: NoiseConnection): InternalRaisesFuture[seq[byte], (CancelledError, LPStreamError)] {....stackTrace: false, raises: [], gcsafe, raises: [], tags: [RootEffect], forbids: [].}
- Source Edit
method write(sconn: NoiseConnection; message: sink seq[byte]): InternalRaisesFuture[ void, (CancelledError, LPStreamError)] {....stackTrace: false, raises: [], gcsafe, raises: [], tags: [RootEffect, WriteIOEffect], forbids: [].}
- Source Edit
Templates
template chroniclesFormatItIMPL(it: NoiseConnection): auto {..}
- Source Edit