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