diff --git a/doc/abc/replay-protected-sighash.md b/doc/abc/replay-protected-sighash.md --- a/doc/abc/replay-protected-sighash.md +++ b/doc/abc/replay-protected-sighash.md @@ -6,7 +6,7 @@ This document describes proposed requirements and design for a reusable signing mechanism ensuring replay protection in the event of a hard fork. It provides a way for users to create transactions which are invalid on forks lacking support for the mechanism and a fork-specific ID. -The proposed digest algorithm is adapted from BIP143[[1]](#bip143) as it minimizes redundant data hashing in verification, covers the input value by the signature and is already implemented in a wide variety of applications[[2]](#bip143Motivation). +The proposed digest algorithm is adapted from [BIP143](https://github.com/bitcoin/bips/blob/master/bip-0143.mediawiki) as it minimizes redundant data hashing in verification, covers the input value by the signature and is already implemented in a [wide variety of applications](https://github.com/bitcoin/bips/blob/master/bip-0143.mediawiki#Motivation). The proposed digest algorithm is used when the `SIGHASH_FORKID` bit is set in the signature's sighash type. The verification of signatures which do not set this bit is not affected. @@ -26,7 +26,7 @@ In presence of the `SIGHASH_FORKID` flag in the signature's sighash type, the proposed algorithm is used. -Signatures using `SIGHASH_FORKID` must be rejected before [UAHF](https://github.com/Bitcoin-UAHF/spec/blob/master/uahf-technical-spec.md) is activated. +Signatures using `SIGHASH_FORKID` must be rejected before [UAHF](uahf-technical-spec.md) is activated. In order to ensure proper activation, the reference implementation uses the `SCRIPT_ENABLE_SIGHASH_FORKID` flag when executing `EvalScript` . @@ -44,7 +44,7 @@ 9. nLocktime of the transaction (4-byte little endian) 10. sighash type of the signature (4-byte little endian) -Items 1, 4, 7 and 9 have the same meaning as in the original algorithm[[3]](#OP_CHECKSIG). +Items 1, 4, 7 and 9 have the same meaning as in the [original algorithm](https://en.bitcoin.it/wiki/OP_CHECKSIG). #### hashPrevouts @@ -79,7 +79,7 @@ * Otherwise, `hashOutputs` is a `uint256` of `0x0000......0000`. Notes: -1. In the [original algorithm][3], a `uint256` of `0x0000......0001` is committed if the input index for a `SINGLE` signature is greater than or equal to the number of outputs. In this BIP a `0x0000......0000` is committed, without changing the semantics. +1. In the [original algorithm](https://en.bitcoin.it/wiki/OP_CHECKSIG), a `uint256` of `0x0000......0001` is committed if the input index for a `SINGLE` signature is greater than or equal to the number of outputs. In this BIP a `0x0000......0000` is committed, without changing the semantics. #### sighash type @@ -190,16 +190,6 @@ ## Note -In the UAHF, a `fork id` of 0 is used (see [[4]](#uahfspec) REQ-6-2 NOTE 4), i.e. +In the UAHF, a `fork id` of 0 is used (see [UAHF Technical Specification](uahf-technical-spec.md) REQ-6-2 NOTE 4), i.e. the GetForkID() function returns zero. In that case the code can be simplified to omit the function. - -## References - -[1] https://github.com/bitcoin/bips/blob/master/bip-0143.mediawiki - -[2] https://github.com/bitcoin/bips/blob/master/bip-0143.mediawiki#Motivation - -[3] https://en.bitcoin.it/wiki/OP_CHECKSIG - -[4] https://github.com/Bitcoin-UAHF/spec/blob/master/uahf-technical-spec.md diff --git a/doc/abc/uahf-technical-spec.md b/doc/abc/uahf-technical-spec.md --- a/doc/abc/uahf-technical-spec.md +++ b/doc/abc/uahf-technical-spec.md @@ -269,13 +269,13 @@ ## References -[1] https://bitco.in/forum/threads/buip040-passed-emergent-consensus-parameters-and-defaults-for-large-1mb-blocks.1643/ +[1] -[2] https://github.com/bitcoin/bips/blob/master/bip-0143.mediawiki#Motivation +[2] [3] [Digest for replay protected signature verification across hard forks](replay-protected-sighash.md) -[4] https://github.com/Bitcoin-UAHF/spec/blob/master/uahf-test-plan.md +[4] [UAHF Test Plan](uahf-test-plan.md) END diff --git a/doc/abc/uahf-test-plan.md b/doc/abc/uahf-test-plan.md --- a/doc/abc/uahf-test-plan.md +++ b/doc/abc/uahf-test-plan.md @@ -99,7 +99,7 @@ ## References -[1] https://github.com/Bitcoin-UAHF/spec/blob/master/uahf-technical-spec.md +[1] [UAHF Technical Specification](uahf-technical-spec.md) END