A reference to a CKey: the Hash160 of its serialized public key
Synopsis
Declared in <pubkey.h>
class CKeyID
: public uint160
Base Classes
Name |
Description |
160‐bit opaque blob. |
Member Functions
Name |
Description |
|
Constructors |
The hex representation used by GetHex(), ToString(), and FromHex() is unusual, since it shows bytes of the base_blob in reverse order. For example, a 4‐byte blob {0x12, 0x34, 0x56, 0x78} is represented as "78563412" instead of the more typical "12345678" representation that would be shown in a hex editor or used by typical byte‐array / hex conversion functions like python's bytes.hex() and bytes.fromhex(). |
|
Reads a 64‐bit little‐endian word from the blob at a byte offset. |
|
Returns true if every byte of the blob is zero. |
|
Serializes the blob's raw bytes to a stream. |
|
Sets every byte of the blob to zero. |
|
Returns the blob as a hex string in reverse byte order. |
|
Deserializes the blob's raw bytes from a stream. |
|
Returns a pointer to the first byte of the blob. |
|
Returns a pointer to the blob's raw bytes. |
|
Returns a pointer just past the last byte of the blob. |
|
Get the fingerprint (first four bytes) of this key identifier. |
|
Compares two blobs for byte‐wise equality. |
|
Lexicographic ordering |
Static Member Functions
Protected Data Members
Name |
Description |
Fixed‐size byte storage holding the blob's raw bytes. |
Non-Member Functions
Name |
Description |
Return the CKeyID of the key involved in a script (if there is a unique one). |
|
Convert a witness key‐hash destination back to a key identifier. |
|
Convert a public‐key‐hash destination back to a key identifier. |
Created with MrDocs