mirror of
https://github.com/FlipsideCrypto/dcrd.git
synced 2026-02-06 10:56:47 +00:00
txscript: Remove unused isPubkeyHash function.
This commit is contained in:
parent
406f851716
commit
ffe80c736a
@ -105,17 +105,6 @@ func isPubkeyAlt(pops []parsedOpcode) bool {
|
||||
pops[2].opcode.value == OP_CHECKSIGALT
|
||||
}
|
||||
|
||||
// isPubkeyHash returns true if the script passed is a pay-to-pubkey-hash
|
||||
// transaction, false otherwise.
|
||||
func isPubkeyHash(pops []parsedOpcode) bool {
|
||||
return len(pops) == 5 &&
|
||||
pops[0].opcode.value == OP_DUP &&
|
||||
pops[1].opcode.value == OP_HASH160 &&
|
||||
pops[2].opcode.value == OP_DATA_20 &&
|
||||
pops[3].opcode.value == OP_EQUALVERIFY &&
|
||||
pops[4].opcode.value == OP_CHECKSIG
|
||||
}
|
||||
|
||||
// isPubkeyHashAlt returns true if the script passed is a pay-to-pubkey-hash
|
||||
// transaction, false otherwise.
|
||||
func isPubkeyHashAlt(pops []parsedOpcode) bool {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user