This module implements Routing Records.Functions related to signed peer records
Types
AddressInfo = object address*: MultiAddress
- Source Edit
PeerRecord = object peerId*: PeerId seqNo*: uint64 addresses*: seq[AddressInfo]
- Source Edit
Procs
proc checkValid(spr: SignedPeerRecord): Result[void, EnvelopeError] {. ...raises: [], tags: [RootEffect].}
- Source Edit
proc decode(T: typedesc[PeerRecord]; buffer: seq[byte]): Result[PeerRecord, ProtoError] {....raises: [].}
- Source Edit
proc encode(record: PeerRecord): seq[byte] {....raises: [], tags: [].}
- Source Edit
proc init(T: typedesc[PeerRecord]; peerId: PeerId; addresses: seq[MultiAddress]; seqNo = toUnix(getTime()).uint64): T:type {....raises: [].}
- Source Edit
proc payloadDomain(T: typedesc[PeerRecord]): string {....raises: [].}
- Source Edit
proc payloadType(T: typedesc[PeerRecord]): seq[byte] {....raises: [].}
- Source Edit
Exports
-
formatItIMPL, exclIfIt, hash, shortLog, random, $, write, PeerId, ==, getField, <=, capLen, init, validate, init, match, <, getBytes, maxInlineKeyLength, write, withValue, safeConvert, shortLog, >=, withValue, public, shortLog, compilesOr, toBytes, filterIt, match, valueOr, init, init, init, toOpt, init, withValue, hasPublicKey, >, hex, len, exceptionToAssert, cmp, extractPublicKey, mapAnd, maErr, writeSeq, DNS_OR_IP, UDP_IP, IP6, DNSANY, exclIfIt, hash, init, UDP_DNS, append, MaError, IPFS, data, WSS_IP, TranscoderOnion3, HTTPS, peekArray, MaPatternOp, CircuitRelay, isEmpty, QUIC_V1, WS_DNS, initVBuffer, TCP_IP, QUIC_V1_IP, contains, matchPartial, protocols, ==, Unreliable, readSeq, checkFutures, UNIX, QUIC_DNS, len, LPError, capLen, init, protoName, protoArgument, validate, TranscoderIP6, encode, protoCode, mapEq, [], MaPattern, TranscoderIP6Zone, $, MaResult, init, peekVarint, TranscoderP2P, protoArgument, initVBuffer, toException, init, TCP_DNS, mapOr, WSS_DNS, writeLPVarint, WebSockets_IP, compilesOr, WebRTCDirect, DNS6, WebSockets, TLS_WS, UDP, [], MaPatResult, QUIC, TranscoderOnion, QUIC_V1_DNS, IP4, TranscoderPort, UTP, withValue, safeConvert, shortLog, items, isEmpty, writeArray, WebSockets_DNS, WS_IP, withValue, public, MAKind, [], write, shortLog, DNSADDR, WSS, &, QUIC_IP, TranscoderDNS, initVBuffer, filterIt, match, TranscoderUnix, $, write, writePBVarint, valueOr, HTTP, TCP, IpTransportProtocol, finish, VBuffer, init, init, Onion3, TcpOnion3, init, getField, MultiAddress, &=, MAProtocol, readVarint, toOpt, init, $, IP, protoAddress, DNS4, readArray, TranscoderIP4, withValue, getRepeatedField, P2PPattern, MaInvalidAddress, toException, isEnough, concat, peekSeq, Reliable, hex, DNS, len, WS, high, toString, exceptionToAssert, writeVarint, bytes, verify, Signature, exclIfIt, shortLog, init, $, toBytes, DigestSheme, ephemeral, getField, mac, init, random, decode, ==, filterIt, withValue, sign, init, encode, shuffle, init, Secret, write, init, init, ephemeral, withValue, safeConvert, init, supported, withValue, public, ECDHEScheme, key, init, init, SignedPayload, toBytes, PrivateKey, keyOpenArray, random, payload, toOpt, newRng, selectBest, Envelope, getPublicKey, init, write, write, exceptionToAssert, init, getField, getField, iv, init, CryptoError, ==, write, SupportedSchemes, libp2p_pki_schemes, init, SupportedSchemesInt, random, toBytes, capLen, macOpenArray, init, toRawBytes, init, CryptoResult, init, write, EnvelopeError, encode, shortLog, init, getBytes, init, decode, shortLog, PKScheme, PublicKey, stretchKeys, valueOr, getBytes, init, getField, ivOpenArray, RsaDefaultKeySize, random, getBytes, compilesOr, orError, init, $, write, goffset, getRawBytes, getOrder, KeyPair, init