Skip to content

uncaughtException: Point of length 294 was invalid. Expected 33 compressed bytes or 65 uncompressed bytes #8302

@nflaig

Description

@nflaig

Describe the bug

Caught this when running a node on mainnet

consensus-1  | Sep-01 11:55:28.158[network]         error: uncaughtException: Point of length 294 was invalid. Expected 33 compressed bytes or 65 uncompressed bytes
consensus-1  | Error: Point of length 294 was invalid. Expected 33 compressed bytes or 65 uncompressed bytes
consensus-1  |     at fromBytes (file:///usr/app/node_modules/@noble/curves/esm/abstract/weierstrass.js:594:23)
consensus-1  |     at Point.fromHex (file:///usr/app/node_modules/@noble/curves/esm/abstract/weierstrass.js:221:40)
consensus-1  |     at uncompressPublicKey (file:///usr/app/node_modules/@chainsafe/enr/lib/defaultCrypto.js:17:38)
consensus-1  |     at Module.nodeId (file:///usr/app/node_modules/@chainsafe/enr/lib/defaultCrypto.js:20:30)
consensus-1  |     at computeNodeId (file:///usr/app/packages/beacon-node/lib/network/subnets/interface.js:12:37)
consensus-1  |     at PeerManager.onLibp2pPeerConnect (file:///usr/app/packages/beacon-node/lib/network/peers/peerManager.js:117:28)
consensus-1  |     at [nodejs.internal.kHybridDispatch] (node:internal/event_target:827:20)
consensus-1  |     at TypedEventEmitter.dispatchEvent (node:internal/event_target:762:26)
consensus-1  |     at TypedEventEmitter.dispatchEvent (file:///usr/app/node_modules/main-event/dist/src/index.js:105:30)
consensus-1  |     at Libp2p.events.dispatchEvent (file:///usr/app/node_modules/libp2p/dist/src/libp2p.js:45:36) - Point of length 294 was invalid. Expected 33 compressed bytes or 65 uncompressed bytes
consensus-1  | Error: Point of length 294 was invalid. Expected 33 compressed bytes or 65 uncompressed bytes
consensus-1  |     at fromBytes (file:///usr/app/node_modules/@noble/curves/esm/abstract/weierstrass.js:594:23)
consensus-1  |     at Point.fromHex (file:///usr/app/node_modules/@noble/curves/esm/abstract/weierstrass.js:221:40)
consensus-1  |     at uncompressPublicKey (file:///usr/app/node_modules/@chainsafe/enr/lib/defaultCrypto.js:17:38)
consensus-1  |     at Module.nodeId (file:///usr/app/node_modules/@chainsafe/enr/lib/defaultCrypto.js:20:30)
consensus-1  |     at computeNodeId (file:///usr/app/packages/beacon-node/lib/network/subnets/interface.js:12:37)
consensus-1  |     at PeerManager.onLibp2pPeerConnect (file:///usr/app/packages/beacon-node/lib/network/peers/peerManager.js:117:28)
consensus-1  |     at [nodejs.internal.kHybridDispatch] (node:internal/event_target:827:20)
consensus-1  |     at TypedEventEmitter.dispatchEvent (node:internal/event_target:762:26)
consensus-1  |     at TypedEventEmitter.dispatchEvent (file:///usr/app/node_modules/main-event/dist/src/index.js:105:30)
consensus-1  |     at Libp2p.events.dispatchEvent (file:///usr/app/node_modules/libp2p/dist/src/libp2p.js:45:36)

Expected behavior

No uncaught exceptions

Steps to reproduce

Run beacon node on mainnet

Additional context

No response

Operating system

Linux

Lodestar version or commit hash

next / ac704f2

Metadata

Metadata

Assignees

No one assigned

    Labels

    meta-bugIssues that identify a bug and require a fix.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions