MCPcopy Create free account
hub / github.com/citp/BlockSci / addAddress

Method addAddress

tools/parser/script_output.cpp:282–288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

280}
281
282void ScriptOutputData<blocksci::AddressType::Enum::MULTISIG>::addAddress(const ranges::subrange<const unsigned char *> &vch1) {
283 blocksci::RawPubkey pubkey;
284 pubkey.fill(0);
285 std::copy(vch1.begin(), vch1.end(), pubkey.begin());
286 addresses.emplace_back(pubkey);
287 addressCount++;
288}
289
290blocksci::ArbitraryLengthData<blocksci::MultisigData> ScriptOutputData<blocksci::AddressType::Enum::MULTISIG>::getData(uint32_t txNum, bool topLevel) const {
291 blocksci::MultisigData multisigData{txNum, numRequired, numTotal, addressCount};

Callers 1

MatchMultisigFunction · 0.45

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected