The Advantages of SegWit - Part One
Bitcoin transactions are identified by a 64-figure hash of hexadecimal characters (txid), which includes the sender's address and the address of the transaction recipient (Bitcoin).
Soft Fort Sagewat has a wide range of features, some of which are quite technical. This article addresses some of the benefits of Sogot this feature.
Flexible Flexibility Fix
Bitcoin transactions are characterized by a 64-figure hash of hexadecimal characters (txid), which includes the sender's address and the address of the transaction recipient (Bitcoin).
Unfortunately, the txid calculation method is such that it allows small changes to a transaction, not in the transaction sense, but in txid. This situation is called flexibility for third parties. FIP BIP 62 (Flexibility) attempted to address this issue in some way, but its implementation was so complicated that it was not accepted by the consensus and was abandoned.
For example, suppose the transaction with txid is sent to the network as ef74 ... c309, now assume that a third party (third party), for example, has a node in the network that relays this transaction (to another node) or an extractor Transaction adds you to a block that can make changes to the transaction without calling, but the sender and receiver addresses remain constant and, finally, the transaction will be verified with a completely different txid like 683f ... 8bfa.
In other words, if one or more signers of the transaction acknowledge their signatures, that transaction will continue to be valid for payment from the same sender to the same recipient, but txid has completely changed due to participation in the verification of signatures. This is the status of changing the data signature (without affecting inputs and outputs) that results in changes to the transaction, the flexibility of scriptSig.
What Sogotting does is prevent third-party manipulation and scriptSig. To do this, Bitcoin users are able to transfer and split the transaction's flexible transaction components. The result is that the changes made to the witness will not affect the calculation of txid.
Who does the benefit come from?
- Wallet writers (developers) can follow the way Bitcoin spends spending:
This makes it easier to monitor the status of your outbound transactions easily from txid. But in a system with flexibility for the third party, wallets had to implement additional code so that they could cope with txid changes.
- Anyone who does not have an unverified transaction:
If Alice pays to Bob on Transaction No. 1, Bob will use it to pay to Charlie in Transaction 2, and then Alice's payment is faced with a flexible problem and is verified with a different txid, then transaction 2 is now invalid and therefore Charlie will not pay. Now if Bob is trusted, he will pay Charlie again. But if it's not trusted, it can hold that bitcoin amount.
- Lightening network
By fixing the flexibility and scriptSig, the Lightening network needs less complexity to implement and has better performance in using its workspace on BlockChin. By removing the scriptSig, the context is provided for running Lightening clients that they owe the BlockCheck monitoring task out of it (instead of each client having to run the entire Node BlockCan (full Node)).
- Anyone using BlockChin:
Today's smart contracts, such as fine-tune channels and predictable smart contracts, will simplify design, implementation and monitoring.
Note: Sogut's transactions avoid this flexibility if all inputs are compliant with the Suggestion (either directly or through the Pay-Script Hash P2SH address rollback).
Sigash Linear Scalability
A big dilemma for simple ways to increase the bitcoin size is that for a particular transaction, the Signature-hashing chart (expiration time) increases exponentially rather than linear.
In fact, doubling the size of the block leads to a doubling of the number of signature operations and the volume of data that must be washed out for each of the signatures, to be confirmed. The result is a scary situation, because for a specified block that takes 25 seconds to confirm that time, this malicious design will take the verification time to 3 minutes.
Sogut will do this by changing the way the hash is calculated, so that each transaction byte will be maxhashed twice. This will improve the current performance, and so it will still be possible to create large transactions without entering into the hash of signatures, even if they produce malicious or very large blocks (large transactions).
Who does the benefit come from?
By increasing the scalability of the hash data to confirm signatures, increasing the size of the block is more confident. By doing so, without restricting the size of the transactions, Bitcoin allows you to continue to support large payment groups, including pay extra rewards or fundraising services.
The modified hash is applied only to signature operations that originate from the control data, so signature operations from the original block will continue to be restricted.
Signing input values
When a hardware wallet subscribes to a transaction, it can easily confirm the total spend being spent, but once it can safely determine the amount of the charge, it is a complete copy of all the input transactions that are being spent. (Several incoming transactions that are aggregated and the main transaction being sent) and must have hash of all of them to ensure that the data is not false. Since the size of each transaction can be up to 1MB, this will not necessarily be a cheap operation, even if the transaction being signed is very small (its value is low).
To solve this problem, Sageut hash hash value inputs separately. That is, a hardware bag can have a transaction hash, index and value (and which public key is used) to safely sign, without worrying about how much the transaction is spent and how big it is.
What is the benefit of this work?
Hardware manufacturer factories and its users benefit from this by default. However, the use of bitcoin on small devices IOT (Internet of Objects) will be used with much greater confidence. This benefit is only possible when paid transactions are sent to the addresses activated on Sogut (Segwit P2SH).
.good luck.
Very informative. Thanks for sharing. 👍👍
Resteeming.
This post it's very informative, you did a good research on Segwit!
Quite educative, just learnt sth new.
good job.Very informative
U right. Boss please follow me back and upvote and restem my vote also. Am a student trying to make ends meet.
https://steemit.com/nigeria/@tfame3865/brief-history-about-nigeria