Skip to content

Commit

Permalink
Update Transaction ID calculation example
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippGackstatter committed Nov 27, 2023
1 parent 2d33b5b commit b6c7a02
Showing 1 changed file with 23 additions and 29 deletions.
52 changes: 23 additions & 29 deletions tips/TIP-0045/tip-0045.md
Original file line number Diff line number Diff line change
Expand Up @@ -1286,11 +1286,11 @@ Transaction (json-encoded):
"contextInputs": [
{
"type": 1,
"commitmentId": "0x760702593b59500420722f3a1634005f11360b133a030f46282c0f690a55084855000000"
"commitmentId": "0x3c3709521a0b0c6d5928645a635159516d1c7933082074024c5f05111c7d4f1a55000000"
},
{
"type": 2,
"accountId": "0x3407603d0f725b7e7214205f254305743d5362512f36153236435e796b6a1c2e"
"accountId": "0x387957486f4d5e623a15266655282836167b6b35432f0f112b03465860670127"
},
{
"type": 3,
Expand All @@ -1300,23 +1300,23 @@ Transaction (json-encoded):
"inputs": [
{
"type": 0,
"transactionId": "0x3ca1f23b83708ee7c59d6d7fe71453106bb0a0abc1c9cc4b340c755238ae6daa00000000",
"transactionId": "0x87d8ae3c94e403cb75c3b755fdd521cf389cf5edb3d7d425e7f2da1cdf7fe8dd00000000",
"transactionOutputIndex": 0
},
{
"type": 0,
"transactionId": "0xecb673f194640b2067b8da136b5f5437c2c723e7f3fdaa53984d7588ed21071a00000000",
"transactionId": "0xc65092dd8d4b9740b6af10e9f7735c37f9c36065b8a00286f96226a55718a73c00000000",
"transactionOutputIndex": 0
}
],
"allotments": [
{
"accountID": "0x0e0f253479566103415e29060f79772445531564733e214b54084358413f7c70",
"value": "6648"
"accountId": "0x4c7b105d1032286f594c45622a6d724e751a407154625a574f524b001c09707d",
"mana": "6131"
},
{
"accountID": "0x445e204c1f747503106b5663664c43591e63235804057c445d073a5f10597e2d",
"value": "9988"
"accountId": "0x735b594c2303623d625e3949125a7966796d1e13591d01491d52693c1b717069",
"mana": "5366"
}
],
"capabilities": "0x01",
Expand All @@ -1330,15 +1330,15 @@ Transaction (json-encoded):
"type": 0,
"address": {
"type": 0,
"pubKeyHash": "0x7f34f61bd0ecd2654a1ec3c9bf3fbc0de91abcbd7397e09faaaffc89d17a8f6e"
"pubKeyHash": "0x39962151ac0109c4f5f62f59a72cbec19ec9d7e0f00b5b8bd67caf497b913653"
}
}
],
"features": [
{
"type": 4,
"id": "0x082a1c2429352945216e3f547a03226b2f014d3d2e185a2459473a362c4d124d511a6c2d6000",
"amount": "0xd54f92ae8c34fbb4"
"type": 5,
"id": "0x08065b07165742126157243d111f692a504d325c00224e443f79724b630a1641793f01010c00",
"amount": "0x50745d2c83723e2b"
}
]
},
Expand All @@ -1347,28 +1347,22 @@ Transaction (json-encoded):
"amount": "100000",
"mana": "5000",
"accountId": "0x0000000000000000000000000000000000000000000000000000000000000000",
"stateIndex": 0,
"foundryCounter": 0,
"unlockConditions": [
{
"type": 4,
"address": {
"type": 0,
"pubKeyHash": "0x7f34f61bd0ecd2654a1ec3c9bf3fbc0de91abcbd7397e09faaaffc89d17a8f6e"
}
},
{
"type": 5,
"type": 0,
"address": {
"type": 0,
"pubKeyHash": "0x7f34f61bd0ecd2654a1ec3c9bf3fbc0de91abcbd7397e09faaaffc89d17a8f6e"
"pubKeyHash": "0x39962151ac0109c4f5f62f59a72cbec19ec9d7e0f00b5b8bd67caf497b913653"
}
}
],
"features": [
{
"type": 2,
"data": "0x1e69562e763b1125080c1a7161390e42"
"type": 3,
"entries": {
"hello": "0x776f726c64"
}
}
]
}
Expand All @@ -1379,8 +1373,8 @@ Transaction (json-encoded):
"type": 0,
"signature": {
"type": 0,
"publicKey": "0xa6bbccb2380a3a941a7bfdd5f2afcb8a6f5236bbe12ae8b931b593efd76864b6",
"signature": "0x98a18fd0083c7d9b6b05e218c7f764bb915148762ce342d795f7acac4083b40dbfc01f5fd23f6d1e652eee0e5951b87dd6307adf1389f8f16c08ade12be01c0a"
"publicKey": "0x62c30511c661dff48f85da4ef3b277986dfd0370165bb25c65e835c6fcdffa78",
"signature": "0x820f8aa63dc815515b888d64ac57d749484a30af8cf723d80bfb977d4d6f9c031568f22fdf6cb295853043088935bb61c3160ea5afeedab75418a94e396f3501"
}
},
{
Expand All @@ -1391,16 +1385,16 @@ Transaction (json-encoded):
}
```

Transaction (binary-encoded):
Transaction (hex-encoded binary serialization):

```
0x01490443ee9f5955c400001000030001760702593b59500420722f3a1634005f11360b133a030f46282c0f690a55084855000000023407603d0f725b7e7214205f254305743d5362512f36153236435e796b6a1c2e0300000200003ca1f23b83708ee7c59d6d7fe71453106bb0a0abc1c9cc4b340c755238ae6daa00000000000000ecb673f194640b2067b8da136b5f5437c2c723e7f3fdaa53984d7588ed21071a00000000000002000e0f253479566103415e29060f79772445531564733e214b54084358413f7c70f819000000000000445e204c1f747503106b5663664c43591e63235804057c445d073a5f10597e2d0427000000000000010100000000020000a08601000000000000000000000000000100007f34f61bd0ecd2654a1ec3c9bf3fbc0de91abcbd7397e09faaaffc89d17a8f6e0104082a1c2429352945216e3f547a03226b2f014d3d2e185a2459473a362c4d124d511a6c2d6000b4fb348cae924fd500000000000000000000000000000000000000000000000001a08601000000000088130000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000204007f34f61bd0ecd2654a1ec3c9bf3fbc0de91abcbd7397e09faaaffc89d17a8f6e05007f34f61bd0ecd2654a1ec3c9bf3fbc0de91abcbd7397e09faaaffc89d17a8f6e010210001e69562e763b1125080c1a7161390e420002000000a6bbccb2380a3a941a7bfdd5f2afcb8a6f5236bbe12ae8b931b593efd76864b698a18fd0083c7d9b6b05e218c7f764bb915148762ce342d795f7acac4083b40dbfc01f5fd23f6d1e652eee0e5951b87dd6307adf1389f8f16c08ade12be01c0a010000
0x01490443ee9f5955c4000010000300013c3709521a0b0c6d5928645a635159516d1c7933082074024c5f05111c7d4f1a5500000002387957486f4d5e623a15266655282836167b6b35432f0f112b0346586067012703000002000087d8ae3c94e403cb75c3b755fdd521cf389cf5edb3d7d425e7f2da1cdf7fe8dd00000000000000c65092dd8d4b9740b6af10e9f7735c37f9c36065b8a00286f96226a55718a73c00000000000002004c7b105d1032286f594c45622a6d724e751a407154625a574f524b001c09707df317000000000000735b594c2303623d625e3949125a7966796d1e13591d01491d52693c1b717069f614000000000000010100000000020000a086010000000000000000000000000001000039962151ac0109c4f5f62f59a72cbec19ec9d7e0f00b5b8bd67caf497b913653010508065b07165742126157243d111f692a504d325c00224e443f79724b630a1641793f01010c002b3e72832c5d745000000000000000000000000000000000000000000000000001a086010000000000881300000000000000000000000000000000000000000000000000000000000000000000000000000000000001000039962151ac0109c4f5f62f59a72cbec19ec9d7e0f00b5b8bd67caf497b9136530103010568656c6c6f0500776f726c64000200000062c30511c661dff48f85da4ef3b277986dfd0370165bb25c65e835c6fcdffa78820f8aa63dc815515b888d64ac57d749484a30af8cf723d80bfb977d4d6f9c031568f22fdf6cb295853043088935bb61c3160ea5afeedab75418a94e396f3501010000
```

Transaction ID:

```
0x4125a5129ece49933dc24a38df82ecf62dd107bd07403648cb935478f394fc5a00001000
0x45efc26ddcbbadb0e58f8f1d220fe50f72cc52c8720a60e7d5aceb826a77f1ce00001000
```

## Output ID Proof
Expand Down

0 comments on commit b6c7a02

Please sign in to comment.