mirror of
https://github.com/btcsuite/btcd.git
synced 2024-11-19 09:50:08 +01:00
txscript: Remove unused isWitnessPubKeyHash
This commit is contained in:
parent
dd609d6e36
commit
ed9e17a043
@ -90,14 +90,6 @@ func IsPayToWitnessPubKeyHash(script []byte) bool {
|
|||||||
return isWitnessPubKeyHashScript(script)
|
return isWitnessPubKeyHashScript(script)
|
||||||
}
|
}
|
||||||
|
|
||||||
// isWitnessPubKeyHash returns true if the passed script is a
|
|
||||||
// pay-to-witness-pubkey-hash, and false otherwise.
|
|
||||||
func isWitnessPubKeyHash(pops []parsedOpcode) bool {
|
|
||||||
return len(pops) == 2 &&
|
|
||||||
pops[0].opcode.value == OP_0 &&
|
|
||||||
pops[1].opcode.value == OP_DATA_20
|
|
||||||
}
|
|
||||||
|
|
||||||
// IsWitnessProgram returns true if the passed script is a valid witness
|
// IsWitnessProgram returns true if the passed script is a valid witness
|
||||||
// program which is encoded according to the passed witness program version. A
|
// program which is encoded according to the passed witness program version. A
|
||||||
// witness program must be a small integer (from 0-16), followed by 2-40 bytes
|
// witness program must be a small integer (from 0-16), followed by 2-40 bytes
|
||||||
|
Loading…
Reference in New Issue
Block a user