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
/* This module defines operations used in the construction the environment ('txEnv') and some jets.
*/
/* 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 ;