Tier 4 Fund Management Discussion

Should my_id in main.py be changed? Update: Appears so.


python main.py --recipient BXKidrUiYNgRmDeDX61k6CASEJ2HjM8pUF --amount 0.1
Updating address snapshot...
[master 42b9c9a] 1448235967.94
 1 file changed, 1 insertion(+), 1 deletion(-)
Counting objects: 4, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (4/4), 349 bytes | 0 bytes/s, done.
Total 4 (delta 1), reused 0 (delta 0)
To git@github.com:jooize/flot-operations.git
   459d2da..42b9c9a  master -> master
Done.

This is your transaction hex:
01000000c0535256011266afa53b463bbd05b71433014115d3e90cc638774189db05a30d8eaf2f77e50100000000ffffffff02e80300000000000017a91426c6f88ca8a0a47b6a015eac69c442b12f715e9f873c0f00000000000017a914f35b24f264597d66ba8c366a5005824bb6a06138870000000042

```

Like this?

Yes. Glad to see it working. “my_id” in main.py isn’t used yet - all settings are in config.py. I’d be surprised if the script couldn’t run without it being changed.

The transaction hex looks right. I haven’t added signing yet; depending on the workflow maybe I should. I’ve signed it:

{
“hex” : “01000000c0535256011266afa53b463bbd05b71433014115d3e90cc638774189db05a30d8eaf2f77e501000000fa00493046022100909aa3b88a39997e621fa760ab54865777c66a1bd7b8b4642de703c5a76ed704022100de44517cbe293fe411aff5ceb72eb55f843e48feb10a190bbe131b9a2a9a6015014cad5321034b0bd0f653d4ac0a2e9e81eb1863bb8e5743f6cb1ea40d845b939c225a1a80ff2102a144af74d018501f03d76ead130433335f969772792ec39ce389c8a2341552592103661a4370dfcfbcea25d1800057220f4572b6eecab95bb0670e8676a9e34451dc210234139729dd413c84a71a0bfd6f236790be861b37311cef3240277c940e4b0c072102547427fc2ea3a0ab9ef70f5e1640ff5112b113f65696948f992bd0770b94257155aeffffffff02e80300000000000017a91426c6f88ca8a0a47b6a015eac69c442b12f715e9f873c0f00000000000017a914f35b24f264597d66ba8c366a5005824bb6a06138870000000042”,
“complete” : false
}

Try to add your signature to my hex. I’m not sure whether you need to also do addmultisignature before signing the transaction.

Alright, I must have changed two things at once.

signrawtransaction 01000000c0535256011266afa53b463bbd05b71433014115d3e90cc638774189db05a30d8eaf2f77e501000000fa00493046022100909aa3b88a39997e621fa760ab54865777c66a1bd7b8b4642de703c5a76ed704022100de44517cbe293fe411aff5ceb72eb55f843e48feb10a190bbe131b9a2a9a6015014cad5321034b0bd0f653d4ac0a2e9e81eb1863bb8e5743f6cb1ea40d845b939c225a1a80ff2102a144af74d018501f03d76ead130433335f969772792ec39ce389c8a2341552592103661a4370dfcfbcea25d1800057220f4572b6eecab95bb0670e8676a9e34451dc210234139729dd413c84a71a0bfd6f236790be861b37311cef3240277c940e4b0c072102547427fc2ea3a0ab9ef70f5e1640ff5112b113f65696948f992bd0770b94257155aeffffffff02e80300000000000017a91426c6f88ca8a0a47b6a015eac69c442b12f715e9f873c0f00000000000017a914f35b24f264597d66ba8c366a5005824bb6a06138870000000042
{
"hex" : "01000000c0535256011266afa53b463bbd05b71433014115d3e90cc638774189db05a30d8eaf2f77e501000000fa00493046022100909aa3b88a39997e621fa760ab54865777c66a1bd7b8b4642de703c5a76ed704022100de44517cbe293fe411aff5ceb72eb55f843e48feb10a190bbe131b9a2a9a6015014cad5321034b0bd0f653d4ac0a2e9e81eb1863bb8e5743f6cb1ea40d845b939c225a1a80ff2102a144af74d018501f03d76ead130433335f969772792ec39ce389c8a2341552592103661a4370dfcfbcea25d1800057220f4572b6eecab95bb0670e8676a9e34451dc210234139729dd413c84a71a0bfd6f236790be861b37311cef3240277c940e4b0c072102547427fc2ea3a0ab9ef70f5e1640ff5112b113f65696948f992bd0770b94257155aeffffffff02e80300000000000017a91426c6f88ca8a0a47b6a015eac69c442b12f715e9f873c0f00000000000017a914f35b24f264597d66ba8c366a5005824bb6a06138870000000042",
"complete" : false
}
addmultisigaddress 3 '["034b0bd0f653d4ac0a2e9e81eb1863bb8e5743f6cb1ea40d845b939c225a1a80ff",
"02a144af74d018501f03d76ead130433335f969772792ec39ce389c8a234155259",
"03661a4370dfcfbcea25d1800057220f4572b6eecab95bb0670e8676a9e34451dc",
"0234139729dd413c84a71a0bfd6f236790be861b37311cef3240277c940e4b0c07",
"02547427fc2ea3a0ab9ef70f5e1640ff5112b113f65696948f992bd0770b942571"]'
BqyRzFtWXDmjxrYpyJD42MLE5xc8FrB4js
signrawtransaction 01000000c0535256011266afa53b463bbd05b71433014115d3e90cc638774189db05a30d8eaf2f77e501000000fa00493046022100909aa3b88a39997e621fa760ab54865777c66a1bd7b8b4642de703c5a76ed704022100de44517cbe293fe411aff5ceb72eb55f843e48feb10a190bbe131b9a2a9a6015014cad5321034b0bd0f653d4ac0a2e9e81eb1863bb8e5743f6cb1ea40d845b939c225a1a80ff2102a144af74d018501f03d76ead130433335f969772792ec39ce389c8a2341552592103661a4370dfcfbcea25d1800057220f4572b6eecab95bb0670e8676a9e34451dc210234139729dd413c84a71a0bfd6f236790be861b37311cef3240277c940e4b0c072102547427fc2ea3a0ab9ef70f5e1640ff5112b113f65696948f992bd0770b94257155aeffffffff02e80300000000000017a91426c6f88ca8a0a47b6a015eac69c442b12f715e9f873c0f00000000000017a914f35b24f264597d66ba8c366a5005824bb6a06138870000000042
{
"hex" : "01000000c0535256011266afa53b463bbd05b71433014115d3e90cc638774189db05a30d8eaf2f77e501000000fd450100493046022100909aa3b88a39997e621fa760ab54865777c66a1bd7b8b4642de703c5a76ed704022100de44517cbe293fe411aff5ceb72eb55f843e48feb10a190bbe131b9a2a9a60150149304602210095fd894c2b3ab1919b565cdc39325e92953908604ef031490c539031dc9baa2f022100cb1e4da9db1a0b0ce639f84e24dd1b3530c6ddbc3c4ceaea36e271f1fa66da2f01004cad5321034b0bd0f653d4ac0a2e9e81eb1863bb8e5743f6cb1ea40d845b939c225a1a80ff2102a144af74d018501f03d76ead130433335f969772792ec39ce389c8a2341552592103661a4370dfcfbcea25d1800057220f4572b6eecab95bb0670e8676a9e34451dc210234139729dd413c84a71a0bfd6f236790be861b37311cef3240277c940e4b0c072102547427fc2ea3a0ab9ef70f5e1640ff5112b113f65696948f992bd0770b94257155aeffffffff02e80300000000000017a91426c6f88ca8a0a47b6a015eac69c442b12f715e9f873c0f00000000000017a914f35b24f264597d66ba8c366a5005824bb6a06138870000000042",
"complete" : false
}

signrawtransaction 01000000c0535256011266afa53b463bbd05b71433014115d3e90cc638774189db05a30d8eaf2f77e501000000fd450100493046022100909aa3b88a39997e621fa760ab54865777c66a1bd7b8b4642de703c5a76ed704022100de44517cbe293fe411aff5ceb72eb55f843e48feb10a190bbe131b9a2a9a60150149304602210095fd894c2b3ab1919b565cdc39325e92953908604ef031490c539031dc9baa2f022100cb1e4da9db1a0b0ce639f84e24dd1b3530c6ddbc3c4ceaea36e271f1fa66da2f01004cad5321034b0bd0f653d4ac0a2e9e81eb1863bb8e5743f6cb1ea40d845b939c225a1a80ff2102a144af74d018501f03d76ead130433335f969772792ec39ce389c8a2341552592103661a4370dfcfbcea25d1800057220f4572b6eecab95bb0670e8676a9e34451dc210234139729dd413c84a71a0bfd6f236790be861b37311cef3240277c940e4b0c072102547427fc2ea3a0ab9ef70f5e1640ff5112b113f65696948f992bd0770b94257155aeffffffff02e80300000000000017a91426c6f88ca8a0a47b6a015eac69c442b12f715e9f873c0f00000000000017a914f35b24f264597d66ba8c366a5005824bb6a06138870000000042

{
“hex” : “01000000c0535256011266afa53b463bbd05b71433014115d3e90cc638774189db05a30d8eaf2f77e501000000fd8c0100493046022100909aa3b88a39997e621fa760ab54865777c66a1bd7b8b4642de703c5a76ed704022100de44517cbe293fe411aff5ceb72eb55f843e48feb10a190bbe131b9a2a9a60150149304602210095fd894c2b3ab1919b565cdc39325e92953908604ef031490c539031dc9baa2f022100cb1e4da9db1a0b0ce639f84e24dd1b3530c6ddbc3c4ceaea36e271f1fa66da2f014730440220580b8b35332a3ae1b3d6505fbb116fa28afa6937c55384dea8871c43cab65cbd02202d00ab9fc813c5884386d9a11147e29ae6c58d1192a56bdf5fff1acfdba7bba0014cad5321034b0bd0f653d4ac0a2e9e81eb1863bb8e5743f6cb1ea40d845b939c225a1a80ff2102a144af74d018501f03d76ead130433335f969772792ec39ce389c8a2341552592103661a4370dfcfbcea25d1800057220f4572b6eecab95bb0670e8676a9e34451dc210234139729dd413c84a71a0bfd6f236790be861b37311cef3240277c940e4b0c072102547427fc2ea3a0ab9ef70f5e1640ff5112b113f65696948f992bd0770b94257155aeffffffff02e80300000000000017a91426c6f88ca8a0a47b6a015eac69c442b12f715e9f873c0f00000000000017a914f35b24f264597d66ba8c366a5005824bb6a06138870000000042”,
“complete” : true
}

Looks like the first hex is not signed at all. So one needs to addmultisigaddress before using nu/nud to sign the transaction. Thanks for testing.

I’ve updated the scripts. Basically it automatically runs addmultisigaddres at start, so there’s no need to do it manually. Note that I have also split the config file - now only your personal configuration goes into config.py. There’s another file pubconfig.py that contains “shared” configuration is actually published to the git repository.

I just received the 0.1 NBT at BXKidrUiYNgRmDeDX61k6CASEJ2HjM8pUF. Hurrah!

sendrawtransaction 01000000c0535256011266afa53b463bbd05b71433014115d3e90cc638774189db05a30d8eaf2f77e501000000fd8c0100493046022100909aa3b88a39997e621fa760ab54865777c66a1bd7b8b4642de703c5a76ed704022100de44517cbe293fe411aff5ceb72eb55f843e48feb10a190bbe131b9a2a9a60150149304602210095fd894c2b3ab1919b565cdc39325e92953908604ef031490c539031dc9baa2f022100cb1e4da9db1a0b0ce639f84e24dd1b3530c6ddbc3c4ceaea36e271f1fa66da2f014730440220580b8b35332a3ae1b3d6505fbb116fa28afa6937c55384dea8871c43cab65cbd02202d00ab9fc813c5884386d9a11147e29ae6c58d1192a56bdf5fff1acfdba7bba0014cad5321034b0bd0f653d4ac0a2e9e81eb1863bb8e5743f6cb1ea40d845b939c225a1a80ff2102a144af74d018501f03d76ead130433335f969772792ec39ce389c8a2341552592103661a4370dfcfbcea25d1800057220f4572b6eecab95bb0670e8676a9e34451dc210234139729dd413c84a71a0bfd6f236790be861b37311cef3240277c940e4b0c072102547427fc2ea3a0ab9ef70f5e1640ff5112b113f65696948f992bd0770b94257155aeffffffff02e80300000000000017a91426c6f88ca8a0a47b6a015eac69c442b12f715e9f873c0f00000000000017a914f35b24f264597d66ba8c366a5005824bb6a06138870000000042
addab8120e5bebf93f6f5abb8469c255d39ce539a15ae52343a85d813379d4fd

https://svr1.nubitsexplorer.nu/chain/Nubits doesn’t work for me. How do I confirm? Sounds like it worked from somewhere.

Okay, I’ll check it out.

I’ve sent back the 0.1NBT and synced running main.py. The unspent output of the address stored in flot-operations is as expected:

addab8120e5bebf93f6f5abb8469c255d39ce539a15ae52343a85d813379d4fd
0.39
1
61df6e0e5cf8f146caf3f00138f92a576567b2ae6ba6685d841fc44498532abb
0.1
0

The script works! I hope it can also work smoothly for other people. I encourage everyone to try to create a transaction using git-multisig

1 Like

You can use this:

http://blockexplorer.nu/address/BXKidrUiYNgRmDeDX61k6CASEJ2HjM8pUF/1/newest

1 Like

I ll take a look at git-multisig later on.

Very sorry for the delay.

Below are the details for my pubkey:

“isvalid” : true,
“address” : “BTHxEUf1NKPjsZ7xZEEYySjWs2WAtFfU9u”,
“ismine” : true,
“isscript” : false,
“pubkey” : “03d4580c1bfa5fd3526e03434983e53b35dd6ea2e2fd337e33976245fc09a8f897”,
“iscompressed” : true,
“account” : “”
}

1 Like

Given the current situation it may be better that we use the current address and the 5 signers of that address for the NBT group. You can be in the NSR group; I think you can use this public key for an NSR address or you can create an other NSR address and post the public key. I haven’t yet allowed the script to handle both NSR and NBT at the same time though. Balancing response rates and general availability the NSR group should now be: @dysconnect, @masterofdisaster, @mhps, @cryptog, @Dhume

1 Like

Why bitcoin accepts up to 15 of 15 multisig and NBT only 5? Is there anything in the code I am not aware of?

I quote @erasmospunk :

Number of signers: 3-of-5 multisig is a good balance between security, redundancy and the technical capability of the current network.
There is a 500 byte limit on the transaction spending script. A rule of thumb for m-of-n multisig is 6 + m73 + n34 bytes for n < 8, and 8 + m73 + n34 bytes otherwise. I assume compressed pub keys and signatures of 72 bytes (they could also be 71 bytes). This makes the 4-of-6 multisig unusable at 502 bytes but brute forcing 2 signatures to be 71 bytes will just make it at 500 byte input script.

Are we ready to handle the CCEDK repayments?

We can do that, but let’s wait until the other 3 people each feel comfortable with the whole process.

1 Like

I’m in (3 of 5) … so we have @dysconnect, @woodstockmerkle, and @joozie so far … @ttutdxh and @masterOfDisaster from the provisional FLOT on the BqyRzFtWXDmjxrYpyJD42MLE5xc8FrB4js multisig would need to accept this, right?

Sure. Wait for them to say they’re comfortable with the current tools and arrangments. Also, did you try out git-multisig?

Yes; very neat stuff. Thanks for putting that together – it is going to be a big help for us for sure. I am running it under cygwin64 (python 2.7.10) with good results, including the git pull

1 Like

This is really exciting stuff! I figure that something like blockchaininfo for Nu will really help with adoption. This is one of those things.

I find it a must for a number of things, like verifying that the multisig address is really generated with the provided public keys by each FLOT member: http://ttutdxh-nubits.github.io/cointoolkit/?verify=5321034b0bd0f653d4ac0a2e9e81eb1863bb8e5743f6cb1ea40d845b939c225a1a80ff2102a144af74d018501f03d76ead130433335f969772792ec39ce389c8a2341552592103661a4370dfcfbcea25d1800057220f4572b6eecab95bb0670e8676a9e34451dc210234139729dd413c84a71a0bfd6f236790be861b37311cef3240277c940e4b0c072102547427fc2ea3a0ab9ef70f5e1640ff5112b113f65696948f992bd0770b94257155ae#verify

I use windows 32 bit for now. Do I need to change the above in pubconfig.py to my addr and pubkey (mine is 020d369ec7d2d055ea2a98087b3fc100847baab8e14fe1c933981805fb570fffb6 ) ?