Determine the final constant to use for the specified encoding. */
| 117 | |
| 118 | /* Determine the final constant to use for the specified encoding. */ |
| 119 | uint32_t EncodingConstant(Encoding encoding) { |
| 120 | assert(encoding == Encoding::BECH32 || encoding == Encoding::BECH32M); |
| 121 | return encoding == Encoding::BECH32 ? 1 : 0x2bc830a3; |
| 122 | } |
| 123 | |
| 124 | /** This function will compute what 6 5-bit values to XOR into the last 6 input values, in order to |
| 125 | * make the checksum 0. These 6 values are packed together in a single 30-bit integer. The higher |
no outgoing calls
no test coverage detected