A version‐0 witness key‐hash destination for a P2WPKH address.

Synopsis

Declared in <addresstype.h>

struct WitnessV0KeyHash
    : BaseHash<uint160>

Base Classes

Name

Description

BaseHash<uint160>

Wraps a fixed‐size hash value and exposes byte‐range access to it.

Member Functions

Name

Description

WitnessV0KeyHash [constructor]

Constructors

ToString

Returns the hexadecimal string representation of the hash.

begin

begin overloads

data

data overloads

end

end overloads

size

Returns the number of bytes in the hash.

operator std::vector<unsigned char>

Converts the hash to a byte vector.

operator==

Compares two hashes for equality.

operator<

Orders two hashes.

Protected Data Members

Name

Description

m_hash

The wrapped hash value.

Non-Member Functions

Name

Description

ToKeyID

Convert a witness key‐hash destination back to a key identifier.

Created with MrDocs