MCPcopy Create free account
hub / github.com/MonaSolutions/MonaServer / ToId

Method ToId

MonaServer/sources/Script.cpp:453–461  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

451
452
453const UInt8* Script::ToId(const UInt8* data, UInt32 size, UInt8 id[64]) {
454 if (size == 64)
455 return data;
456 if (size == 32) {
457 Buffer buffer(id, 64);
458 return Util::FormatHex(data, size, buffer).data();
459 }
460 return NULL;
461}
462
463const UInt8* Script::ToRawId(const UInt8* data, UInt32 size, UInt8 rawID[32]) {
464 if (size == 32)

Callers

nothing calls this directly

Calls 1

dataMethod · 0.45

Tested by

no test coverage detected