SerializeHDKeypaths

Serialize a map of HD keypaths to a stream under the given key type.

Synopsis

Declared in <psbt.h>

template<typename Stream>
void
SerializeHDKeypaths(
    Stream& s,
    std::map<CPubKey, KeyOriginInfo> const& hd_keypaths,
    CompactSizeWriter type);

Parameters

NameDescription
sThe output stream.
hd_keypathsThe public-key-to-keypath map to serialize.
typeThe map key type byte to write for each entry.