[Dev] Multi sig dsteem vs steemsteemCreated with Sketch.

in SCT.암호화폐.Cryptolast year (edited)

Hello I'm @realmankwon.

When setting up steem multisig, you can set by using dsteem or steem.

When using dsteem, sign information is received from accounts participating in multi-sig and processed.
So, the transaction information to be signed is created in advance.
After that, the transaction information received from one account is processed by passing it on to another account.
Eventually, the signatures of all accounts will be included in the signature of the last transaction.
Since the sign is generated with the private key, even if the transaction is executed without the key at the end, it is processed.

// Sign via @multisig @steem-plus and @steemplus-pay (combined weight of 45% > 40% threshold)

     const signMultisig = client.broadcast.sign(tx, dsteem.PrivateKey.from(process.env.ACTIVE_MULTISIG));
     //const sendMultisig= await client.broadcast.send(signMultisig);
     //console.log(sendMultisig);
     // Failing due to "Missing Active Authority" (weight inferior to the threshold)
     const signSteemPlus = client.broadcast.sign(signMultisig, dsteem.PrivateKey.from(process.env.ACTIVE_SP));
     const signSteemPlusPay = client.broadcast.sign(signSteemPlus, dsteem.PrivateKey.from(process.env.ACTIVE_SPP));
     console. log(signSteemPlusPay);
     // Send the broadcast
     const send = await client.broadcast.send(signSteemPlusPay);
     console. log(send); // Success

However, in the case of the steem library, you can call the operation information to perform the transaction and the keys of the accounts participating in the multi-sig as an array at once.

https://github.com/steemit/steem-js/blob/master/doc/README.md

It seems that the two libraries can be selected and used depending on the occasion.
If you want to set up multi-sig in an account that manages team funds and receive confirmation from members when sending the funds, it is better to use dsteem's method.
If you're doing it in an automated service, you'd be better off using steem's way.

Now, multisig will be applied to the UPVU service.
Even if the key is hacked, it will be safely managed.
Furthermore, we plan to launch a service that allows anyone to use multisig comfortably.
We will work hard to develop so that everyone can use Steem safely.

안녕하세요 @realmankwon 입니다.

스팀멀티시그 설정을 할때 라이브러리를 dsteem으로 할 수도 있고 steem으로 할 수도 있습니다.

dsteem으로 할때는 멀티시그에 참여하는 계정들에게 sign 정보를 받아서 처리를 하게 됩니다.
그래서 sign을 할 트랜잭션 정보를 미리 생성을 해줍니다.
이후 한 계정으로 부터 sign을 받은 트랜잭션 정보를 다시 다른 계정에게 넘겨주는 방식으로 처리가 됩니다.
결국은 마지막 트랜잭션의 signature에 모든 계정의 sign이 포함되게 되게 됩니다.
private key로 sign을 생성하기 때문에 마지막에 키를 없이 트랜잭션을 실행을 해도 처리가 됩니다.

// Sign via @multisig @steem-plus and @steemplus-pay (combined weight of 45% > 40% threshold)

    const signMultisig = client.broadcast.sign(tx, dsteem.PrivateKey.from(process.env.ACTIVE_MULTISIG));
    //const sendMultisig= await client.broadcast.send(signMultisig);
    //console.log(sendMultisig);
    // Failing due to "Missing Active Authority" (weight inferior to the threshold)
    const signSteemPlus = client.broadcast.sign(signMultisig, dsteem.PrivateKey.from(process.env.ACTIVE_SP));
    const signSteemPlusPay = client.broadcast.sign(signSteemPlus, dsteem.PrivateKey.from(process.env.ACTIVE_SPP));
    console.log(signSteemPlusPay);
    // Send the broadcast
    const send = await client.broadcast.send(signSteemPlusPay);
    console.log(send); // Success

하지만 steem 라이브러리의 경우는 트랜잭션을 수행할 operations 정보와 멀티시그에 참여한 계정들의 키를 배열로 한번에 호출을 하면 됩니다.

https://github.com/steemit/steem-js/blob/master/doc/README.md

두 라이브러리는 때에 따라 골라서 사용하면 될 것 같습니다.
공동의 자금을 관리하는 계정에 멀티시그를 설정하고 그 자금을 전송할때 멤버들에게 컨펌을 받고 보내고 싶다면 dsteem의 방식을 사용하는게 좋습니다.
자동화된 서비스에서 처리할 경우에는 steem의 방식을 사용하는 것이 더 좋을 겁니다.

이제 UPVU 서비스에 멀티시그를 적용하게 됩니다.
키를 해킹 당해도 안전하게 관리가 될 것입니다.
나아가 멀티시그를 누구나 편하게 사용할 수 있는 서비스도 출시를 할 예정입니다.
모두가 안심하고 사용할 수 있는 스팀이 되도록 열심히 개발하겠습니다.

@steemcurator01 @steemcurator02

Sort:  

Upvoted! Thank you for supporting witness @jswit.

This post has been featured in the latest edition of Steem News...


If you would like to support Steem News and Witness Weekly please consider voting for @pennsif.witness


Coin Marketplace

STEEM 0.30
TRX 0.12
JST 0.032
BTC 60046.04
ETH 2997.94
USDT 1.00
SBD 3.71