Thank you HCP,
I am able to follow what you are saying. However, I am still a little confused about the rest of your transaction. The specification at
https://github.com/bitcoin/bips/blob/master/bip-0174.mediawiki#cite_note-6 says the PSBT should have 3 sets of key-value maps. (Global, input, and output). Your transaction appears to have 5 sets of maps.
70736274
ff0100a002000000028e801dd1c31b8f6952d30ab71cb8cc2c0aed06340ad0b07f0895e8b876c829c
b0000000000fdffffffde91c266e9c9a1a6d073cf5fe48253763855569fc0789e25e7f1f4ec5e06
4cf60000000000fdffffff0282839800000000001976a91407f1d4de636e42f16f49988c8dc17e9
44306d26588ac80969800000000001976a91450bac67862a3984fe72839af0f14e2ba08e6766488
ac89021d00
000100df0200000001bdecc2290de66382eb8c5384f1d9c4482cfbb00c4f6db71db427105b7fa3308
d000000006a47304402200a0b02f5bc346324aedac80490af39d2d2d639e01dee391f6629b9fea9
c0891e0220754e4ee039e2cd6a483269a572ecf2cabaeec55d6b8d37e487b2e592f661bf7201210
3b0ef8a6bb035b3d710faa53dc03479ea13f724a358b35208b2c7bd8f835186fafdffffff022293
9800000000001976a914aebd0267e135531212e791eb225510be66f03cfe88ac00e1f5050000000
017a914a74bd62f91c707ea86bd70a4fab9a650639e8a38876f311b00220602636f8fefa33369d4
d2c07c07b00432ede5a155688c7b4fccda7fe845f119e74c0c6b163ff90100000022000000
000100e20200000001959746d8e586847e97285ebc2f5ec2fe9e495a04fa396dd31c8e65f0a9cc43c
0000000006b483045022100875c175edebd0618155d041ac2723ecd6fc97e4d29ce1f8df5414cad
1d29501b02200745ce579fbbe5da28e838ec45330bfe53091f3074d40ae0371870c7b329d2f8012
1032a614933ee74e2dbfa8196e4c1eadca9d5a13c37760fadb91a2365199eed58eafdffffff0256
889800000000001976a9142909ed18fc26e7c67315a57a340266f48c1d454788ac8096980000000
0001976a9145e32926e03c3c26cb21ce44abca1cdb73ca77c4f88ac09041800220602029734bd50
b3af7a9f6d9710009c52f2b740b9ee5bf2251020d6126a1b8d8c380c6b163ff9010000001500000
0
0022020206dbf0c9c69646b18c80405e109116c434a57379b8e4fc0c273a6ece707795930c6b163ff
9010000002b000000
002202033ba344a7661a33329ae181ecb34171cba5a0e56ffc03af440a134166bffbc3510c6b163ff
90000000000000000
00The first separator "ff" appears at position 8. The global map follows. The second separator "00" appears at position 336. The input map follows. The third separator "00" appears at position 886. The output map follows.
There are 2 more separators with key-value maps following. They are at position 1442 and 1540.
In blue. There is a final separator at 1638 which terminates the transaction.
I also decided to look at the example I first started with. I found it contained one extra set of key-value maps.
Do you know what this extra data is used for?
Thank you,
James.