@@ -10,49 +10,49 @@ typedef rawElementsOutput rawOutput;
10
10
typedef rawElementsInput rawInput ;
11
11
typedef rawElementsTransaction rawTransaction ;
12
12
typedef rawElementsTapEnv rawTapEnv ;
13
-
14
- const size_t rustsimplicity_0_5_c_sizeof_rawBuffer = sizeof (rawBuffer );
15
- const size_t rustsimplicity_0_5_c_sizeof_rawOutput = sizeof (rawOutput );
16
- const size_t rustsimplicity_0_5_c_sizeof_rawInput = sizeof (rawInput );
17
- const size_t rustsimplicity_0_5_c_sizeof_rawTransaction = sizeof (rawTransaction );
18
- const size_t rustsimplicity_0_5_c_sizeof_rawTapEnv = sizeof (rawTapEnv );
13
+
14
+ const size_t rustsimplicity_0_5_c_sizeof_rawElementsBuffer = sizeof (rawElementsBuffer );
15
+ const size_t rustsimplicity_0_5_c_sizeof_rawElementsOutput = sizeof (rawElementsOutput );
16
+ const size_t rustsimplicity_0_5_c_sizeof_rawElementsInput = sizeof (rawElementsInput );
17
+ const size_t rustsimplicity_0_5_c_sizeof_rawElementsTransaction = sizeof (rawElementsTransaction );
18
+ const size_t rustsimplicity_0_5_c_sizeof_rawElementsTapEnv = sizeof (rawElementsTapEnv );
19
19
const size_t rustsimplicity_0_5_c_sizeof_txEnv = sizeof (txEnv );
20
20
21
- const size_t rustsimplicity_0_5_c_alignof_rawBuffer = alignof(rawBuffer );
22
- const size_t rustsimplicity_0_5_c_alignof_rawOutput = alignof(rawOutput );
23
- const size_t rustsimplicity_0_5_c_alignof_rawInput = alignof(rawInput );
24
- const size_t rustsimplicity_0_5_c_alignof_rawTransaction = alignof(rawTransaction );
25
- const size_t rustsimplicity_0_5_c_alignof_rawTapEnv = alignof(rawTapEnv );
21
+ const size_t rustsimplicity_0_5_c_alignof_rawElementsBuffer = alignof(rawElementsBuffer );
22
+ const size_t rustsimplicity_0_5_c_alignof_rawElementsOutput = alignof(rawElementsOutput );
23
+ const size_t rustsimplicity_0_5_c_alignof_rawElementsInput = alignof(rawElementsInput );
24
+ const size_t rustsimplicity_0_5_c_alignof_rawElementsTransaction = alignof(rawElementsTransaction );
25
+ const size_t rustsimplicity_0_5_c_alignof_rawElementsTapEnv = alignof(rawElementsTapEnv );
26
26
const size_t rustsimplicity_0_5_c_alignof_txEnv = alignof(txEnv );
27
27
28
- void rustsimplicity_0_5_c_set_rawBuffer (rawBuffer * result , const unsigned char * buf , unsigned int len )
28
+ void rustsimplicity_0_5_c_set_rawBuffer (rawElementsBuffer * result , const unsigned char * buf , unsigned int len )
29
29
{
30
- * result = (rawBuffer ){.buf = buf , .len = len };
30
+ * result = (rawElementsBuffer ){.buf = buf , .len = len };
31
31
}
32
32
33
- void rustsimplicity_0_5_c_set_rawOutput (rawOutput * result , const unsigned char * asset , const unsigned char * value , const unsigned char * nonce , const rawBuffer * scriptPubKey ,
34
- const rawBuffer * surjectionProof , const rawBuffer * rangeProof )
33
+ void rustsimplicity_0_5_c_set_rawOutput (rawElementsOutput * result , const unsigned char * asset , const unsigned char * value , const unsigned char * nonce , const rawElementsBuffer * scriptPubKey ,
34
+ const rawElementsBuffer * surjectionProof , const rawElementsBuffer * rangeProof )
35
35
{
36
- * result = (rawOutput ){.asset = asset , .value = value , .nonce = nonce , .scriptPubKey = * scriptPubKey , .surjectionProof = * surjectionProof , .rangeProof = * rangeProof };
36
+ * result = (rawElementsOutput ){.asset = asset , .value = value , .nonce = nonce , .scriptPubKey = * scriptPubKey , .surjectionProof = * surjectionProof , .rangeProof = * rangeProof };
37
37
}
38
38
39
- void rustsimplicity_0_5_c_set_rawInput (rawInput * result , const rawBuffer * annex , const unsigned char * pegin , const rawBuffer * scriptSig ,
39
+ void rustsimplicity_0_5_c_set_rawInput (rawElementsInput * result , const rawElementsBuffer * annex , const unsigned char * pegin , const rawElementsBuffer * scriptSig ,
40
40
const unsigned char * prevTxid , unsigned int prevIx ,
41
- const unsigned char * asset , const unsigned char * value , const rawBuffer * scriptPubKey ,
41
+ const unsigned char * asset , const unsigned char * value , const rawElementsBuffer * scriptPubKey ,
42
42
unsigned int sequence ,
43
43
const unsigned char * blindingNonce , const unsigned char * assetEntropy , const unsigned char * amount , const unsigned char * inflationKeys ,
44
- const rawBuffer * amountRangePrf , const rawBuffer * inflationKeysRangePrf )
44
+ const rawElementsBuffer * amountRangePrf , const rawElementsBuffer * inflationKeysRangePrf )
45
45
{
46
- * result = (rawInput ){.annex = annex , .scriptSig = * scriptSig , .prevTxid = prevTxid , .pegin = pegin , .issuance = {.blindingNonce = blindingNonce , .assetEntropy = assetEntropy , .amount = amount , .inflationKeys = inflationKeys , .amountRangePrf = * amountRangePrf , .inflationKeysRangePrf = * inflationKeysRangePrf }, .txo = {.asset = asset , .value = value , .scriptPubKey = * scriptPubKey }, .prevIx = prevIx , .sequence = sequence };
46
+ * result = (rawElementsInput ){.annex = annex , .scriptSig = * scriptSig , .prevTxid = prevTxid , .pegin = pegin , .issuance = {.blindingNonce = blindingNonce , .assetEntropy = assetEntropy , .amount = amount , .inflationKeys = inflationKeys , .amountRangePrf = * amountRangePrf , .inflationKeysRangePrf = * inflationKeysRangePrf }, .txo = {.asset = asset , .value = value , .scriptPubKey = * scriptPubKey }, .prevIx = prevIx , .sequence = sequence };
47
47
}
48
48
49
- void rustsimplicity_0_5_c_set_rawTransaction (rawTransaction * result , unsigned int version ,
49
+ void rustsimplicity_0_5_c_set_rawTransaction (rawElementsTransaction * result , unsigned int version ,
50
50
const unsigned char * txid ,
51
- const rawInput * input , unsigned int numInputs ,
52
- const rawOutput * output , unsigned int numOutputs ,
51
+ const rawElementsInput * input , unsigned int numInputs ,
52
+ const rawElementsOutput * output , unsigned int numOutputs ,
53
53
unsigned int lockTime )
54
54
{
55
- * result = (rawTransaction ){
55
+ * result = (rawElementsTransaction ){
56
56
.version = version ,
57
57
.txid = txid ,
58
58
.input = input ,
@@ -63,9 +63,9 @@ void rustsimplicity_0_5_c_set_rawTransaction(rawTransaction *result, unsigned in
63
63
};
64
64
}
65
65
66
- void rustsimplicity_0_5_c_set_rawTapEnv (rawTapEnv * result , const unsigned char * controlBlock , unsigned char pathLen , const unsigned char * scriptCMR )
66
+ void rustsimplicity_0_5_c_set_rawTapEnv (rawElementsTapEnv * result , const unsigned char * controlBlock , unsigned char pathLen , const unsigned char * scriptCMR )
67
67
{
68
- * result = (rawTapEnv ){.controlBlock = controlBlock , .pathLen = pathLen , .scriptCMR = scriptCMR };
68
+ * result = (rawElementsTapEnv ){.controlBlock = controlBlock , .pathLen = pathLen , .scriptCMR = scriptCMR };
69
69
}
70
70
71
71
void rustsimplicity_0_5_c_set_txEnv (txEnv * result , const elementsTransaction * tx , const elementsTapEnv * taproot , const unsigned char * genesisHash , unsigned int ix )
0 commit comments