Skip to content

Validate uncompressed ETH public keys#8

Open
giwaov wants to merge 1 commit into
canopy-network:mainfrom
giwaov:validate-eth-public-key-prefix
Open

Validate uncompressed ETH public keys#8
giwaov wants to merge 1 commit into
canopy-network:mainfrom
giwaov:validate-eth-public-key-prefix

Conversation

@giwaov

@giwaov giwaov commented Jul 6, 2026

Copy link
Copy Markdown

Summary

  • require 65-byte Ethereum secp256k1 public keys to use the uncompressed 0x04 prefix
  • keep existing 64-byte raw Ethereum public key detection unchanged
  • add coverage for raw, uncompressed, and malformed 65-byte keys

Tests

  • npx vitest run src/tests/curve-detection.test.ts
  • npm run build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant