Bitcoin Forum
May 11, 2024, 07:29:07 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Segwit tx format? Need a point in the right direction...  (Read 605 times)
Envrin (OP)
Sr. Member
****
Offline Offline

Activity: 318
Merit: 251



View Profile
July 21, 2017, 10:10:55 PM
Merited by ABCbits (1)
 #1


Hi everyone,

Apologies in advance, as I'm sure this question has been answered 500 times already/  Went blind a wile ago though, tried to research it, but just end up with a convulated mess of some sparing tech articles, opinion pieces, annoncements, and so on.

Obviously, Segwit is upon us, so that means all Envrin software needs to be modified.  Software currently does the following:

1.) Uses Bitcoin Core, the "importaddress" function, plus "walletntoify" config to process all incoming payments.  Parses raw tx, adds input(s) as necessary.
2.) Creates, signs, and broadcasts txs.
3.) For redundancy, checks the tx IDs in every solved block, ensures no txs were missed.
4.) With above process, also checks if any coins were spent outside of the system (ie. unspent input in db shows up in an input of tx), and alerts site owner.

My question is, does anyone by chance some have handy links to easy to read guides that explain how to change hiw the siftware should read, generate, sign, and broadcast trnsactions?  My apologues again, but I've tried looking, and can't seem to find anything coherent.  I'm sure it's just me being blind again, and I would eventually be able to find it, but thought it'd be easier just to ask, instead of me spending an inordinate amount of time researching it.

Any handy links you have to explain the changes in tx formats would be greatly appreciated.  Thanks in advance.

Once a transaction has 6 confirmations, it is extremely unlikely that an attacker without at least 50% of the network's computation power would be able to reverse it.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715412547
Hero Member
*
Offline Offline

Posts: 1715412547

View Profile Personal Message (Offline)

Ignore
1715412547
Reply with quote  #2

1715412547
Report to moderator
1715412547
Hero Member
*
Offline Offline

Posts: 1715412547

View Profile Personal Message (Offline)

Ignore
1715412547
Reply with quote  #2

1715412547
Report to moderator
1715412547
Hero Member
*
Offline Offline

Posts: 1715412547

View Profile Personal Message (Offline)

Ignore
1715412547
Reply with quote  #2

1715412547
Report to moderator
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3388
Merit: 6635


Just writing some code


View Profile WWW
July 22, 2017, 01:32:14 AM
 #2

You should read the BIPs that specify segwit: BIPs 141, 143, and 144. There's also a Segwit wallet dev guide on Bitcoincore.org.

gmaxwell
Moderator
Legendary
*
expert
Offline Offline

Activity: 4172
Merit: 8419



View Profile WWW
July 23, 2017, 06:59:06 AM
Merited by ABCbits (1)
 #3

The Bitcoin Core integrated wallet doesn't yet use segwit (except with minimal shims for testing); expect a release that does shortly after segwit is active.  Based on your comments it may be possible for you to the minimal functionality, but it'll be extra steps that you you'll be able to avoid later.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!