Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace enr

Index

Type aliases

ENRKey

ENRKey: string

ENRValue

ENRValue: Uint8Array

NodeId

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

SequenceNumber: bigint

Variables

ERR_INVALID_ID

ERR_INVALID_ID: "Invalid record id" = 'Invalid record id'

ERR_NO_SIGNATURE

ERR_NO_SIGNATURE: "No valid signature found" = 'No valid signature found'

MAX_RECORD_SIZE

MAX_RECORD_SIZE: 300 = 300

MULTIADDR_LENGTH_SIZE

MULTIADDR_LENGTH_SIZE: 2 = 2

Secp256k1Keypair

Secp256k1Keypair: IKeypairClass = ...

v4

v4: __module = v4Crypto

Functions

createKeypair

createKeypairFromPeerId

  • createKeypairFromPeerId(peerId: PeerId): IKeypair

createNodeId

  • createNodeId(buffer: Buffer): NodeId

createPeerIdFromKeypair

  • createPeerIdFromKeypair(keypair: IKeypair): PeerId

generateKeypair

secp256k1PublicKeyToCompressed

  • secp256k1PublicKeyToCompressed(publicKey: Uint8Array): Buffer

secp256k1PublicKeyToFull

  • secp256k1PublicKeyToFull(publicKey: Uint8Array): Buffer

secp256k1PublicKeyToRaw

  • secp256k1PublicKeyToRaw(publicKey: Uint8Array): Buffer

Generated using TypeDoc