libp2p/builders

    Dark Mode
Search:
Group by:
  Source   Edit

This module contains a Switch Building helper.

Example:

let switch =
 SwitchBuilder.new()
 .withRng(rng)
 .withAddresses(multiaddress)
 # etc
 .build()

Types

SecureProtocol {.pure.} = enum
  Noise
  Source   Edit
SwitchBuilder = ref object
  privKey: Option[PrivateKey]
  addresses: seq[MultiAddress]
  secureManagers: seq[SecureProtocol]
  muxers: seq[MuxerProvider]
  transports: seq[TransportProvider]
  rng: ref HmacDrbgContext
  maxConnections: int
  maxIn: int
  sendSignedPeerRecord: bool
  maxOut: int
  maxConnsPerPeer: int
  protoVersion: string
  agentVersion: string
  nameResolver: NameResolver
  peerStoreCapacity: Opt[int]
  autonat: bool
  circuitRelay: Relay
  rdv: RendezVous
  services: seq[Service]
  observedAddrManager: ObservedAddrManager
  enableWildcardResolver: bool
  container*: Container
  Source   Edit
TransportProvider {.public.} = proc (upgr: Upgrade): Transport {....gcsafe,
    raises: [].}
  Source   Edit

Procs

proc new(T: type[SwitchBuilder]): T:type {.public, ...raises: [].}
Creates a SwitchBuilder   Source   Edit
proc newStandardSwitch(privKey = none(PrivateKey); addrs: MultiAddress |
    seq[MultiAddress] = init(MultiAddress, "/ip4/127.0.0.1/tcp/0").expect(
    "valid address"); secureManagers: openArray[SecureProtocol] = [
    SecureProtocol.Noise]; transportFlags: set[ServerFlags] = {};
                       rng = newRng(); inTimeout: Duration = 5.minutes;
                       outTimeout: Duration = 5.minutes;
                       maxConnections = MaxConnections; maxIn = -1; maxOut = -1;
                       maxConnsPerPeer = MaxConnectionsPerPeer;
                       nameResolver: NameResolver = nil;
                       sendSignedPeerRecord = false; peerStoreCapacity = 1000): Switch {.
    ...raises: [LPError], public, ...raises: [].}
Helper for common switch configurations.   Source   Edit
proc withAddress(b: SwitchBuilder; address: MultiAddress;
                 enableWildcardResolver: bool = true): SwitchBuilder {.public,
    ...raises: [], tags: [].}

Set the listening address of the switch
Calling it multiple time will override the value

  Source   Edit
proc withAddresses(b: SwitchBuilder; addresses: seq[MultiAddress];
                   enableWildcardResolver: bool = true): SwitchBuilder {.public,
    ...raises: [], tags: [].}

Set the listening addresses of the switch
Calling it multiple time will override the value

  Source   Edit
proc withAgentVersion(b: SwitchBuilder; agentVersion: string): SwitchBuilder {.
    public, ...raises: [], tags: [].}
  Source   Edit
proc withAutonat(b: SwitchBuilder): SwitchBuilder {....raises: [], tags: [].}
  Source   Edit
proc withBinding[T](b: SwitchBuilder; binding: proc (): T {....gcsafe, raises: [].}): SwitchBuilder {.
    ...raises: [].}
  Source   Edit
proc withCircuitRelay(b: SwitchBuilder; r: Relay = Relay.new()): SwitchBuilder {.
    ...raises: [], tags: [].}
  Source   Edit
proc withMaxConnections(b: SwitchBuilder; maxConnections: int): SwitchBuilder {.
    public, ...raises: [], tags: [].}
Maximum concurrent connections of the switch. You should either use this, or withMaxIn & withMaxOut   Source   Edit
proc withMaxConnsPerPeer(b: SwitchBuilder; maxConnsPerPeer: int): SwitchBuilder {.
    public, ...raises: [], tags: [].}
  Source   Edit
proc withMaxIn(b: SwitchBuilder; maxIn: int): SwitchBuilder {.public,
    ...raises: [], tags: [].}
Maximum concurrent incoming connections. Should be used with withMaxOut   Source   Edit
proc withMaxOut(b: SwitchBuilder; maxOut: int): SwitchBuilder {.public,
    ...raises: [], tags: [].}
Maximum concurrent outgoing connections. Should be used with withMaxIn   Source   Edit
proc withNameResolver(b: SwitchBuilder; nameResolver: NameResolver): SwitchBuilder {.
    public, ...raises: [], tags: [].}
  Source   Edit
