Skip to content

generate bitcoin testnet address and tests#1

Open
dime-squanderer wants to merge 2 commits intoCrystalNetwork:mainfrom
dime-squanderer:testnet-bitcoin-address
Open

generate bitcoin testnet address and tests#1
dime-squanderer wants to merge 2 commits intoCrystalNetwork:mainfrom
dime-squanderer:testnet-bitcoin-address

Conversation

@dime-squanderer
Copy link
Copy Markdown

@dime-squanderer dime-squanderer commented Feb 28, 2024

@LucienSong

  1. Added a method for generating a testnet btc address
  2. add a test for generating btc pub/priv keys and addresses
  3. add a test for generating testnet btc pub/priv keys and addresses

Comment thread test/bip44_test.dart

expect(
node.publicKeyHex(),
"03483f9abc50ae6af3e942dc9861d367ffc84cc125bc8492f280491ead44479fa8",
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

public keys + addresses generated by https://iancoleman.io/bip39/

private key wif generated by https://iancoleman.io/bip39/ and used https://privatekeys.pw/calc wif to private key hex calculator to get the private key hexes in this btc test

Comment thread test/bip44_test.dart

expect(
node.privateKeyHex(hardened: true),
"20cb0ec94fce7f55ac40ebc014fa5d592f5591a006b89e21ce9d11402dd4667c",
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

public keys + addresses also generated by https://iancoleman.io/bip39/

private key wif generated by https://iancoleman.io/bip39/ and used https://learnmeabitcoin.com/technical/wif wif to private key hex calculator to get the private key hexes in this testnet btc test

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