Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace enr

Index

Type aliases

ENRKey: string
ENRValue: Uint8Array
NodeId: string

We represent NodeId as a hex string, since node equality is used very heavily and it is convenient to index data by NodeId

SequenceNumber: bigint

Variables

ERR_INVALID_ID: "Invalid record id" = "Invalid record id"
ERR_NO_SIGNATURE: "No valid signature found" = "No valid signature found"
MAX_RECORD_SIZE: 300 = 300
MULTIADDR_LENGTH_SIZE: 2 = 2
Secp256k1Keypair: IKeypairClass = ...
v4: __module = v4Crypto

Functions

  • createKeypairFromPeerId(peerId: PeerId): IKeypair
  • createNodeId(bytes: Uint8Array): NodeId
  • createPeerIdFromKeypair(keypair: IKeypair): PeerId
  • secp256k1PublicKeyToCompressed(publicKey: Uint8Array): Uint8Array
  • secp256k1PublicKeyToFull(publicKey: Uint8Array): Uint8Array
  • secp256k1PublicKeyToRaw(publicKey: Uint8Array): Uint8Array

Generated using TypeDoc