Skip to content

Commit

Permalink
txscript: Remove unused isPubkeyHash function.
Browse files Browse the repository at this point in the history
  • Loading branch information
davecgh authored and cfromknecht committed Feb 5, 2021
1 parent fe80899 commit bf287f5
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions txscript/standard.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,18 +189,6 @@ func isScriptHashScript(script []byte) bool {
return extractScriptHash(script) != nil
}

// 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

}

// multiSigDetails houses details extracted from a standard multisig script.
type multiSigDetails struct {
requiredSigs int
Expand Down

0 comments on commit bf287f5

Please sign in to comment.