1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
/* This module defines operations used in the construction the environment ('txEnv') and some jets.
*/
/* Add an 'confidential' value to be consumed by an ongoing SHA-256 evaluation.
* If the 'confidential' value is blinded, then the 'evenPrefix' used if the y coordinate is even,
* and the 'oddPrefix' is used if the y coordinate is odd.
* If the 'confidential' value is explicit, then '0x01' is used as the prefix.
* If the 'confidential' value is "NULL" then only '0x00' added.
*
* Precondition: NULL != ctx;
* NULL != conf;
*/
void ;
/* Add an 'confidential' asset to be consumed by an ongoing SHA-256 evaluation.
*
* Precondition: NULL != ctx;
* NULL != asset;
*/
void ;
/* Add an 'confidential' nonce to be consumed by an ongoing SHA-256 evaluation.
*
* Precondition: NULL != ctx;
* NULL != nonce;
*/
void ;
/* Add an 'confidential' amount to be consumed by an ongoing SHA-256 evaluation.
*
* Precondition: NULL != ctx;
* NULL != amt;
*/
void ;
/* Compute an Element's entropy value from a prevoutpoint and a contract hash.
* A reimplementation of GenerateAssetEntropy from Element's 'issuance.cpp'.
*
* Precondition: NULL != op;
* NULL != contract;
*/
sha256_midstate ;
/* Compute an Element's issuance Asset ID value from an entropy value.
* A reimplementation of CalculateAsset from Element's 'issuance.cpp'.
*
* Precondition: NULL != entropy;
*/
sha256_midstate ;
/* Compute an Element's issuance Token ID value from an entropy value and an amount prefix.
* A reimplementation of CalculateReissuanceToken from Element's 'issuance.cpp'.
*
* Precondition: NULL != entropy;
*/
sha256_midstate ;
/* Compute an Element's tapleaf hash from a tapleaf version and a 256-bit script value.
* A reimplementation of ComputeTapleafHash from Element's 'interpreter.cpp'.
* Only 256-bit script values are supported as that is the size used for Simplicity CMRs.
*
* Precondition: NULL != cmr;
*/
sha256_midstate ;
/* Compute an Element's tapbrach hash from two branches.
*
* Precondition: NULL != a;
* NULL != b;
*/
sha256_midstate ;