| 177 | } |
| 178 | |
| 179 | blocksci::uint160 ScriptOutputData<blocksci::AddressType::Enum::PUBKEY>::getHash() const { |
| 180 | auto length = CPubKey::GetLen(pubkey[0]); |
| 181 | return hash160(pubkey.data(), length); |
| 182 | } |
| 183 | |
| 184 | blocksci::PubkeyData ScriptOutputData<blocksci::AddressType::Enum::PUBKEY>::getData(uint32_t txNum, bool topLevel) const { |
| 185 | blocksci::PubkeyData data{txNum, pubkey}; |