vanitygen icon indicating copy to clipboard operation
vanitygen copied to clipboard

SegWit compliant?

Open mautematico opened this issue 8 years ago • 7 comments

Are addresses generated by vanitygen compatible with SegWit?

mautematico avatar Sep 08 '17 04:09 mautematico

Apparently much new code will be needed for SegWit, addresses for now begin with 3 and will begin with bc https://github.com/bitcoin/bips/blob/master/bip-0173.mediawiki#Examples

reppolice avatar Nov 24 '17 16:11 reppolice

Vanitygen cannot currently generate SegWit (or anything but P2PKH) addresses. To support P2SH-wrapped SegWit addresses, which are what most people want when they say "SegWit" address, vanitygen will need to be changed from simply generating an ECDSA keypair to being able to generate a small Bitcoin Script which involves the random keypair, which is a significant, but not massive, change.

markasoftware avatar Dec 09 '17 00:12 markasoftware

@mautematico run ./vanitygen -F script -i 3[YOUR-PATTERN]

$ ./vanitygen -F script -i 3eg

Difficulty: 676
Pattern: 3eg                                                                   
P2SHAddress: 3EgkNY8517wuHuEf7GKfj2tFaBZJDaqTUx
Address: 15T3zQvPup9qRSvzCJx6oSubzCPuKUN4bY
Privkey: 5KeeNxS365Lejte1UticG4C9zPjTq48ShV58ws5mzodk2Ahv7mj

jaonoctus avatar Jan 04 '18 07:01 jaonoctus

I've been asking around what to do with this output @jaonoctus , cant get any answers. Straight importing this privkey in Electrum gives me the 1xx address. Are these 3xx addresses known to work, and how?

reppolice avatar Jan 11 '18 17:01 reppolice

oclVanitygen doesn't have "script"

AngelTs avatar Jan 17 '18 12:01 AngelTs

@reppolice here is a way to access the generated P2SH address

tosscoin avatar Apr 23 '18 20:04 tosscoin

https://bitcointalk.org/index.php?topic=25804.msg35345519#msg35345519

tosscoin avatar Apr 23 '18 20:04 tosscoin