create account

Announcing the Multisig repository by stoodkev

View this thread on: hive.blogpeakd.comecency.com
· @stoodkev · (edited)
$46.92
Announcing the Multisig repository
![](https://cdn.steemitimages.com/DQmTgFeD2u6PQbkzGZpJZrm3HVLVCfzWEh9dQ4LDBut5XYg/image.png)
*Image by @good-karma* 


### Purpose
This repository includes several functions useful for setting  multi-authority accounts. It is best used on par with [this tutorial](https://steemit.com/utopian-io/@stoodkev/how-to-set-up-and-use-multisignature-accounts-on-steem-blockchain).
I have been asked by several users on Steem and Discord to organize the code in a repositiory so here I come!



### Current Features
The current version is pretty rough but builds the fondamentals for using multisig :
#### Updating the account
A hardcoded example that shows how to update the account by adding new public keys or accounts, setting weights and a threshold, and this for either the owner, active or posting authority.
#### Creating tx
We show how to get the dynamic global properties and use them to create a tx for a transfer.
#### Sign with  private keys
The tx is repeatedly signed with different accounts until reaching a weight greater than the threshold.
#### Broadcast the signed tx
Once enough accounts signed the tx, it is broadcasted to the blockchain

All these features are for now hardcoded for the sake of the example, but we ll create a dynamic interface in the future.


### How to use?
- Clone this repository:

`git clone https://github.com/stoodkev/multisig`

- Install the project

`npm install`

- Create a .env file with the required private keys

- Change the account names and public keys , weights and thresholds in `updateAccounts.js` according to your specs.

- Run `npm run update` to update your account authorities

- Change the signing accounts and transfer information

- Run `npm run sign`

- Check the result on steemd.com

### Technology Stack
- NodeJs
- DSteem library

### Roadmap
On the next update, I ll add some views and create forms to update the accounts in a user-friendly way, and sign and broadcast a json object passed as argument.
The goal is to move step by step from the hardcoded version of the code that was used as an example for the tutorial, to a dynamic interface.

### How to contribute?
Everyone is welcome to contribute, either by submitting Pull Requests, submitting ideas or issues, or requesting new features. You can also contact me at @stoodkev on Discord and Steem Chat.

#### Pull Request
[Update Account, Sign and Broadcast](https://github.com/stoodkev/multisig/pull/2)
#### GitHub Account
https://github.com/stoodkev

#### Repository
https://github.com/stoodkev/multisig


Hope this helps!

If you find it useful, please consider [voting for me as a witness](https://v2.steemconnect.com/sign/account-witness-vote?witness=stoodkev&approve=1).
πŸ‘  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 123 others
properties (23)
authorstoodkev
permlinkannouncing-the-multisig-repository
categoryutopian-io
json_metadata{"tags":["utopian-io","development","dev","steemdev","news"],"app":"steemit/0.1","users":["good-karma","stoodkev"],"image":["https://cdn.steemitimages.com/DQmTgFeD2u6PQbkzGZpJZrm3HVLVCfzWEh9dQ4LDBut5XYg/image.png"],"links":["https://steemit.com/utopian-io/@stoodkev/how-to-set-up-and-use-multisignature-accounts-on-steem-blockchain","https://github.com/stoodkev/multisig/pull/2","https://github.com/stoodkev","https://github.com/stoodkev/multisig","https://v2.steemconnect.com/sign/account-witness-vote?witness=stoodkev&approve=1"],"format":"markdown"}
created2019-01-07 14:16:30
last_update2019-01-15 08:57:27
depth0
children9
last_payout2019-01-14 14:16:30
cashout_time1969-12-31 23:59:59
total_payout_value35.777 HBD
curator_payout_value11.143 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length2,698
author_reputation190,283,772,273,558
root_title"Announcing the Multisig repository"
beneficiaries[]
max_accepted_payout100,000.000 HBD
percent_hbd0
post_id78,020,195
net_rshares89,290,001,327,484
author_curate_reward""
vote details (187)
@hauptmann ·
Hi @stoodkev how can I get in touch with you? I would Iike to talk to about the DTubeForum project I am running? Would you be open for a first chat? Thank you for taking your time. Greetings from Barcelona 

Posted using [Partiko iOS](https://steemit.com/@partiko-ios)
properties (22)
authorhauptmann
permlinkhauptmann-re-stoodkev-announcing-the-multisig-repository-20190108t165221239z
categoryutopian-io
json_metadata{"app":"partiko","client":"ios"}
created2019-01-08 16:52:21
last_update2019-01-08 16:52:21
depth1
children0
last_payout2019-01-15 16:52:21
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length268
author_reputation122,546,895,115,366
root_title"Announcing the Multisig repository"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id78,083,140
net_rshares0
@helo ·
$9.06
- Good demo on how multisig can work with JS.
- Looking forward the next iteration with less hard coded data fields.
- Your readers might want to know that this article qualifies for this bounty: https://steemit.com/steem/@timcliff/steem-developer-bounty-1500-steem-multisignature-transaction-guide-details-inside

Your contribution has been evaluated according to [Utopian policies and guidelines](https://join.utopian.io/guidelines), as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, [click here](https://review.utopian.io/result/3/2-2-2-2-1-1-1-).

---- 
Need help? Write a ticket on https://support.utopian.io/. 
Chat with us on [Discord](https://discord.gg/uTyJkNm). 
[[utopian-moderator]](https://join.utopian.io/)
πŸ‘  , , , , , , , , , , , , , , , , ,
properties (23)
authorhelo
permlinkre-stoodkev-announcing-the-multisig-repository-20190107t190112493z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"links":["https://steemit.com/steem/@timcliff/steem-developer-bounty-1500-steem-multisignature-transaction-guide-details-inside","https://join.utopian.io/guidelines","https://review.utopian.io/result/3/2-2-2-2-1-1-1-","https://support.utopian.io/","https://discord.gg/uTyJkNm","https://join.utopian.io/"],"app":"steemit/0.1"}
created2019-01-07 19:01:12
last_update2019-01-07 19:01:12
depth1
children1
last_payout2019-01-14 19:01:12
cashout_time1969-12-31 23:59:59
total_payout_value6.842 HBD
curator_payout_value2.217 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length811
author_reputation121,547,934,535,311
root_title"Announcing the Multisig repository"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id78,032,852
net_rshares17,231,527,740,935
author_curate_reward""
vote details (18)
@utopian-io ·
Thank you for your review, @helo! Keep up the good work!
properties (22)
authorutopian-io
permlinkre-re-stoodkev-announcing-the-multisig-repository-20190107t190112493z-20190109t224806z
categoryutopian-io
json_metadata"{"app": "beem/0.20.9"}"
created2019-01-09 22:48:09
last_update2019-01-09 22:48:09
depth2
children0
last_payout2019-01-16 22:48:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length56
author_reputation152,955,367,999,756
root_title"Announcing the Multisig repository"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id78,151,981
net_rshares0
@luegenbaron ·
Great work! Keep it coming! ;)
Thanks
properties (22)
authorluegenbaron
permlinkre-stoodkev-announcing-the-multisig-repository-20190107t151443092z
categoryutopian-io
json_metadata{"community":"busy","app":"busy/2.5.6","format":"markdown","tags":["utopian-io"],"users":[],"links":[],"image":[]}
created2019-01-07 15:14:45
last_update2019-01-07 15:14:45
depth1
children0
last_payout2019-01-14 15:14:45
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length37
author_reputation27,465,249,085,978
root_title"Announcing the Multisig repository"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id78,022,971
net_rshares0
@pennsif ·
This post has been included in today's  [**SOS Daily News**](https://steemit.com/steem/@pennsif/sosdailynewsnewsaboutthestateofsteem7january2019-hfjmvqpgva) - a digest of all you need to know about the State of Steem.

***

* *Editor of the [**The State of Steem SoS Daily News**](https://steemit.com/steem/@pennsif/sosdailynewsnewsaboutthestateofsteem7january2019-hfjmvqpgva).*

* *Promoter of [**The State of Steem SoS Weekly Forums**](https://steemit.com/steem/@pennsif/the-state-of-steem-forum-3-supported-by-dsound-thursday-10-january-8pm-11pm-utc-msp-waves).*

* *Editor of the [**weekly listing of steem radio shows, podcasts & social broadcasts**](https://steemit.com/mspwaves/@pennsif/schedule-of-radio-shows-podcasts-and-social-broadcasts-supported-by-dsound-week-beginning-7-january-2019).*

* *Founder of the [**A Dollar A Day**](https://steemit.com/adollaraday/@adollaraday/a-dollar-a-day-charitable-giving-project-ususd-5000-donated-in-8-months-we-made-it) charitable giving project.*

***
properties (22)
authorpennsif
permlinkre-stoodkev-announcing-the-multisig-repository-20190109t040554666z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"links":["https://steemit.com/steem/@pennsif/sosdailynewsnewsaboutthestateofsteem7january2019-hfjmvqpgva","https://steemit.com/steem/@pennsif/the-state-of-steem-forum-3-supported-by-dsound-thursday-10-january-8pm-11pm-utc-msp-waves","https://steemit.com/mspwaves/@pennsif/schedule-of-radio-shows-podcasts-and-social-broadcasts-supported-by-dsound-week-beginning-7-january-2019","https://steemit.com/adollaraday/@adollaraday/a-dollar-a-day-charitable-giving-project-ususd-5000-donated-in-8-months-we-made-it"],"app":"steemit/0.1"}
created2019-01-09 04:05:54
last_update2019-01-09 04:05:54
depth1
children0
last_payout2019-01-16 04:05:54
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,003
author_reputation636,410,097,572,565
root_title"Announcing the Multisig repository"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id78,109,725
net_rshares0
@steem-plus ·
SteemPlus upvote
Hi, @stoodkev!

You just got a **100%** upvote from SteemPlus!
To get higher upvotes, earn more SteemPlus Points (SPP). On your Steemit wallet, check your SPP balance and click on "How to earn SPP?" to find out all the ways to earn.
If you're not using SteemPlus yet, please check our last posts in [here](https://steemit.com/@steem-plus) to see the many ways in which SteemPlus can improve your Steem experience on Steemit and Busy.
properties (22)
authorsteem-plus
permlinkannouncing-the-multisig-repository---vote-steemplus
categoryutopian-io
json_metadata{}
created2019-01-08 09:35:42
last_update2019-01-08 09:35:42
depth1
children0
last_payout2019-01-15 09:35:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length434
author_reputation247,952,188,232,400
root_title"Announcing the Multisig repository"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id78,063,669
net_rshares0
@steem-ua ·
#### Hi @stoodkev!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your post is eligible for our upvote, thanks to our collaboration with @utopian-io!
**Feel free to join our [@steem-ua Discord server](https://discord.gg/KpBNYGz)**
properties (22)
authorsteem-ua
permlinkre-announcing-the-multisig-repository-20190107t193806z
categoryutopian-io
json_metadata"{"app": "beem/0.20.14"}"
created2019-01-07 19:38:06
last_update2019-01-07 19:38:06
depth1
children0
last_payout2019-01-14 19:38:06
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length287
author_reputation23,214,230,978,060
root_title"Announcing the Multisig repository"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id78,034,628
net_rshares0
@steemitboard ·
Congratulations @stoodkev! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

<table><tr><td>https://steemitimages.com/60x70/http://steemitboard.com/@stoodkev/voted.png?201901082108</td><td>You received more than 20000 upvotes. Your next target is to reach 25000 upvotes.</td></tr>
</table>

<sub>_[Click here to view your Board](https://steemitboard.com/@stoodkev)_</sub>
<sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub>



**Do not miss the last post from @steemitboard:**
<table><tr><td><a href="https://steemit.com/steem/@steemitboard/steemwhales-has-officially-moved-to-steemitboard-ranking"><img src="https://steemitimages.com/64x128/https://cdn.steemitimages.com/DQmfRVpHQhLDhnjDtqck8GPv9NPvNKPfMsDaAFDE1D9Er2Z/header_ranking.png"></a></td><td><a href="https://steemit.com/steem/@steemitboard/steemwhales-has-officially-moved-to-steemitboard-ranking">SteemWhales has officially moved to SteemitBoard Ranking</a></td></tr><tr><td><a href="https://steemit.com/steemitboard/@steemitboard/steemitboard-witness-update-2019-01-07"><img src="https://steemitimages.com/64x128/http://i.cubeupload.com/7CiQEO.png"></a></td><td><a href="https://steemit.com/steemitboard/@steemitboard/steemitboard-witness-update-2019-01-07">SteemitBoard - Witness Update</a></td></tr></table>

> You can upvote this notification to help all Steemit users. Learn why [here](https://steemit.com/steemitboard/@steemitboard/http-i-cubeupload-com-7ciqeo-png)!
properties (22)
authorsteemitboard
permlinksteemitboard-notify-stoodkev-20190108t234520000z
categoryutopian-io
json_metadata{"image":["https://steemitboard.com/img/notify.png"]}
created2019-01-08 23:45:21
last_update2019-01-08 23:45:21
depth1
children0
last_payout2019-01-15 23:45:21
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,550
author_reputation38,975,615,169,260
root_title"Announcing the Multisig repository"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id78,099,897
net_rshares0
@utopian-io ·
Hey, @stoodkev!

**Thanks for contributing on Utopian**.
We’re already looking forward to your next contribution!

**Get higher incentives and support Utopian.io!**
 Simply set @utopian.pay as a 5% (or higher) payout beneficiary on your contribution post (via [SteemPlus](https://chrome.google.com/webstore/detail/steemplus/mjbkjgcplmaneajhcbegoffkedeankaj?hl=en) or [Steeditor](https://steeditor.app)).

**Want to chat? Join us on Discord https://discord.gg/h52nFrV.**

<a href='https://steemconnect.com/sign/account-witness-vote?witness=utopian-io&approve=1'>Vote for Utopian Witness!</a>
properties (22)
authorutopian-io
permlinkre-announcing-the-multisig-repository-20190108t005019z
categoryutopian-io
json_metadata"{"app": "beem/0.20.9"}"
created2019-01-08 00:50:21
last_update2019-01-08 00:50:21
depth1
children0
last_payout2019-01-15 00:50:21
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length590
author_reputation152,955,367,999,756
root_title"Announcing the Multisig repository"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id78,046,081
net_rshares0