Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Making a multisig
[
{
"hash": "SBCKQCAVQVYSCHXFJSAZTGSWXYGVUXZNPGF9XPUYWVAXXLF9VRGVRB9KVSKPBO9EENPZTX9DKVOQ99999",
"signatureMessageFragment": "999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999",
"address": "ZGHXPZYDKXPEOSQTAQOIXEEI9K9YKFKCWKYYTYAUWXK9QZAVMJXWAIZABOXHHNNBJIEBEUQRTBWGLYMTX",
"value": 15000,
"tag": "999999999999999999999999999",
"timestamp": 1497273707,
"currentIndex": 0,
"lastIndex": 6,
"bundle":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H9LLGFKVGPRCCSXZLSLYU9ZCSCCYOSZBOVTEKNYHDTPONECXYALNQ9CJXZLCBROOULXEHKMCKSDCITSCQYLGYZVHZTTNDSOUIMXSGIFKHRFJTVBOIKGCUOP9VTUWDABTHWJGRQMFORGFQHCLIEAOHTFFCXMK9KECWFKRNHVTQB9SUDYT9UCGEUYQFSJAKE9JZRLVHNEMSINYYGSZUYIPFPPERZVWPDOANKD9RKEQNBCAZNWFVVLCOHLUIBROGYCS9PDIKVVKYMTVNHWWTUWSBFDOAVTFFMMSIP9TP9VZFCNEPEFDVNMCUMMZWWQMZYABD9E9S9DTHCDGIQPV9CGHUCHNJPMPNECTDJLDWVHHIHJ9PQT9ACC9BGODGMZWN9SART9DKHCQYMAJHWHAF9BBJKSJWPJTQFJPUZLZTQLERCIIOECOBSNOCSBSLWWJBI99LPZARZXNYCYSGOEWPASUSGXLC9EAAAGTAYDDGJQXGEYXQRKYTKJYUGNNZVOETV9YKQRSQJLZHOFCH9NHFPVP",
"address": "WAPLYLRNREIXDVV9CUDNWIWUBCJBRBWNFHZIKQ9FLKXSQQCHVEFGDPITUEZJDTFOUMWSRPMUD9GGBVDAB",
"value": -15000,
"tag": "999999999999999999999999999",
"timestamp": 1497273708,
"currentIndex": 1,
"lastIndex": 6,
"bundle": "DSTDQWTBFIZMH9GZNTIIGPMVUOWLYNTNBFICCCEQCNNFVXISFHBAL9DRKRCXBXJYKYSNNBIVFVTXGOWAU",
"trunkTransaction": "ZYSAHCO9EVWKHPMIUSXTMLNWYNZWWEHMTYKGBSIQHXFHMJYVHWVQBEEPWTTGGZKHSCHZITKGTIIP99999",
"branchTransaction": "IBRLWFHZECGMRJYTFFFABIZZXOMRTBMJOUHRX9HJQKDOLXFQCZPOFQDZSBKWYKZQKCALJBCWD9SI99999",
"nonce": "BYALZNVZCIWHILWGDBSDFJ9XQZPAJMELR9HDB9FADXMTNUTWVQGMQEMVYYMXD9DKSAOXGCIFWK9JTIBGW"
},
{
"hash": "ZYSAHCO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YUF9TSBADDZSLQ9BIWZVHAVQVZNJTYPEUV9MHLJIZAMTHGPTDXBENSVQFKQTTLUDYBKMTVBPFJYMWRECOBVPZVM9KVQEJZH9OQKRHR9CVZRUDAUUYYTJZYUWLDKUSIHYNUJFA9MZNAVZUZ9ORJFYRZJZPUPDHZBNETHRHRTEH",
"address": "WAPLYLRNREIXDVV9CUDNWIWUBCJBRBWNFHZIKQ9FLKXSQQCHVEFGDPITUEZJDTFOUMWSRPMUD9GGBVDAB",
"value": 0,
"tag": "999999999999999999999999999",
"timestamp": 1497273708,
"currentIndex": 2,
"lastIndex": 6,
"bundle": "DSTDQWTBFIZMH9GZNTIIGPMVUOWLYNTNBFICCCEQCNNFVXISFHBAL9DRKRCXBXJYKYSNNBIVFVTXGOWAU",
"trunkTransaction": "TOCEQOFRBHBSRNWKBXDGQGERIJLUB9SABENR9TNBIERXFQNFTBN9JSUGKQZRSMWNPAHXNVSNAJ9E99999",
"branchTransaction": "IBRLWFHZECGMRJYTFFFABIZZXOMRTBMJOUHRX9HJQKDOLXFQCZPOFQDZSBKWYKZQKCALJBCWD9SI99999",
"nonce": "ZTIZRAHBJISYCYXSDZQLJAQSQRUWCNTVIBXBUFABEGEUFNGJOCPKYNXFTP9CUCXGWCCGZJBEFGCFGDAIV"
},
{
"hash": "TOCEQOFRBHBSRNWKBXDGQGERIJLUB9SABENR9TNBIERXFQNFTBN9JSUGKQZRSMWNPAHXNVSNAJ9E99999",
"signatureMessageFragment": "ZXKXXKZGSQSVRDMDRQWURIPFBETFGTBMFXGZXMVBKA9NORWPQQWJYZSRNN9NBFRUDUBPCUU9DCLBWTTMGKXSMRMWUSXEPHFHVVQIUZHAVJWMNATHPNWR9MMTAHNRRACPLAVUKUYHABPM9CNNAXEDFYQFOKDMVYSCWD9PGHRQOXEDSDLG9TCITCLWCSCQQEA9ZMO9LYNU9UFILOPPYYKGEVRGWLNWTVCAAFHXTRLBAJXLSWPVXKRGTMMOVNFRBVQCIT9YR9EYAHZZGIO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QVXGXMEUUJSDFUJKGHHFSBBACTPGSY9IHNMKV9VBWROSYNF9NZODKQOOUKZZLZZGCXULILMUCIDYAMFHMXNKUVCIIOQVPVHVNWRWCNFFQYSVHNHVIMFTAHY9GHWVPLNDDHZO9XIETMFFZAL9PWRETSJRWIOJAHAXJZKRFDZSVJJ9RW9GZIV9KCXVNTV9OOXIBVVUOTCWIRRQLBRDDZHJGXUSFQLQXSNEVGBXRG9DPJKNEPLLHPMUNLSYWHLWCYHIYTMNQBFHZRY9QODGBSSOJFIQ9UJFLLPNSQW9UFQKWNPKLDXGZHSRYZZQPZODKXMFRDROWSEHPQCYFUCMXHZRVTIUCRQGEGBFXKDTPCR9NODGTEDIBL9QHAGITQA9OPZEDPTE9VPGG9FEVQECGXFZOTDVYUMMTUKW9BLSAWLSGDGJJB9PNOBFKZXCK9AYIUQMKASFONLCAGLZRHACGGQACEXGS9AGFRVPJN9TZERMYAHMLRITLEOEHOOZ",
"address": "WAPLYLRNREIXDVV9CUDNWIWUBCJBRBWNFHZIKQ9FLKXSQQCHVEFGDPITUEZJDTFOUMWSRPMUD9GGBVDAB",
"value": 0,
"tag": "999999999999999999999999999",
"timestamp": 1497273708,
"currentIndex": 4,
"lastIndex": 6,
"bundle": "DSTDQWTBFIZMH9GZNTIIGPMVUOWLYNTNBFICCCEQCNNFVXISFHBAL9DRKRCXBXJYKYSNNBIVFVTXGOWAU",
"trunkTransaction": "ZAABTYWVSZ9WTOSPPMHVTRXOWXEKX9YWEXQEHLDWFJIWVXANCMEDQDVCCDIEUCAABZESAQXFDNLS99999",
"branchTransaction": "IBRLWFHZECGMRJYTFFFABIZZXOMRTBMJOUHRX9HJQKDOLXFQCZPOFQDZSBKWYKZQKCALJBCWD9SI99999",
"nonce": "XWAOIMSFXTKIFYGOWVRLHFV9QAORX9XNGHDCAGTYDVY9GTCLTQEGAZZGKIQNXSAKNPCOWOKLOHBLPHVNB"
},
{
"hash": "ZAABTYWVSZ9WTOSPPMHVTRXOWXEKX9Y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GEASCSGZPUUYNKQFNOMRQYZUATGMKSVPVQODCGGOAQJRHVQEZRPBPQXM9AFTBEWFTINCIAIYGHNQSCOSQISXZOEJQFZCZNKJREUCP9YZYIWHEKWHKRBJNPKICPHJOCTNYPHWVWQLVVBDN",
"address": "WAPLYLRNREIXDVV9CUDNWIWUBCJBRBWNFHZIKQ9FLKXSQQCHVEFGDPITUEZJDTFOUMWSRPMUD9GGBVDAB",
"value": 0,
"tag": "999999999999999999999999999",
"timestamp": 1497273708,
"currentIndex": 5,
"lastIndex": 6,
"bundle": "DSTDQWTBFIZMH9GZNTIIGPMVUOWLYNTNBFICCCEQCNNFVXISFHBAL9DRKRCXBXJYKYSNNBIVFVTXGOWAU",
"trunkTransaction": "TBAURYNRAXDUSQADNF9HEVRWNKGWYYLYQD9KHKDKAZYWVLIHYCHCKMQOYWMLWBTFNJHJRWWVWQJJ99999",
"branchTransaction": "IBRLWFHZECGMRJYTFFFABIZZXOMRTBMJOUHRX9HJQKDOLXFQCZPOFQDZSBKWYKZQKCALJBCWD9SI99999",
"nonce": "XOROHRVHLQLDGESCEQTFXWXHKQPTHVDNG9S9PKVLYVKLIBKVIFQZL9YYFNO99CAQEPMAHXTHTFWOYAGT9"
},
{
"hash": "TBAURYNRAXDUSQADNF9HEVRWNKGWYYLYQD9KHKDKAZYWVLIHYCHCKMQOYWMLWBTFNJHJRWWVWQJJ99999",
"signatureMessageFragment": "AKDKUAVIBVVAHHKUTGTVGUPQDIHVDVKYX9LUILYULCLFMGFRYGMKMQNY9NEHRFNFGFFKSKKWWVQURIUJJGASFFGMVCIUYIL9H99RMENSQXLDGLGGOPOL9KYJKLYAVJFVQJEYVVHSCJKLKVOUPTMDMHSPHWLMXBERTOBGTGPGXYJVYUMHVQGCQZWWUJZLHYRHQAOXNLMCXEUBPCIKQKGGTKUKSPWSNNEFSLRSAAIEZPK9RXBSXBBHZQURUGMXKEAVLJ9TMAJRTY9CJXYBIMFMZBF9VTQJDJUQSYQTD9OXKZFZOXK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XGOWAU",
"trunkTransaction": "IBRLWFHZECGMRJYTFFFABIZZXOMRTBMJOUHRX9HJQKDOLXFQCZPOFQDZSBKWYKZQKCALJBCWD9SI99999",
"branchTransaction": "FXFNXAAAKTTTYGN9DLKJREFZDACEAULFWBWEYAFVVTGWEFXXSZNONUVFLGJPRASJTAPUDZB9W9JH99999",
"nonce": "FPSRVHRXNXMZXWRHYMZGDSIXDIXZGBEYTHHWXOTA9BRXJORIVAUOMX9UWGEXWZBZXRPFOMLVJDINCHSRV"
}
]
var IOTA = require('../lib/iota');
var iota = new IOTA({
'host': 'http://localhost',
'port': 15265
});
var seed1 = 'F9DSA9FDA9FDAS9G9BGFJJHKLHYJKVHCJKLHLKJBGFDREWQUIO';
var seed2 = 'AIEUWRZUIGFDS9B9GFDG9FDH9REWT9GBFDS9GFDS9AQWERQIUZ';
var seed3 = 'JKLJOITREWOIUBVFDXJOIGFDS9GFDS9BGFD9GFDS9QWERTREWH';
// First co-signer uses index 0 and security level 3
// We initiate the multisig address generation by absorbing the key address digest
var digestOne = iota.multisig.getDigest(seed1, 0, 2);
var initiatedMultisigAddress = iota.multisig.addAddressDigest(digestOne);
// Second cosigner also uses index 0 and security level 3 for the private key
// Add the multisig by absorbing the second cosigners key digest
var digestTwo = iota.multisig.getDigest(seed2, 0, 2);
var multisigDigestTwo = iota.multisig.addAddressDigest(digestTwo, initiatedMultisigAddress);
// Third cosigner also uses index 0 and security level 3 for the private key
// Add the multisig by absorbing the second cosigners key digest
var digestThree = iota.multisig.getDigest(seed3, 0, 2);
var finalMultisigDigest = iota.multisig.addAddressDigest(digestThree, multisigDigestTwo);
// and finally we generate the address itself
var address = iota.multisig.finalizeAddress(finalMultisigDigest);
console.log("MULTISIG ADDRESS: ", address);
// Simple validation if the multisig was created correctly
// Can be called by each cosigner independently
var isValid = iota.multisig.validateAddress(address, [digestOne, digestTwo]);
console.log("IS VALID MULTISIG ADDRESS:", isValid);
var IOTA = require('../lib/iota');
var iota = new IOTA({
'host': 'http://localhost',
'port': 15265
});
var seed1 = 'F9DSA9FDA9FDAS9G9BGFJJHKLHYJKVHCJKLHLKJBGFDREWQUIO';
var seed2 = 'AIEUWRZUIGFDS9B9GFDG9FDH9REWT9GBFDS9GFDS9AQWERQIUZ';
var seed3 = 'JKLJOITREWOIUBVFDXJOIGFDS9GFDS9BGFD9GFDS9QWERTREWH';
// this is the multisig address that had been generated previously
var address = 'WAPLYLRNREIXDVV9CUDNWIWUBCJBRBWNFHZIKQ9FLKXSQQCHVEFGDPITUEZJDTFOUMWSRPMUD9GGBVDAB'
iota.multisig.initiateTransfer(6, address, null, [{'address': 'ZGHXPZYDKXPEOSQTAQOIXEEI9K9YKFKCWKYYTYAUWXK9QZAVMJXWAIZABOXHHNNBJIEBEUQRTBWGLYMTX', 'value': 15000}], function(e, initiatedBundle) {
if (e) {
console.log(e);
}
iota.multisig.addSignature(initiatedBundle, address, iota.multisig.getKey(seed1, 0, 2), function(e,firstSignedBundle) {
if (e) {
console.log(e);
}
iota.multisig.addSignature(firstSignedBundle, address, iota.multisig.getKey(seed2, 0, 2), function(e,secondSignedBundle) {
if (e) {
console.log(e);
}
iota.multisig.addSignature(secondSignedBundle, address, iota.multisig.getKey(seed3, 0, 2), function(e,finalBundle) {
if (e) {
console.log(e);
}
console.log(finalBundle);
console.log("IS VALID SIGNATURE: ", iota.utils.validateSignatures(finalBundle, address));
var bundleTrytes = []
// Convert all bundle entries into trytes
finalBundle.forEach(function(tx) {
bundleTrytes.push(iota.utils.transactionTrytes(tx))
})
iota.api.sendTrytes(bundleTrytes.reverse(), 4, 15, function(e,s) {
console.log(e,s);
});
});
});
});
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment