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

Function is_confidential

src/simplicity/elements/txEnv.h:31–33  ·  view source on GitHub ↗

Returns true when the prefix indicates the associated value is a confidential value. */

Source from the content-addressed store, hash-verified

29
30/* Returns true when the prefix indicates the associated value is a confidential value. */
31static inline bool is_confidential(confPrefix prefix) {
32 return EVEN_Y == prefix || ODD_Y == prefix;
33}
34
35/* A confidential (256-bit) hash.
36 * When 'prefix' is either 'EVEN_Y' or 'ODD_Y' then 'data' contains the x-coordinate of the point on the secp256k1 curve

Callers 3

copyInputFunction · 0.85
copyOutputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected