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

Function EncodingConstant

src/blech32.cpp:47–50  ·  view source on GitHub ↗

Determine the final constant to use for the specified encoding. */

Source from the content-addressed store, hash-verified

45
46/* Determine the final constant to use for the specified encoding. */
47uint64_t EncodingConstant(Encoding encoding) {
48 assert(encoding == Encoding::BLECH32 || encoding == Encoding::BLECH32M);
49 return encoding == Encoding::BLECH32 ? 1 : 0x455972a3350f7a1;
50}
51
52/** Concatenate two byte arrays. */
53data Cat(data x, const data& y)

Callers 2

VerifyChecksumFunction · 0.70
CreateChecksumFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected