This module implements Routing Records.Functions related to signed peer records
Types
AddressInfo {.proto3.} = object address* {.fieldNumber: 1, ext.}: MultiAddress
- Source Edit
PeerRecord {.proto3.} = object peerId* {.fieldNumber: 1, ext.}: PeerId seqNo* {.fieldNumber: 2, pint.}: uint64 addresses* {.fieldNumber: 3.}: seq[AddressInfo]
- Source Edit
Procs
proc checkAddresses(addresses: seq[AddressInfo]): Result[void, string] {. ...raises: [], tags: [RootEffect], forbids: [].}
- Source Edit
proc checkValid(spr: SignedPeerRecord): Result[void, EnvelopeError] {. ...raises: [], tags: [RootEffect], forbids: [].}
- Source Edit
proc encode(c`gensym6: PeerRecord): seq[byte] {....raises: [], tags: [RootEffect], forbids: [].}
- 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
-
hash, shortLog, init, random, supportsPacked, $, write, PeerId, ==, getField, <=, toCidString, shortLog, computeFieldSize, shortLog, capLen, init, validate, init, supportsPacked, exclIfIt, match, <, chroniclesFormatItIMPL, write, getPubKey, maxInlineKeyLength, readFieldInto, withValue, writeField, >=, withValue, computeFieldSize, shortLog, writeField, toBytes, filterIt, match, readFieldInto, toChunks, toCid, getBytes, init, init, take, toOpt, toOpt, init, withValue, hasPublicKey, chroniclesFormatItIMPL, random, >, hex, len, toOpt, cmp, extractPublicKey, DNS_OR_IP, contains, exclIfIt, hash, shortLog, readSeq, UDP_DNS, MaError, IPFS, writeField, data, MaPatternOp, isEmpty, WS_DNS, initVBuffer, hex, protocols, bytes, ==, HTTPS, UNIX, filterIt, QUIC_DNS, shortLog, LPError, TranscoderIP6, encode, getProtocolArgument, MaResult, init, supportsPacked, peekVarint, mapOr, QUIC_V1_IP4, writeSeq, &, Memory, DNS6, TLS_WS, TranscoderDNS, QUIC, [], [], IP4, TranscoderPort, withValue, getIp, $, WS_IP, withValue, MAKind, TranscoderOnion3, getRepeatedField, matchPartial, IpTransportProtocol, match, WebSockets_DNS, WebSockets, $, areAddrsConsistent, isEmpty, HTTP, finish, init, TcpOnion3, MAProtocol, peekSeq, TCP_IP4, toOpt, concat, init, IP, protoAddress, DNS4, QUIC_V1_IP, readArray, withValue, P2PPattern, isEnough, libp2p_multiaddress_exts, Reliable, len, WS, getPart, CircuitRelay, mapAnd, maErr, <, UDP_IP, DNSANY, DNSADDR, append, write, WSS_IP, peekArray, WSS, QUIC_V1, TCP_IP, getField, Unreliable, checkFutures, TCP_DNS, UDP_IP4, capLen, init, protoName, protoArgument, validate, mapEq, Onion3, MaPattern, MaInvalidAddress, TCP_IP6, TranscoderP2P, toException, WSS_DNS, writeLPVarint, write, WebRTCDirect, len, UDP, TranscoderIP6Zone, MaPatResult, TranscoderOnion, QUIC_V1_DNS, readFieldInto, init, shortLog, writeArray, readFieldInto, init, UTP, [], computeFieldSize, IP6, writeField, initVBuffer, QUIC_IP, initVBuffer, WebSockets_IP, VBuffer, writePBVarint, toChunks, TCP, protoArgument, replaceIp, init, take, MultiAddress, supportsPacked, &=, readVarint, toOpt, TranscoderMemory, TranscoderIP4, init, protoCode, $, toException, DNS, items, computeFieldSize, TranscoderUnix, high, toOpt, toString, writeVarint, Signature, exclIfIt, computeFieldSize, shortLog, verify, init, random, supportsPacked, $, toBytes, DigestSheme, ephemeral, init, keyOpenArray, filterIt, computeFieldSize, shortLog, decode, init, sign, SupportedSchemesInt, encode, Rng, shuffle, supported, init, Secret, supportsPacked, ==, ephemeral, withValue, readFieldInto, init, generateBytes, withValue, init, key, init, SignedPayload, generate, toBytes, libp2p_pki_schemes, getBytes, payload, init, write, toOpt, init, ECDHEScheme, newRng, selectBest, supportsPacked, withValue, Envelope, getPublicKey, decode, init, toOpt, init, iv, init, CryptoError, ==, init, write, SupportedSchemes, generate, mac, init, random, toBytes, random, capLen, macOpenArray, init, toRawBytes, decode, pickOne, random, CryptoResult, write, EnvelopeError, encode, init, init, shortLog, writeField, readFieldInto, getBytes, init, verify, PKScheme, PublicKey, stretchKeys, getRawBytes, init, toChunks, generate, PrivateKey, getBytes, init, take, supportsPacked, ivOpenArray, newBearSslRng, RsaDefaultKeySize, orError, $, generate, goffset, writeField, pick, getOrder, KeyPair, init, toOpt