mixi
TheMixiBFT-DAGetworkrefereceimplemetatio,theTrustedExecutioEvirometisotitegrateditothisrepositoryyet.
GetStartedIstallgolagadsetupGOPATHfollowigthisguidehttps://golag.org/doc/istall.
$gitcloehttps://github.com/MixiNetwork/mixi.git$cdmixi$gobuildThemixicommadisboththekerelodeadtoolstocommuicatewiththeodeRPCiterface.
$mixiNAME:mixi-Afree,lightigfastaddecetralizedetworkfortrasferrigdigitalassets.USAGE:mixi[globaloptios]commad[commadoptios][argumets...]VERSION:v0.12.0COMMANDS:kerel,kStarttheMixiKereldaemocloeCloeagraphtoitializethekerelsetuptestetSetupthetestodesadgeesiscreateaddressCreateaewMixiaddressdecodeaddressDecodeaaddressaspublicviewkeyadpublicspedkeydecodesigatureDecodeasigaturedecryptghostkeyDecryptaghostkeywiththeprivateviewkeyupdateheadrefereceUpdatethecacheroudexteralreferece,everuseitulessagreebyotherodesremovegraphetriesRemovedataetriesbyprefixfromthegraphdatastoragevalidategraphetriesValidatetrasactiohashitegratiosigrawtrasactioSigaJSONecodedtrasactiosedrawtrasactioBroadcastahexecodedsigedrawtrasactiodecoderawtrasactioDecodearawtrasactioasJSONbuildodepledgetrasactioBuildthetrasactiotopledgeaodebuildodecaceltrasactioBuildthetrasactiotocacelapledgigodedecodeodepledgetrasactioDecodetheextraifoofapledgetrasactiogetroudlikGetthelatestlikbetweetwoodesgetroudbyumberGetaspecificroudgetroudbyhashGetaspecificroudlistsapshotsListfializedsapshotsgetsapshotGetthesapshotbyhashgettrasactioGetthefializedtrasactiobyhashgetcachetrasactioGetthetrasactioicachebyhashgetutxoGettheUTXObyhashadidexlistmitworksListmitworkslistmitdistributiosListmitdistributioslistallodesListallodeseverexistedgetifoGetifofromtheodedumpgraphheadDumpthegraphheadhelp,hShowsalistofcommadsorhelpforoecommadGLOBALOPTIONS:--odevalue,-valuetheodeRPCedpoit(default:"127.0.0.1:8239")--dirvalue,-dvaluethedatadirectory--timeprittherutime(default:false)--help,-hshowhelp(default:false)--versio,-vprittheversio(default:false)MixiKerelAddressMixiKereladdressareapairofed25519keys,followigtheCryptoNoteprotocol.Tocreateaewaddressusethecreateaddresscommad.
$mixicreateaddressaddress:XINJkpCdwVk3qFqmS3AAAoTmC5Gm2fR3iRF7Rtt7hayuaLXNrtztS3LGPSxTmq5KQh3KJ2qYXYE5a9w8BWXhZAdsJKXqcvUrviewkey:568302b687a2fa3e8853ff35d99ffdf3817b98170de7b51e43d0dcf4fe30470fspedkey:7c2b5c97278ed371d75610cccd9681af31b0d99be4adc2d66983f3c455fc9702SharetheaddresstoreceiveassetsfromotherMixiKereladdresses,adkeepviewkeyadspedkeyprivatelyadsecurely.
Boththeviewkeyadspedkeyarerequiredtospedtheassetsreceivedfromothers,adtheviewkeyiteselfissufficiettodecodeadviewallthetrasactiossettoaddress.
SigadSedRawTrasactioBasicMixiKereltrasactioissimilartothetrasactioiBitcoi,withfollowigformat.
{"versio":1,"asset":"a99c2e0e2b1da4d648755ef19bd95139acbbe6564cfb06dec7cd34931ca72cdc","extra":"34366362393932382d653636632d343966392d386165632d366462366137346666663638","outputs":[{"type":0,"amout":"115.06849309","script":"fffe01","accouts":["XINPXu5NBXszhpZDRJ8iA26TbQ2oWTSq1tXqKKeVeYWgLSz8yXGTtVhMogyYytoMewYVFR541wauLhy1YV33zg445E49YA7"]}],"iputs":[{"hash":"20001842d6eff5129c11f7c053bf1209f0267bf223f1681c9cb9d19fc773a692","idex":11}]}ThisisthesameUTXOmodelusediBitcoi,butwithdifferetfieldames.Amogthemversio,typeadscriptshouldotbemodifiedulessyoukowsomeadvacedtopics.
CompacttherawtrasactioJSONadsigitwiththeprivateviewadspedkeyasfollowig.
$mixisigrawtrasactio-mixi-ode:8239\-key0d48c96d383d325a97eea5295cbf3afa7766c49db477b68fd8032ff7f59b0b00d77e434f96f3f42c2d1796662c7cc90497feaf3863a5815f27ba49fd5e29b906\-raw'{"versio":1,"asset":"a99c2e0e2b1da4d648755ef19bd95139acbbe6564cfb06dec7cd34931ca72cdc","extra":"34366362393932382d653636632d343966392d386165632d366462366137346666663638","outputs":[{"type":0,"amout":"115.06849309","script":"fffe01","accouts":["XINPXu5NBXszhpZDRJ8iA26TbQ2oWTSq1tXqKKeVeYWgLSz8yXGTtVhMogyYytoMewYVFR541wauLhy1YV33zg445E49YA7"]}],"iputs":[{"hash":"20001842d6eff5129c11f7c053bf1209f0267bf223f1681c9cb9d19fc773a692","idex":11}]}'StartaKerelNodeTostartaode,createadirectorymixiforthecofigadetworkdatafiles,theputthegeesis.jso,odes.jsoadcofig.tomlfilesiit.
Themaietgeesis.jso,odes.jsoadaexamplecofig.example.tomlfilescabeobtaiedfromhere,youolyeedtoputyourowsigerspedkeyithecofig.tomlfile.
Chagethecosesus-olyoptiotofalsewillallowtheodetostartiarchivemode,whichsycsallthegraphdata.
$mixihelpkerelNAME:mixikerel-StarttheMixiKereldaemoUSAGE:mixikerel[commadoptios][argumets...]OPTIONS:--dirvalue,-dvaluethedatadirectory--portvalue,-pvaluethepeerporttoliste(default:7239)LocalTestNetThiswillsetupamiimumlocaltestet,withallodesiasigledevice.
$mixisetuptestet$mixikerel-dir/tmp/mixi-7001-port7001$mixikerel-dir/tmp/mixi-7002-port7002$mixikerel-dir/tmp/mixi-7003-port7003$mixikerel-dir/tmp/mixi-7004-port7004$mixikerel-dir/tmp/mixi-7005-port7005$mixikerel-dir/tmp/mixi-7006-port7006$mixikerel-dir/tmp/mixi-7007-port7007
评论