libp2p/peerinfo

    Dark Mode
Search:
Group by:
  Source   Edit

Our local peer info

Types

PeerInfo {.public.} = ref object
  peerId*: PeerId
  addrs*: seq[MultiAddress]
  protocols*: seq[string]
  protoVersion*: string
  agentVersion*: string
  privateKey*: PrivateKey
  publicKey*: PublicKey
  signedPeerRecord*: SignedPeerRecord
  Source   Edit

Procs

proc new(p: typedesc[PeerInfo]; key: PrivateKey;
         addrs: openArray[MultiAddress] = []; protocols: openArray[string] = [];
         protoVersion: string = ""; agentVersion: string = ""): PeerInfo {.
    ...raises: [Defect, PeerInfoError], raises: [Defect], public.}
  Source   Edit
func shortLog(p: PeerInfo): auto {....raises: [Defect], public, ...tags: [RootEffect].}
  Source   Edit
proc update(p: PeerInfo) {....raises: [Defect], public,
                           ...tags: [RootEffect, TimeEffect].}
  Source   Edit

Templates

template formatItIMPL(it: PeerInfo): auto
  Source   Edit

Exports

formatItIMPL, hash, init, getField, shortLog, >=, getBytes, shortLog, write, init, public, shortLog, PeerId, ==, toBytes, <=, match, hex, init, write, init, validate, $, init, init, hasPublicKey, match, <, >, len, maxInlineKeyLength, cmp, extractPublicKey, mapAnd, writeLPVarint, MaxMessageSize, DNSANY, hash, append, MaError, IP, IPFS, write, getField, HTTPS, peekArray, MaPatternOp, CircuitRelay, concat, isEmpty, HTTP, getRepeatedField, getField, ProtoScalar, getProtoHeader, contains, WSS, protocols, &, Unreliable, getLen, UNIX, init, protoName, TranscoderDNS, validate, TranscoderIP6, initVBuffer, protoCode, mapEq, [], MaPattern, $, MaPatResult, initProtoBuffer, init, ProtoField, peekVarint, TranscoderP2P, protoArgument, getRequiredRepeatedField, $, mapOr, match, writeSeq, write, ProtoResult, WebRTCDirect, DNS6, initVBuffer, WebSockets, UDP, TranscoderIP6Zone, VBuffer, QUIC, toOpenArray, TranscoderOnion, IP4, TranscoderPort, write, isEnough, getRequiredField, getField, shortLog, readSeq, writeArray, write, UTP, shcopy, init, public, MAKind, [], getField, checkFieldNumber, IP6, shortLog, DNSADDR, ProtoFlags, isEmpty, IpTransportProtocol, getRepeatedField, ==, finish, TranscoderUnix, isEmpty, write, writePBVarint, ProtoFieldKind, TCP, MaResult, finish, ProtoError, &=, init, init, init, MultiAddress, initProtoBuffer, MAProtocol, readVarint, getPackedRepeatedField, getProtoHeader, ProtoHeader, init, $, vsizeof, getField, protoAddress, DNS4, readArray, writePacked, getRepeatedField, getPtr, TranscoderIP4, init, initVBuffer, P2PPattern, MaInvalidAddress, initProtoBuffer, isEnough, items, peekSeq, Reliable, hex, ProtoBuffer, matchPartial, DNS, len, WS, high, toString, encode, writeVarint, SupportedWireTypes, Signature, shortLog, $, toBytes, DigestSheme, init, write, sign, SupportedSchemesInt, decodeExchange, macOpenArray, supported, Secret, $, selectBest, init, getBytes, toRawBytes, init, createExchange, init, getBytes, public, getRawBytes, init, getField, init, toBytes, random, random, init, write, decodeProposal, ephemeral, newRng, write, getPublicKey, getBytes, init, random, ephemeral, init, key, stretchKeys, getField, iv, ==, verify, init, SupportedSchemes, init, libp2p_pki_schemes, toBytes, shuffle, CryptoError, ==, ECDHEScheme, createProposal, mac, write, random, keyOpenArray, CryptoResult, init, init, shortLog, init, shortLog, PKScheme, PublicKey, init, init, PrivateKey, write, ivOpenArray, RsaDefaultKeySize, orError, goffset, getOrder, KeyPair, init, init, <=, ProtoHeader, shortLog, random, $, MaError, ephemeral, MaPatternOp, ==, HTTP, initVBuffer, getProtoHeader, ProtoFlags, getLen, ECDHEScheme, shortLog, init, [], decode, shuffle, random, init, IpTransportProtocol, Secret, peekVarint, random, $, validate, mapOr, init, maxInlineKeyLength, TranscoderDNS, QUIC, init, getRequiredField, mac, init, public, MAKind, getBytes, write, init, getField, checkFieldNumber, init, getRepeatedField, matchPartial, getBytes, len, init, init, initVBuffer, peekSeq, payloadType, getProtoHeader, decodeProposal, init, $, IP, protoAddress, MaPattern, newRng, ==, checkValid, getPublicKey, WebSockets, CircuitRelay, extractPublicKey, mapAnd, init, ==, DNSADDR, write, PeerId, WSS, writePacked, toBytes, encode, len, init, protoName, ==, toRawBytes, TranscoderIP6Zone, initProtoBuffer, init, match, writeLPVarint, CryptoResult, shcopy, ProtoResult, WebRTCDirect, init, $, UDP, TranscoderOnion, write, init, isEmpty, writeArray, [], IP6, shortLog, initVBuffer, PKScheme, toString, payload, init, init, write, DNSANY, TCP, PrivateKey, getBytes, write, &=, TranscoderIP4, init, $, initProtoBuffer, DNS, UTP, goffset, finish, getRawBytes, >, KeyPair, high, init, cmp, init, SupportedWireTypes, formatItIMPL, Signature, readSeq, toBytes, DigestSheme, IPFS, getField, key, isEmpty, ProtoScalar, hex, protocols, init, HTTPS, UNIX, getPtr, TranscoderIP6, encode, MaResult, init, ProtoField, toBytes, writeSeq, &, DNS6, VBuffer, toOpenArray, IP4, TranscoderPort, isEnough, write, getField, init, createExchange, >=, init, payloadDomain, $, SignedPayload, toBytes, write, keyOpenArray, match, isEmpty, getRequiredRepeatedField, init, initProtoBuffer, MAProtocol, decode, getPackedRepeatedField, contains, getField, DNS4, MultiAddress, readArray, selectBest, P2PPattern, Envelope, hasPublicKey, init, isEnough, finish, Reliable, hex, write, WS, init, encode, init, init, readVarint, getField, match, getField, <, iv, MaxMessageSize, CryptoError, getField, append, init, peekArray, PeerRecord, decodeExchange, SupportedSchemes, getRepeatedField, getField, hash, Unreliable, SupportedSchemesInt, random, init, macOpenArray, validate, mapEq, getField, libp2p_pki_schemes, concat, TranscoderP2P, AddressInfo, sign, stretchKeys, write, EnvelopeError, verify, encode, createProposal, MaPatResult, ProtoBuffer, init, decode, shortLog, write, getBytes, write, init, ephemeral, hash, init, PublicKey, supported, writePBVarint, ProtoFieldKind, protoArgument, getRepeatedField, ProtoError, init, getField, ivOpenArray, RsaDefaultKeySize, orError, vsizeof, protoCode, MaInvalidAddress, items, write, getOrder, TranscoderUnix, SignedPeerRecord, writeVarint, toException, toException, allFuturesThrowing, tryAndWarn, checkFutures, LPError