MCPcopy Create free account
hub / github.com/ElementsProject/elements / GetID

Method GetID

src/pubkey.h:164–167  ·  view source on GitHub ↗

Get the KeyID of this public key (hash of its serialization)

Source from the content-addressed store, hash-verified

162
163 //! Get the KeyID of this public key (hash of its serialization)
164 CKeyID GetID() const
165 {
166 return CKeyID(Hash160(Span{vch}.first(size())));
167 }
168
169 //! Get the 256-bit hash of this public key.
170 uint256 GetHash() const

Callers 5

GetKeyIDsMethod · 0.45
DeriveMethod · 0.45
DeriveMethod · 0.45
UnserializeMethod · 0.45
FillSignatureDataMethod · 0.45

Calls 3

Hash160Function · 0.85
CKeyIDClass · 0.70
sizeFunction · 0.70

Tested by

no test coverage detected