(nrequired, npubkeys int64)
| 136 | } |
| 137 | |
| 138 | func checkMultiSigParams(nrequired, npubkeys int64) error { |
| 139 | if nrequired < 0 { |
| 140 | return errors.WithDetail(ErrBadValue, "negative quorum") |
| 141 | } |
| 142 | if npubkeys < 0 { |
| 143 | return errors.WithDetail(ErrBadValue, "negative pubkey count") |
| 144 | } |
| 145 | if nrequired > npubkeys { |
| 146 | return errors.WithDetail(ErrBadValue, "quorum too big") |
| 147 | } |
| 148 | if nrequired == 0 && npubkeys > 0 { |
| 149 | return errors.WithDetail(ErrBadValue, "quorum empty with non-empty pubkey list") |
| 150 | } |
| 151 | return nil |
| 152 | } |
no outgoing calls
no test coverage detected