MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / PushAll

Function PushAll

src/script/sign.cpp:165–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163}
164
165static CScript PushAll(const std::vector<valtype>& values)
166{
167 CScript result;
168 for (const valtype& v : values) {
169 if (v.size() == 0) {
170 result << OP_0;
171 } else if (v.size() == 1 && v[0] >= 1 && v[0] <= 16) {
172 result << CScript::EncodeOP_N(v[0]);
173 } else {
174 result << v;
175 }
176 }
177 return result;
178}
179
180bool ProduceSignature(const SigningProvider& provider, const BaseSignatureCreator& creator, const CScript& fromPubKey, SignatureData& sigdata, bool no_forkid)
181{

Callers 1

ProduceSignatureFunction · 0.70

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected