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
NoiseNonceMaxError = object of NoiseError
- Source Edit
NoiseOversizedPayloadError = object of NoiseError
- Source Edit
Consts
NoiseCodec = "/noise"
- Source Edit
Procs
proc new(T: typedesc[Noise]; rng: ref HmacDrbgContext; privateKey: PrivateKey; outgoing: bool = true; commonPrologue: seq[byte] = @[]): T:type {. ...raises: [].}
- 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: Connection; 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: seq[byte]): InternalRaisesFuture[ void, (CancelledError, LPStreamError)] {....stackTrace: false, raises: [], gcsafe, raises: [], tags: [WriteIOEffect], forbids: [].}
- Source Edit
Templates
template formatItIMPL(it: NoiseConnection): auto {..}
- Source Edit