diff --git a/tips/TIP-0045/tip-0045.md b/tips/TIP-0045/tip-0045.md index 8659904cc..8910c0fc7 100644 --- a/tips/TIP-0045/tip-0045.md +++ b/tips/TIP-0045/tip-0045.md @@ -1641,6 +1641,102 @@ Output ID Proof (Output Index 28) (hex-encoded binary serialization): 0x000010001c00135ed822d4695d06c1844ebeb8d033e4d42b4a341144f44e6ce006dafac14589000001207f564883c631d43a902ef144a674e6ac11ed7db1c9e88ecf7a664c19885de497000120aa70d7aab4560bcafda057bcffca504f4d6ca89bc5652d4cf60a33e85a39bc5f000120c6e9e11d1ae2b9479e778fed77d273ced27cfee60b8d9c2cb0fce4efe5b1d1790000022056cf9617298303d80e0b0bc7a38e9807db5e6b5c1dbe32338ec54efa830f1d93012045d50fb24eecc01fed1254b75e0ddc97c3d8825f02e68b75da3f16f14573cc5301202e88c7335dcc28ef7cf618d77336b62f49c1d0c05d956e516eb9a37f556373e201204ad094e37e0ec880bb6a24f03f3bc3ca5fdb60af734606ba639bd413eb1a1e39 ``` +## Potential and Stored Mana + +The following test vector shows a transaction where one output is being consumed and one is created. The potential mana +generated by the consumed output is stored in the created output while the decayed stored mana of the consumed output is +allotted to an account. + +Transaction (json-encoded): + +```json +{ + "type": 1, + "transaction": { + "networkId": "8342982141227064571", + "creationSlot": 5000000, + "contextInputs": [ + { + "type": 0, + "commitmentId": "0x3a1e3b617060146e0362361a4b752833186108395f3b2b3d3e6c655e287d7076364b4c00" + } + ], + "inputs": [ + { + "type": 0, + "transactionId": "0xf09d3cd648a7246c7c1b2ba2f9182465ae5742b78c592392b4b455ab8ed7195005000000", + "transactionOutputIndex": 0 + } + ], + "allotments": [ + { + "accountId": "0x476820096e7038107d071a4e473f1e295f346e2d0824263e5e3e7d004f6b6915", + "mana": "2272" + } + ], + "outputs": [ + { + "type": 0, + "amount": "100000", + "mana": "2502459", + "unlockConditions": [ + { + "type": 0, + "address": { + "type": 0, + "pubKeyHash": "0xed1484f4d1f7d8c037087fed661dd92faccae1eed3c01182d6fdd6828cea144a" + } + } + ] + } + ] + }, + "unlocks": [ + { + "type": 0, + "signature": { + "type": 0, + "publicKey": "0x2daefbcbadd044da470acd2f7fcf6fcb04b873cc801e7ee408018e1dfa0257ac", + "signature": "0x7a3da62e0c314918170a2dc476588dd6e27032b7817a08be7482643b434604a5ecec55616bd77730e86bfd223bd3a2d09b0d5366058d5470d192a9adef77a007" + } + } + ] +} +``` + +Transaction (hex-encoded binary serialization): + +``` +0x01fb5c44ef0d3ac873404b4c000100003a1e3b617060146e0362361a4b752833186108395f3b2b3d3e6c655e287d7076364b4c00010000f09d3cd648a7246c7c1b2ba2f9182465ae5742b78c592392b4b455ab8ed719500500000000000100476820096e7038107d071a4e473f1e295f346e2d0824263e5e3e7d004f6b6915e0080000000000000000000000010000a0860100000000003b2f260000000000010000ed1484f4d1f7d8c037087fed661dd92faccae1eed3c01182d6fdd6828cea144a00010000002daefbcbadd044da470acd2f7fcf6fcb04b873cc801e7ee408018e1dfa0257ac7a3da62e0c314918170a2dc476588dd6e27032b7817a08be7482643b434604a5ecec55616bd77730e86bfd223bd3a2d09b0d5366058d5470d192a9adef77a007 +``` + +Input with Output ID: `0xf09d3cd648a7246c7c1b2ba2f9182465ae5742b78c592392b4b455ab8ed71950050000000000` (= creation +slot 5) (json-encoded): + +```json +{ + "type": 0, + "amount": "100000", + "mana": "4000", + "unlockConditions": [ + { + "type": 0, + "address": { + "type": 0, + "pubKeyHash": "0xed1484f4d1f7d8c037087fed661dd92faccae1eed3c01182d6fdd6828cea144a" + } + } + ] +} +``` + +Input with Output ID: `0xf09d3cd648a7246c7c1b2ba2f9182465ae5742b78c592392b4b455ab8ed71950050000000000` (= creation +slot 5) (hex-encoded binary serialization): + +``` +0x00a086010000000000a00f000000000000010000ed1484f4d1f7d8c037087fed661dd92faccae1eed3c01182d6fdd6828cea144a00 +``` + # Copyright Copyright and related rights waived via [CC0](https://creativecommons.org/publicdomain/zero/1.0/).