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

Function SerializeHDKeypath

src/psbt.h:207–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205// Serialize an individual HD keypath to a stream
206template<typename Stream>
207void SerializeHDKeypath(Stream& s, KeyOriginInfo hd_keypath)
208{
209 WriteCompactSize(s, (hd_keypath.path.size() + 1) * sizeof(uint32_t));
210 s << hd_keypath.fingerprint;
211 for (const auto& path : hd_keypath.path) {
212 s << path;
213 }
214}
215
216// Serialize HD keypaths to a stream from a map
217template<typename Stream>

Callers 2

SerializeHDKeypathsFunction · 0.85
SerializeMethod · 0.85

Calls 2

WriteCompactSizeFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected