MCPcopy Create free account
hub / github.com/copernet/copernicus / CheckScriptSigStandard

Method CheckScriptSigStandard

model/script/script.go:627–636  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

625}
626
627func (s *Script) CheckScriptSigStandard() (bool, string) {
628 if s.Size() > MaxTxInStandardScriptSigSize {
629 return false, "scriptsig-size"
630 }
631 if !s.IsPushOnly() {
632 return false, "scriptsig-not-pushonly"
633 }
634
635 return true, ""
636}
637
638func (s *Script) IsPayToScriptHash() bool {
639 size := len(s.data)

Callers 1

CheckStandardMethod · 0.80

Calls 2

SizeMethod · 0.95
IsPushOnlyMethod · 0.95

Tested by

no test coverage detected