docs. minor.
This commit is contained in:
parent
9c3b0b1440
commit
e67a16c2bd
@ -350,8 +350,6 @@ TX.prototype.hasWitness = function hasWitness() {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
TX.prototype.signatureHash = function signatureHash(index, prev, type, version) {
|
TX.prototype.signatureHash = function signatureHash(index, prev, type, version) {
|
||||||
assert(version >= 0 && version <= 1);
|
|
||||||
|
|
||||||
// Traditional sighashing
|
// Traditional sighashing
|
||||||
if (version === 0)
|
if (version === 0)
|
||||||
return this.signatureHashV0(index, prev, type);
|
return this.signatureHashV0(index, prev, type);
|
||||||
@ -359,6 +357,8 @@ TX.prototype.signatureHash = function signatureHash(index, prev, type, version)
|
|||||||
// Segwit sighashing
|
// Segwit sighashing
|
||||||
if (version === 1)
|
if (version === 1)
|
||||||
return this.signatureHashV1(index, prev, type);
|
return this.signatureHashV1(index, prev, type);
|
||||||
|
|
||||||
|
assert(false, 'Unknown sighash version.');
|
||||||
};
|
};
|
||||||
|
|
||||||
TX.prototype.signatureHashV0 = function signatureHashV0(index, prev, type) {
|
TX.prototype.signatureHashV0 = function signatureHashV0(index, prev, type) {
|
||||||
@ -542,7 +542,7 @@ TX.prototype.signatureHashV1 = function signatureHashV1(index, prev, type) {
|
|||||||
* verified. If not present, all outputs will be verified.
|
* verified. If not present, all outputs will be verified.
|
||||||
* @param {Boolean?} force - Force the transaction to
|
* @param {Boolean?} force - Force the transaction to
|
||||||
* be verified, even if it has been confirmed.
|
* be verified, even if it has been confirmed.
|
||||||
* @param {module.script~VerifyFlags?} flags
|
* @param {VerifyFlags?} flags
|
||||||
* @returns {Boolean} Whether the inputs are valid.
|
* @returns {Boolean} Whether the inputs are valid.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -604,7 +604,7 @@ TX.prototype.verify = function verify(index, force, flags) {
|
|||||||
* verified. If not present, all outputs will be verified.
|
* verified. If not present, all outputs will be verified.
|
||||||
* @param {Boolean?} force - Force the transaction to
|
* @param {Boolean?} force - Force the transaction to
|
||||||
* be verified, even if it has been confirmed.
|
* be verified, even if it has been confirmed.
|
||||||
* @param {module.script~VerifyFlags?} flags
|
* @param {VerifyFlags?} flags
|
||||||
* @param {Function} callback
|
* @param {Function} callback
|
||||||
* @returns {Boolean} Whether the inputs are valid.
|
* @returns {Boolean} Whether the inputs are valid.
|
||||||
*/
|
*/
|
||||||
@ -1189,7 +1189,7 @@ TX.prototype.isStandard = function isStandard(flags, ret) {
|
|||||||
* Perform contextual checks to verify coin and input
|
* Perform contextual checks to verify coin and input
|
||||||
* script standardness (including the redeem script).
|
* script standardness (including the redeem script).
|
||||||
* @see AreInputsStandard()
|
* @see AreInputsStandard()
|
||||||
* @param {module.script~VerifyFlags?}
|
* @param {VerifyFlags?}
|
||||||
* @returns {Boolean}
|
* @returns {Boolean}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user