proc withNoise(b: SwitchBuilder): SwitchBuilder {.public, ...raises: [], tags: [].}
  Source   Edit
proc withObservedAddrManager(b: SwitchBuilder;
                             observedAddrManager: ObservedAddrManager): SwitchBuilder {.
    ...raises: [], tags: [].}
  Source   Edit
proc withPeerStore(b: SwitchBuilder; capacity: int): SwitchBuilder {.public,
    ...raises: [], tags: [].}
  Source   Edit
proc withPrivateKey(b: SwitchBuilder; privateKey: PrivateKey): SwitchBuilder {.
    public, ...raises: [], tags: [].}
Set the private key of the switch. Will be used to generate a PeerId   Source   Edit
proc withProtoVersion(b: SwitchBuilder; protoVersion: string): SwitchBuilder {.
    public, ...raises: [], tags: [].}
  Source   Edit
proc withRendezVous(b: SwitchBuilder; rdv: RendezVous = RendezVous.new()): SwitchBuilder {.
    ...raises: [], tags: [].}
  Source   Edit
proc withRng(b: SwitchBuilder; rng: ref HmacDrbgContext): SwitchBuilder {.
    public, ...raises: [], tags: [].}
  Source   Edit
proc withServices(b: SwitchBuilder; services: seq[Service]): SwitchBuilder {.
    ...raises: [], tags: [].}
  Source   Edit
proc withSignedPeerRecord(b: SwitchBuilder; sendIt = true): SwitchBuilder {.
    public, ...raises: [], tags: [].}
  Source   Edit
proc withTcpTransport(b: SwitchBuilder; flags: set[ServerFlags] = {}): SwitchBuilder {.
    public, ...raises: [], tags: [].}
  Source   Edit
proc withTransport(b: SwitchBuilder; prov: TransportProvider): SwitchBuilder {.
    public, ...raises: [], tags: [].}
Use a custom transport

Example:

let switch =
  SwitchBuilder.new()
  .withTransport(proc(upgr: Upgrade): Transport = TcpTransport.new(flags, upgr))
  .build()
  Source   Edit

Exports

