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