Skip to content

Conversation

@gruszkaa1
Copy link

Summary

Introduced a new example file example-generate-address.js under src/
to demonstrate how to generate a simple P2WPKH (SegWit) Bitcoin address
using the bitcoinjs-lib library.

Details

  • Uses ECPair.makeRandom() for key pair generation.
  • Logs and returns a valid SegWit address.
  • Written in ES module format with clear inline comments.

Purpose

To help new developers quickly test bitcoinjs-lib address creation features
without digging into core transaction code.

@gruszkaa1 gruszkaa1 closed this Nov 5, 2025
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