DNS_OR_IP, ProtoHeader, AlreadyExpectingConnectionError, removePeerEventHandler, shortLog, init, random, new, UDP_DNS, $, getProtoHeader, MaxConnectionsPerPeer, readMessage, ephemeral, Dial, decode, MaPatternOp, ==, WS_DNS, initVBuffer, SupportedSchemes, getProtoHeader, MaxSizeError, ==, ProtoFlags, handler=, getLen, handler, ECDHEScheme, shortLog, hash, closed, addConnEventHandler, [], init, new, shuffle, random, new, VBuffer, Secret, peekVarint, random, handshake, MaxConnections, $, validate, mapOr, dial, init, verify, MaError, secure, UpgradeFailedError, IdentityInvalidMsgError, maxInlineKeyLength, addHandler, TranscoderDNS, QUIC, init, ephemeral, withValue, getRequiredField, getField, readVarint, dial, writeLp, removeConnEventHandler, removePeerEventHandler, getWrapped, public, MAKind, write, init, checkFieldNumber, valueOr, codec, getRepeatedField, matchPartial, addObservation, stop, libp2p_pki_schemes, push, getBytes, trackConnection, init, InvalidMultiCodec, readLp, TimeoutHandler, initVBuffer, start, atEof, PeerEventKind, getOutgoingSlot, write, SeqPeerBook, toOpt, fullAddrs, payloadType, <=, LPStreamError, init, $, IP, protoAddress, MaPattern, decode, newRng, peekArray, ==, DialFailedError, withValue, mount, SecureConn, checkValid, getPublicKey, CircuitRelay, len, libp2p_failed_upgrades_incoming, extractPublicKey, mapAnd, UDP_IP, ConnManager, newLPStreamEOFError, selectMuxer, init, connCount, WebSockets, ==, DNSADDR, handler, ProtoBook, AddressMapper, IdentifyPushHandler, write, new, WSS, LPStream, getField, TCP_IP, close, selectMuxer, guessDialableAddr, writePacked, init, handle, init, closeImpl, toBytes, TCP_DNS, shortLog, encode, len, capLen, dial, init, protoName, protoArgument, PeerEventHandler, LPProtoHandler, Secure, ==, toRawBytes, Identify, IdentifyPush, getStream, $, initProtoBuffer, MultiCodec, init, maxIncomingStreams, WSS_DNS, list, match, <, CryptoResult, WebSockets_DNS, write, ProtoResult, WebRTCDirect, init, upgrade, $, UDP, ProtoVersionBook, Dialer, disconnect, TranscoderOnion, dial, StreamTracker, IdentifyNoPubKeyError, write, init, LPStreamResetError, isEmpty, writeArray, IdentityNoMatchError, new, LPStreamIncompleteError, connectedPeers, PeerId, LPStreamEOFError, maxIncomingStreams=, IP6, shortLog, new, peekSeq, initVBuffer, ==, PKScheme, new, release, payload, triggerConnEvent, triggerPeerEvents, init, connect, newSwitch, write, DNSANY, TCP, PrivateKey, dropPeer, addPeerEventHandler, data, start, write, init, &=, PeerInfoError, newLPStreamClosedError, random, write, compilesOr, toString, close, trackMuxer, TranscoderIP4, init, initProtoBuffer, toException, DNS, init, Upgrade, UTP, goffset, HandlerHolder, PeerStore, >, SecureConnTrackerName, KeyPair, high, SPRBook, AgentBook, dial, cmp, init, SupportedWireTypes, formatItIMPL, formatItIMPL, initStream, formatItIMPL, Signature, contains, codec=, hash, formatItIMPL, getStream, DigestSheme, IPFS, getField, shortLog, readOnce, init, init, secure, isEmpty, ConnEventKind, ProtoScalar, shortLog, getWrapped, connect, hex, expandItIMPL, protocols, bytes, DefaultMaxIncomingStreams, HTTPS, UNIX, multiCodec, TooManyConnectionsError, ConnectionSlot, getPtr, addTransport, IdentifyCodec, TLS_WS, sign, init, addHandler, storeMuxer, addConnEventHandler, formatItIMPL, tryDial, PeerEvent, MaResult, init, ProtoField, connect, init, PeerBookChangeHandler, write, getStream, writeSeq, ConnEvent, init, &, codec, $, DNS6, [], IpTransportProtocol, toOpenArray, key, [], IP4, TranscoderPort, safeConvert, addPeerEventHandler, init, >=, expectConnection, init, finish, payloadDomain, update, $, start, withValue, handle, getRawBytes, readOnce, init, LPStreamLimitError, TranscoderOnion3, SignedPayload, ProtoBuffer, MultiStreamError, mac, closeImpl, toBytes, protoArgument, exceptionToAssert, newLPStreamLimitError, keyOpenArray, init, match, parseFullAddress, $, dial, isEmpty, supported, decode, connectedPeers, new, getRequiredRepeatedField, connect, newLPStreamIncompleteError, write, initProtoBuffer, MAProtocol, newLPStreamResetError, getPackedRepeatedField, initStream, contains, getField, shortLog, DNS4, MultiAddress, WS_IP, readArray, selectBest, multiCodec, P2PPattern, Connection, Envelope, connect, hasPublicKey, AddressBook, toException, contains, init, isEnough, init, getConnections, Reliable, HTTP, addrs, hex, removeConnEventHandler, slotsAvailable, closeImpl, write, WS, AgentVersion, stretchKeys, MultistreamSelect, LPProtocol, init, Matcher, init, getField, match, TcpOnion3, getField, writeLPVarint, iv, DefaultConnectionTimeout, readLine, Eof, CryptoError, getField, hash, append, vsizeof, IdentifyPushCodec, parseFullAddress, WSS_IP, LPStreamConnDownError, PeerRecord, init, codec, getRepeatedField, encode, select, hash, Unreliable, SupportedSchemesInt, random, checkFutures, handler=, LPError, identify, PeerBook, macOpenArray, init, validate, init, addTransport, ProtoVersion, protoCode, mapEq, getField, Onion3, stop, isEnough, select, concat, TranscoderP2P, PeerInfo, AddressInfo, ConnectionTrackerName, TranscoderIP6, new, write, EnvelopeError, readSeq, IdentifyInfo, IdentifyError, addHandler, dial, encode, len, newLPStreamRemoteClosedError, TranscoderIP6Zone, MaPatResult, isConnected, Direction, getBytes, init, InvalidVarintError, Switch, shortLog, items, ==, readVarint, write, getBytes, write, dial, finish, toBytes, MultiCodecError, getMostObservedProtosAndPorts, run, init, ConcurrentUpgrades, tryDial, PublicKey, ConnEventHandler, WebSockets_IP, decodeMsg, writeLp, addTransport, writePBVarint, ProtoFieldKind, readExactly, getRepeatedField, ProtoError, newLPStreamConnDownError, new, new, init, write, initStream, getField, KeyBook, encode, ivOpenArray, connect, closeWithEOF, LPStreamTrackerName, orError, new, ObservedAddrManager, getField, LPStreamRemoteClosedError, libp2p_failed_upgrades_outgoing, init, stop, MaInvalidAddress, select, LPStreamClosedError, RsaDefaultKeySize, getIncomingSlot, Service, write, toBytes, getOrder, TranscoderUnix, setup, SignedPeerRecord, !=, stop, join, writeVarint, getBytes, formatItIMPL, hash, shortLog, random, $, write, PeerId, ==, getField, <=, capLen, init, validate, init, match, <, getBytes, maxInlineKeyLength, write, withValue, safeConvert, shortLog, >=, withValue, public, shortLog, compilesOr, toBytes, match, valueOr, init, init, init, toOpt, init, withValue, hasPublicKey, >, hex, len, exceptionToAssert, cmp, extractPublicKey, shortLog, UDP_DNS, ephemeral, MaPatternOp, <=, ==, ==, shortLog, init, $, validate, init, TLS_WS, TranscoderDNS, init, ephemeral, getField, MAKind, getField, checkFieldNumber, init, codec, getRepeatedField, getBytes, WebSockets, InvalidMultiCodec, peekSeq, fullAddrs, getProtoHeader, init, ==, withValue, getPublicKey, exceptionToAssert, new, DNSANY, DNSADDR, AddressMapper, WSS, init, toBytes, TCP_DNS, shortLog, encode, len, supported, $, WSS_DNS, <, $, PeerInfo, TranscoderOnion, write, key, writeArray, PeerId, IP6, shortLog, &, payload, init, TCP, PrivateKey, getBytes, init, &=, init, $, getRawBytes, KeyPair, update, SupportedWireTypes, hash, hash, init, DNS4, isEmpty, ProtoScalar, HTTPS, TranscoderIP6, encode, MaResult, DNS6, [], IpTransportProtocol, toOpenArray, TranscoderPort, isEnough, write, >=, payloadDomain, init, TranscoderOnion3, protoArgument, write, MaPattern, keyOpenArray, match, WebSockets_DNS, isEmpty, getRequiredRepeatedField, initProtoBuffer, stretchKeys, selectBest, getPtr, multiCodec, Envelope, init, init, Reliable, addrs, match, getField, CryptoError, append, hash, vsizeof, init, parseFullAddress, codec, getRepeatedField, checkFutures, shuffle, validate, protoCode, getField, TranscoderP2P, sign, getBytes, encode, len, TranscoderIP6Zone, shortLog, items, ==, getBytes, init, ProtoFieldKind, protoArgument, readVarint, orError, MaInvalidAddress, writeVarint, getOrder, TranscoderUnix, SignedPeerRecord, DNS_OR_IP, decode, random, getProtoHeader, MaError, decode, matchPartial, WS_DNS, initVBuffer, ProtoFlags, ==, getLen, ECDHEScheme, init, [], random, Secret, peekVarint, random, mapOr, bytes, maxInlineKeyLength, QUIC, finish, withValue, getRequiredField, mac, WS_IP, public, write, write, valueOr, init, HTTP, initVBuffer, TcpOnion3, write, toOpt, payloadType, ProtoHeader, $, IP, protoAddress, newRng, checkValid, len, CircuitRelay, extractPublicKey, mapAnd, UDP_IP, ==, write, TCP_IP, writePacked, readSeq, capLen, protoName, toRawBytes, initProtoBuffer, toException, init, match, writeLPVarint, CryptoResult, parseFullAddress, ProtoResult, WebRTCDirect, init, UDP, init, isEmpty, decode, initVBuffer, PKScheme, random, init, write, init, write, PeerInfoError, compilesOr, TranscoderIP4, initProtoBuffer, toException, DNS, goffset, >, init, high, toString, init, cmp, formatItIMPL, formatItIMPL, Signature, toBytes, DigestSheme, IPFS, getField, MultiAddress, hex, protocols, init, UNIX, init, MultiCodec, ProtoField, toBytes, writeSeq, init, ==, [], IP4, safeConvert, getField, init, finish, withValue, SignedPayload, toBytes, $, init, MAProtocol, getPackedRepeatedField, contains, data, libp2p_pki_schemes, readArray, P2PPattern, hasPublicKey, isEnough, hex, write, WS, init, init, encode, init, getField, iv, getField, WSS_IP, peekArray, PeerRecord, SupportedSchemes, getField, Unreliable, SupportedSchemesInt, random, LPError, macOpenArray, $, mapEq, Onion3, concat, AddressInfo, init, write, EnvelopeError, multiCodec, MaPatResult, ProtoBuffer, init, write, write, UTP, verify, MultiCodecError, init, PublicKey, WebSockets_IP, VBuffer, writePBVarint, getRepeatedField, ProtoError, init, ivOpenArray, RsaDefaultKeySize, getField, write, !=, DNS_OR_IP, shortLog, init, random, UDP_DNS, $, getProtoHeader, MaError, ephemeral, decode, MaPatternOp, ==, WS_DNS, initVBuffer, getProtoHeader, MaxSizeError, ==, ProtoHeader, ProtoFlags, ==, getLen, ECDHEScheme, shortLog, MultiCodecError, closed, [], decode, decode, macOpenArray, random, key, VBuffer, Secret, peekVarint, random, $, validate, init, maxInlineKeyLength, TranscoderDNS, QUIC, $, [], ephemeral, withValue, getRequiredField, getField, init, supported, WS_IP, getBytes, public, MAKind, peekSeq, write, init, checkFieldNumber, valueOr, init, codec, getRepeatedField, matchPartial, libp2p_pki_schemes, getBytes, len, ==, InvalidMultiCodec, readLp, HTTP, initVBuffer, atEof, LPStreamTrackerName, write, toOpt, fullAddrs, payloadType, <=, LPStreamError, init, $, IP, protoAddress, newRng, DefaultConnectionTimeout, withValue, checkValid, mac, getPublicKey, exceptionToAssert, WebSockets, CircuitRelay, ==, extractPublicKey, mapAnd, new, UDP_IP, new, newLPStreamEOFError, ==, DNSADDR, AddressMapper, init, write, PeerId, WSS, LPStream, TCP_IP, close, hash, writePacked, init, init, closeImpl, readSeq, toBytes, TCP_DNS, shortLog, encode, len, capLen, init, protoName, toRawBytes, mapOr, MaPattern, initProtoBuffer, init, WSS_DNS, match, writeLPVarint, CryptoResult, WebSockets_DNS, ProtoResult, WebRTCDirect, init, UDP, TranscoderOnion, StreamTracker, write, init, LPStreamResetError, isEmpty, writeArray, LPStreamIncompleteError, [], LPStreamEOFError, IP6, shortLog, initVBuffer, PKScheme, toString, payload, init, stretchKeys, Connection, write, DNSANY, TCP, PrivateKey, getBytes, write, init, &=, PeerInfoError, newLPStreamClosedError, random, write, compilesOr, TranscoderIP4, initProtoBuffer, toException, DNS, UTP, goffset, >, KeyPair, finish, init, high, init, cmp, init, SupportedWireTypes, formatItIMPL, formatItIMPL, formatItIMPL, Signature, contains, hash, hash, formatItIMPL, toBytes, DigestSheme, IPFS, getField, readOnce, init, isEmpty, ProtoScalar, shortLog, hex, protocols, bytes, HTTPS, encode, len, LPError, getPtr, data, TLS_WS, sign, init, encode, update, MaResult, init, ProtoField, init, write, toBytes, writeSeq, finish, init, &, DNS6, IpTransportProtocol, toOpenArray, init, IP4, TranscoderPort, isEnough, safeConvert, >=, init, payloadDomain, $, withValue, init, LPStreamLimitError, TranscoderOnion3, SignedPayload, init, toBytes, protoArgument, newLPStreamLimitError, keyOpenArray, match, parseFullAddress, $, isEmpty, writeLp, getRequiredRepeatedField, init, newLPStreamIncompleteError, write, initProtoBuffer, MAProtocol, newLPStreamResetError, getPackedRepeatedField, initStream, readVarint, getField, shortLog, DNS4, getWrapped, readArray, selectBest, write, MultiCodec, P2PPattern, Envelope, hasPublicKey, toException, isEnough, init, Reliable, addrs, hex, ProtoBuffer, closeImpl, write, WS, multiCodec, TimeoutHandler, getField, getField, match, <, iv, readLine, Eof, CryptoError, getField, verify, append, vsizeof, init, parseFullAddress, WSS_IP, LPStreamConnDownError, peekArray, UNIX, PeerRecord, codec, getRepeatedField, getField, multiCodec, Unreliable, SupportedSchemesInt, random, checkFutures, shuffle, init, validate, $, protoCode, mapEq, getField, Onion3, TcpOnion3, hash, concat, TranscoderP2P, PeerInfo, AddressInfo, ConnectionTrackerName, TranscoderIP6, write, EnvelopeError, encode, newLPStreamRemoteClosedError, TranscoderIP6Zone, MaPatResult, Direction, init, InvalidVarintError, shortLog, items, ==, write, getBytes, write, init, init, PublicKey, WebSockets_IP, SupportedSchemes, writeLp, getRawBytes, writePBVarint, ProtoFieldKind, readExactly, protoArgument, getRepeatedField, ProtoError, newLPStreamConnDownError, init, write, initStream, getField, MultiAddress, readVarint, ivOpenArray, closeWithEOF, init, orError, getField, LPStreamRemoteClosedError, MaInvalidAddress, LPStreamClosedError, RsaDefaultKeySize, write, getOrder, TranscoderUnix, SignedPeerRecord, !=, join, writeVarint, DNS_OR_IP, hash, UDP_DNS, MaError, IPFS, MaPatternOp, isEmpty, WS_DNS, initVBuffer, ProtoScalar, getProtoHeader, hex, protocols, bytes, ==, getLen, HTTPS, UNIX, hash, isEnough, TranscoderIP6, multiCodec, [], MaResult, init, ProtoField, peekVarint, getRequiredRepeatedField, $, mapOr, writeSeq, WebSockets_IP, &, DNS6, TLS_WS, [], IpTransportProtocol, QUIC, toOpenArray, IP4, TranscoderPort, withValue, safeConvert, getRequiredField, $, WS_IP, withValue, public, MAKind, write, getField, checkFieldNumber, TranscoderOnion3, codec, getRepeatedField, matchPartial, protoArgument, match, WebSockets, $, isEmpty, HTTP, initVBuffer, finish, VBuffer, init, TcpOnion3, initProtoBuffer, MAProtocol, peekSeq, getPackedRepeatedField, toOpt, getProtoHeader, ProtoHeader, IP, getField, protoAddress, DNS4, readArray, getPtr, withValue, multiCodec, P2PPattern, CircuitRelay, contains, isEnough, Reliable, ProtoBuffer, write, len, WS, exceptionToAssert, mapAnd, UDP_IP, DNSANY, ==, DNSADDR, append, write, WSS_IP, peekArray, WSS, codec, readSeq, getRepeatedField, TCP_IP, getField, writePacked, Unreliable, TCP_DNS, encode, capLen, init, protoName, protoArgument, validate, ==, mapEq, Onion3, MaPattern, TranscoderIP6Zone, initProtoBuffer, concat, TranscoderP2P, WSS_DNS, writeLPVarint, write, ProtoResult, WebRTCDirect, MultiCodec, len, $, UDP, MaPatResult, TranscoderOnion, write, init, shortLog, items, isEmpty, writeArray, data, write, init, UTP, [], IP6, shortLog, MultiCodecError, ProtoFlags, ==, toString, finish, WebSockets_DNS, writePBVarint, valueOr, ProtoFieldKind, TCP, TranscoderDNS, getRepeatedField, ProtoError, init, init, getField, MultiAddress, &=, readVarint, compilesOr, vsizeof, getField, TranscoderIP4, init, initVBuffer, protoCode, MaInvalidAddress, initProtoBuffer, DNS, InvalidMultiCodec, TranscoderUnix, high, !=, writeVarint, SupportedWireTypes, Signature, shortLog, toBytes, DigestSheme, ephemeral, init, toRawBytes, sign, SupportedSchemesInt, ECDHEScheme, macOpenArray, Secret, $, write, init, selectBest, init, ephemeral, withValue, safeConvert, init, init, withValue, public, init, getField, valueOr, init, toBytes, random, init, getBytes, getBytes, toOpt, init, newRng, withValue, getPublicKey, init, random, init, exceptionToAssert, init, init, init, getField, iv, CryptoError, ==, verify, init, key, SupportedSchemes, RsaDefaultKeySize, toBytes, capLen, shuffle, supported, write, ==, libp2p_pki_schemes, random, getRawBytes, random, keyOpenArray, CryptoResult, stretchKeys, init, write, init, shortLog, init, PublicKey, mac, shortLog, PKScheme, init, PrivateKey, getBytes, ivOpenArray, write, compilesOr, orError, $, write, goffset, getOrder, KeyPair, toException, toException, checkFutures, LPError