12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <link rel="stylesheet" href="./../../templates/html/report.css" />
- <title>Scenario documentation</title>
- </head>
- <body>
- <div>
- <h1>Bootstrap a development network with 4 peers (2 orgs) and 1 orderer (1 org), each having a single independent root of trust (No fabric-ca, just openssl) -- @1.1 Orderer Options</h1>
- <hr/>
- <ul id="navigation">
- <li class="passed"><a href="#Step 1">Step 1: Given the orderer network has organizations</a></li>
- <li class="passed"><a href="#Step 2">Step 2: And user requests role of orderer admin by creating a key and csr for orderer and ac</a></li>
- <li class="passed"><a href="#Step 3">Step 3: And the peer network has organizations</a></li>
- <li class="passed"><a href="#Step 4">Step 4: And a ordererBootstrapAdmin is identified and given access to all public certificate</a></li>
- <li class="passed"><a href="#Step 5">Step 5: And the ordererBootstrapAdmin creates a cert alias "bootstrapCertAlias" for orderer </a></li>
- <li class="passed"><a href="#Step 6">Step 6: And the ordererBootstrapAdmin generates a GUUID to identify the orderer system chain</a></li>
- <li class="passed"><a href="#Step 7">Step 7: And the ordererBootstrapAdmin creates a consortium "consortium1" (network name) for </a></li>
- <li class="passed"><a href="#Step 8">Step 8: And the ordererBootstrapAdmin using cert alias "bootstrapCertAlias" creates the gene</a></li>
- <li class="passed"><a href="#Step 9">Step 9: And the orderer admins inspect and approve the genesis block for chain "OrdererSyste</a></li>
- <li class="passed"><a href="#Step 10">Step 10: And the orderer admins use the genesis block for chain "OrdererSystemChainId" to con</a></li>
- <li class="passed"><a href="#Step 11">Step 11: And user requests role for peer by creating a key and csr for peer and acquires sign</a></li>
- <li class="passed"><a href="#Step 12">Step 12: And we compose "docker-compose-next-4.yml"</a></li>
- <li class="passed"><a href="#Step 13">Step 13: And I wait "0" seconds</a></li>
- <li class="passed"><a href="#Step 14">Step 14: And the following application developers are defined for peer organizations and each</a></li>
- <li class="passed"><a href="#Step 15">Step 15: And the user "dev0Org0" creates a peer template "template1" with chaincode deploymen</a></li>
- <li class="passed"><a href="#Step 16">Step 16: And the user "dev0Org0" creates an peer anchor set "anchors1" for channel "com.acme.</a></li>
- <li class="passed"><a href="#Step 17">Step 17: And the user "dev0Org0" creates a ConfigUpdateEnvelope "createChannelConfigUpdate1"</a></li>
- <li class="passed"><a href="#Step 18">Step 18: And the user "dev0Org0" collects signatures for ConfigUpdateEnvelope "createChannelC</a></li>
- <li class="passed"><a href="#Step 19">Step 19: And the user "dev0Org0" creates a ConfigUpdate Tx "configUpdateTx1" using cert alias</a></li>
- <li class="passed"><a href="#Step 20">Step 20: And the user "dev0Org0" using cert alias "dev0Org0App1" broadcasts ConfigUpdate Tx "</a></li>
- <li class="passed"><a href="#Step 21">Step 21: And I wait "2" seconds</a></li>
- <li class="passed"><a href="#Step 22">Step 22: When user "dev0Org0" using cert alias "dev0Org0App1" connects to deliver function on </a></li>
- <li class="passed"><a href="#Step 23">Step 23: And user "dev0Org0" sends deliver a seek request on orderer "orderer0" with properti</a></li>
- <li class="passed"><a href="#Step 24">Step 24: Then user "dev0Org0" should get a delivery "genesisBlockForMyNewChannel" from "ordere</a></li>
- <li class="passed"><a href="#Step 25">Step 25: Given user "dev0Org0" gives "genesisBlockForMyNewChannel" to user "dev0Org1"</a></li>
- <li class="passed"><a href="#Step 26">Step 26: Given user "dev0Org0" gives "genesisBlockForMyNewChannel" to user "peer0Admin"</a></li>
- <li class="passed"><a href="#Step 27">Step 27: Given user "dev0Org0" gives "genesisBlockForMyNewChannel" to user "peer1Admin"</a></li>
- <li class="passed"><a href="#Step 28">Step 28: When user "peer0Admin" using cert alias "peer-admin-cert" requests to join channel us</a></li>
- <li class="passed"><a href="#Step 29">Step 29: Then user "peer0Admin" expects result code for "joinChannelResult" of "200" from peer</a></li>
- <li class="passed"><a href="#Step 30">Step 30: When user "peer1Admin" using cert alias "peer-admin-cert" requests to join channel us</a></li>
- <li class="passed"><a href="#Step 31">Step 31: Then user "peer1Admin" expects result code for "joinChannelResult" of "200" from peer</a></li>
- <li class="passed"><a href="#Step 32">Step 32: Given user "dev0Org1" gives "genesisBlockForMyNewChannel" to user "peer2Admin"</a></li>
- <li class="passed"><a href="#Step 33">Step 33: Given user "dev0Org1" gives "genesisBlockForMyNewChannel" to user "peer3Admin"</a></li>
- <li class="passed"><a href="#Step 34">Step 34: When user "peer2Admin" using cert alias "peer-admin-cert" requests to join channel us</a></li>
- <li class="passed"><a href="#Step 35">Step 35: Then user "peer2Admin" expects result code for "joinChannelResult" of "200" from peer</a></li>
- <li class="passed"><a href="#Step 36">Step 36: When user "peer3Admin" using cert alias "peer-admin-cert" requests to join channel us</a></li>
- <li class="passed"><a href="#Step 37">Step 37: Then user "peer3Admin" expects result code for "joinChannelResult" of "200" from peer</a></li>
- <li class="passed"><a href="#Step 38">Step 38: When user "peer0Admin" creates a chaincode spec "cc_spec" with name "example02" of ty</a></li>
- <li class="passed"><a href="#Step 39">Step 39: And user "peer0Admin" using cert alias "peer-admin-cert" creates a install proposal </a></li>
- <li class="passed"><a href="#Step 40">Step 40: And user "peer0Admin" using cert alias "peer-admin-cert" sends proposal "installProp</a></li>
- <li class="passed"><a href="#Step 41">Step 41: Then user "peer0Admin" expects proposal responses "installProposalResponses" with sta</a></li>
- <li class="passed"><a href="#Step 42">Step 42: Given user "peer0Admin" gives "cc_spec" to user "peer2Admin"</a></li>
- <li class="passed"><a href="#Step 43">Step 43: When user "peer2Admin" using cert alias "peer-admin-cert" creates a install proposal </a></li>
- <li class="passed"><a href="#Step 44">Step 44: And user "peer2Admin" using cert alias "peer-admin-cert" sends proposal "installProp</a></li>
- <li class="passed"><a href="#Step 45">Step 45: Then user "peer2Admin" expects proposal responses "installProposalResponses" with sta</a></li>
- <li class="passed"><a href="#Step 46">Step 46: Given user "peer0Admin" gives "cc_spec" to user "dev0Org0"</a></li>
- <li class="passed"><a href="#Step 47">Step 47: When user "dev0Org0" using cert alias "dev0Org0App1" creates a instantiate proposal "</a></li>
- <li class="passed"><a href="#Step 48">Step 48: And user "dev0Org0" using cert alias "dev0Org0App1" sends proposal "instantiatePropo</a></li>
- <li class="passed"><a href="#Step 49">Step 49: Then user "dev0Org0" expects proposal responses "instantiateProposalResponses" with s</a></li>
- <li class="passed"><a href="#Step 50">Step 50: And user "dev0Org0" expects proposal responses "instantiateProposalResponses" each h</a></li>
- <li class="passed"><a href="#Step 51">Step 51: When the user "dev0Org0" creates transaction "instantiateTx1" from proposal "instanti</a></li>
- <li class="passed"><a href="#Step 52">Step 52: And the user "dev0Org0" broadcasts transaction "instantiateTx1" to orderer "orderer0</a></li>
- <li class="passed"><a href="#Step 53">Step 53: And I wait "2" seconds</a></li>
- <li class="passed"><a href="#Step 54">Step 54: And user "dev0Org0" sends deliver a seek request on orderer "orderer0" with properti</a></li>
- <li class="passed"><a href="#Step 55">Step 55: Then user "dev0Org0" should get a delivery "deliveredInstantiateTx1Block" from "order</a></li>
- <li class="passed"><a href="#Step 56">Step 56: And I wait "1" seconds</a></li>
- <li class="passed"><a href="#Step 57">Step 57: When user "dev0Org0" creates a chaincode invocation spec "querySpec1" using spec "cc_</a></li>
- <li class="passed"><a href="#Step 58">Step 58: And user "dev0Org0" using cert alias "dev0Org0App1" creates a proposal "queryProposa</a></li>
- <li class="passed"><a href="#Step 59">Step 59: And user "dev0Org0" using cert alias "dev0Org0App1" sends proposal "queryProposal1" </a></li>
- <li class="passed"><a href="#Step 60">Step 60: Then user "dev0Org0" expects proposal responses "queryProposal1Responses" with status</a></li>
- <li class="passed"><a href="#Step 61">Step 61: And user "dev0Org0" expects proposal responses "queryProposal1Responses" each have t</a></li>
- <li class="passed"><a href="#Step 62">Step 62: When user "dev0Org0" creates a chaincode invocation spec "invocationSpec1" using spec</a></li>
- <li class="passed"><a href="#Step 63">Step 63: And user "dev0Org0" using cert alias "dev0Org0App1" creates a proposal "invokePropos</a></li>
- <li class="passed"><a href="#Step 64">Step 64: And user "dev0Org0" using cert alias "dev0Org0App1" sends proposal "invokeProposal1"</a></li>
- <li class="passed"><a href="#Step 65">Step 65: Then user "dev0Org0" expects proposal responses "invokeProposal1Responses" with statu</a></li>
- <li class="passed"><a href="#Step 66">Step 66: And user "dev0Org0" expects proposal responses "invokeProposal1Responses" each have </a></li>
- <li class="passed"><a href="#Step 67">Step 67: When the user "dev0Org0" creates transaction "invokeTx1" from proposal "invokeProposa</a></li>
- <li class="passed"><a href="#Step 68">Step 68: And the user "dev0Org0" broadcasts transaction "invokeTx1" to orderer "orderer0" on </a></li>
- <li class="passed"><a href="#Step 69">Step 69: And I wait "2" seconds</a></li>
- <li class="passed"><a href="#Step 70">Step 70: And user "dev0Org0" sends deliver a seek request on orderer "orderer0" with properti</a></li>
- <li class="passed"><a href="#Step 71">Step 71: Then user "dev0Org0" should get a delivery "deliveredInvokeTx1Block" from "orderer0" </a></li>
- </ul>
- </div>
- <div id="Step 1">
- <h2>Step 1</h2>
- <hr/>
- <h3>Given the orderer network has organizations</h3>
- <table>
- <tr>
- <th>Organization</th>
- <th>Readers</th>
- <th>Writers</th>
- <th>Admins</th>
- </tr>
- <tr>
- <td>ordererOrg0</td>
- <td>member</td>
- <td>member</td>
- <td>admin</td>
- </tr>
- </table>
- </div><div id="ordererOrg0">
- <h4>Created new organization ordererOrg0 with <a href="./dir-org-ordererorg0-cert.pem">public cert</a></h4>
- <code>-----BEGIN CERTIFICATE-----
- MIIB9TCCAZygAwIBAwICA+gwCgYIKoZIzj0EAwIwWDEUMBIGA1UEAwwLb3JkZXJl
- ck9yZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEX
- MBUGA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTMzWhcNMTgwNDI3
- MTg0OTMzWjBYMRQwEgYDVQQDDAtvcmRlcmVyT3JnMDELMAkGA1UEBhMCVVMxDDAK
- BgNVBAcMA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGlu
- YTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABLawQik+bOgaBNS9M74sjdw4Imqt
- g64ZdUP83144uaSHQPuUq8OYMMK/apGUSWtrorOJ2Gj9PMV+0Qs8yzeOAdWjVjBU
- MBIGA1UdEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFDRTjX3QJOAHbnREWkYokhXR
- pzsGMB8GA1UdIwQYMBaAFDRTjX3QJOAHbnREWkYokhXRpzsGMAoGCCqGSM49BAMC
- A0cAMEQCIBdqKO3TZ2KLWKcDErGiOc7TWIVChFfzO4Bn9AuunU6QAiAvweATe3z1
- 4CISjkUeaw8SdMSKV5GgRZCjgwzF8lLvNA==
- -----END CERTIFICATE-----
- </code>
- <div>
- <div class="scrollBox">
- <code>
- from cryptography import x509
- from cryptography.hazmat.backends import default_backend
- pem_data = None
- with open('tmp/40dc98342b7a11e79ac800163e000427/dir-org-ordererorg0-cert.pem') as f:
- pem_data = f.read()
- cert_for_ordererOrg0 = x509.load_pem_x509_certificate(pem_data, default_backend())
- ski_for_ordererOrg0= cert_for_ordererOrg0.extensions.get_extension_for_oid(x509.oid.ExtensionOID.SUBJECT_KEY_IDENTIFIER)
- </code>
- </div>
- </div></div><div id="Step 2">
- <h2>Step 2</h2>
- <hr/>
- <h3>And user requests role of orderer admin by creating a key and csr for orderer and acquires signed certificate from organization</h3>
- <table>
- <tr>
- <th>User</th>
- <th>Orderer</th>
- <th>Organization</th>
- </tr>
- <tr>
- <td>orderer0Signer</td>
- <td>orderer0</td>
- <td>ordererOrg0</td>
- </tr>
- <tr>
- <td>orderer1Signer</td>
- <td>orderer1</td>
- <td>ordererOrg0</td>
- </tr>
- <tr>
- <td>orderer2Signer</td>
- <td>orderer2</td>
- <td>ordererOrg0</td>
- </tr>
- </table>
- </div><div id="orderer0Signer">
- <h4>Created new user orderer0Signer with <a href="./dir-user-orderer0signer-privatekey.pem">private key</a></h4>
- <code>-----BEGIN EC PRIVATE KEY-----
- MHcCAQEEIJxD1AzQZguXJ1pcRmCelguOds9FLR1AkrHe+bVlm2+WoAoGCCqGSM49
- AwEHoUQDQgAEHwFzXF69MQ5BXs7mYiOpA/982mr80ygi6IWcWQb7VLkyx2V53sAR
- QyB5RoQ/xT/Ax+pHwR1vlx3CR4fjuU/MdA==
- -----END EC PRIVATE KEY-----
- </code>
- </div><div>
- <h4>Created new named node admin tuple: NodeAdminTuple(user=u'orderer0Signer', nodeName=u'orderer0', organization=u'ordererOrg0')</h4>
- </div><div class="scrollBox">
- <code>
- -----BEGIN CERTIFICATE-----
- MIIB7TCCAZOgAwIBAwICA+gwCgYIKoZIzj0EAwIwWDEUMBIGA1UEAwwLb3JkZXJl
- ck9yZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEX
- MBUGA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTMzWhcNMTgwNDI3
- MTg0OTMzWjBVMREwDwYDVQQDDAhvcmRlcmVyMDELMAkGA1UEBhMCVVMxDDAKBgNV
- BAcMA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZ
- MBMGByqGSM49AgEGCCqGSM49AwEHA0IABB8Bc1xevTEOQV7O5mIjqQP/fNpq/NMo
- IuiFnFkG+1S5Msdled7AEUMgeUaEP8U/wMfqR8Edb5cdwkeH47lPzHSjUDBOMAwG
- A1UdEwEB/wQCMAAwHQYDVR0OBBYEFMnu76tt+7C+iOtOu+UrIVCnnu5QMB8GA1Ud
- IwQYMBaAFDRTjX3QJOAHbnREWkYokhXRpzsGMAoGCCqGSM49BAMCA0gAMEUCIEBp
- CM37305NHEqxGZwOsFKncUVTISI+D8+qg1qFn/GQAiEAuohclwpctW0QtHp/sp0L
- 38MGiwiA78Rt5aElon+ejTE=
- -----END CERTIFICATE-----
- </code>
- </div><div id="orderer1Signer">
- <h4>Created new user orderer1Signer with <a href="./dir-user-orderer1signer-privatekey.pem">private key</a></h4>
- <code>-----BEGIN EC PRIVATE KEY-----
- MHcCAQEEIOk/cu6HN5xVuJgsV3+yrD7rEyAQhBEg2ElUVb61AOvyoAoGCCqGSM49
- AwEHoUQDQgAE2+uIGIQowWaMtHOECYVhryH8o/QJb5GZ7bMZ0FcnJu9x/CAmbUJW
- n/TF8JS4+SvmJyM9PYCb6Z0odVeLcHDgRA==
- -----END EC PRIVATE KEY-----
- </code>
- </div><div>
- <h4>Created new named node admin tuple: NodeAdminTuple(user=u'orderer1Signer', nodeName=u'orderer1', organization=u'ordererOrg0')</h4>
- </div><div class="scrollBox">
- <code>
- -----BEGIN CERTIFICATE-----
- MIIB7TCCAZOgAwIBAwICA+gwCgYIKoZIzj0EAwIwWDEUMBIGA1UEAwwLb3JkZXJl
- ck9yZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEX
- MBUGA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTMzWhcNMTgwNDI3
- MTg0OTMzWjBVMREwDwYDVQQDDAhvcmRlcmVyMTELMAkGA1UEBhMCVVMxDDAKBgNV
- BAcMA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZ
- MBMGByqGSM49AgEGCCqGSM49AwEHA0IABNvriBiEKMFmjLRzhAmFYa8h/KP0CW+R
- me2zGdBXJybvcfwgJm1CVp/0xfCUuPkr5icjPT2Am+mdKHVXi3Bw4ESjUDBOMAwG
- A1UdEwEB/wQCMAAwHQYDVR0OBBYEFNbbR1HOqs3NymXMxYv6m6fnWgQGMB8GA1Ud
- IwQYMBaAFDRTjX3QJOAHbnREWkYokhXRpzsGMAoGCCqGSM49BAMCA0gAMEUCIC7P
- gvGW7BJ7A7tUXR0v87vlNj5dxOzSMABv/G6yHnd6AiEA1f9LtNTAz0Y7UvvgAyq3
- I2dmJBdJeDUatIFO79IvyN4=
- -----END CERTIFICATE-----
- </code>
- </div><div id="orderer2Signer">
- <h4>Created new user orderer2Signer with <a href="./dir-user-orderer2signer-privatekey.pem">private key</a></h4>
- <code>-----BEGIN EC PRIVATE KEY-----
- MHcCAQEEID5DSwlHOhz61XeIEqWjv1mOKky4Qn9bVN+aSs3d1v0moAoGCCqGSM49
- AwEHoUQDQgAENGJDq6rs6lm/dvXYHxAszmIeymKcQ8rTxYAWYTMfg8zn9BP4Ccjv
- /AJZ/8bkZD/1jka9ysZpZP7Ocs7cJNsw+g==
- -----END EC PRIVATE KEY-----
- </code>
- </div><div>
- <h4>Created new named node admin tuple: NodeAdminTuple(user=u'orderer2Signer', nodeName=u'orderer2', organization=u'ordererOrg0')</h4>
- </div><div class="scrollBox">
- <code>
- -----BEGIN CERTIFICATE-----
- MIIB7TCCAZOgAwIBAwICA+gwCgYIKoZIzj0EAwIwWDEUMBIGA1UEAwwLb3JkZXJl
- ck9yZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEX
- MBUGA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTMzWhcNMTgwNDI3
- MTg0OTMzWjBVMREwDwYDVQQDDAhvcmRlcmVyMjELMAkGA1UEBhMCVVMxDDAKBgNV
- BAcMA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZ
- MBMGByqGSM49AgEGCCqGSM49AwEHA0IABDRiQ6uq7OpZv3b12B8QLM5iHspinEPK
- 08WAFmEzH4PM5/QT+AnI7/wCWf/G5GQ/9Y5GvcrGaWT+znLO3CTbMPqjUDBOMAwG
- A1UdEwEB/wQCMAAwHQYDVR0OBBYEFOZIN9L+DwqHRGGp1UxwzJEcLG3IMB8GA1Ud
- IwQYMBaAFDRTjX3QJOAHbnREWkYokhXRpzsGMAoGCCqGSM49BAMCA0gAMEUCIQCC
- KLqIZQ0or/T0H0704hGPQd1YkyDQ9WcG9sEABXefzgIgGcPhxLAUgCVgNVWcwCzS
- DefbQKK6d2Z8ysda/hkm/6Y=
- -----END CERTIFICATE-----
- </code>
- </div><div id="Step 3">
- <h2>Step 3</h2>
- <hr/>
- <h3>And the peer network has organizations</h3>
- <table>
- <tr>
- <th>Organization</th>
- <th>Readers</th>
- <th>Writers</th>
- <th>Admins</th>
- </tr>
- <tr>
- <td>peerOrg0</td>
- <td>member</td>
- <td>member</td>
- <td>admin</td>
- </tr>
- </table>
- </div><div id="peerOrg0">
- <h4>Created new organization peerOrg0 with <a href="./dir-org-peerorg0-cert.pem">public cert</a></h4>
- <code>-----BEGIN CERTIFICATE-----
- MIIB8DCCAZagAwIBAwICA+gwCgYIKoZIzj0EAwIwVTERMA8GA1UEAwwIcGVlck9y
- ZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEXMBUG
- A1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTM0WhcNMTgwNDI3MTg0
- OTM0WjBVMREwDwYDVQQDDAhwZWVyT3JnMDELMAkGA1UEBhMCVVMxDDAKBgNVBAcM
- A1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZMBMG
- ByqGSM49AgEGCCqGSM49AwEHA0IABHoyrgAAOk5OlEGB1GCLY4eIZuhVtAy55Mea
- moa+LzZGyA5kKfI9n5rw6pbum0ZcoWvv26bB6MJsE53eRJexOu6jVjBUMBIGA1Ud
- EwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFMjjW1UqCPlfPHykFupBF0DJjgAjMB8G
- A1UdIwQYMBaAFMjjW1UqCPlfPHykFupBF0DJjgAjMAoGCCqGSM49BAMCA0gAMEUC
- IQDNERoPNQ0pCa+mnU/q4ef6o/hgMZeOm6cwDVreH/79gwIgf9Xvl2FCIdUFdS5G
- v4D1ZnEJ9emNk6FETGC8NKnnUuc=
- -----END CERTIFICATE-----
- </code>
- <div>
- <div class="scrollBox">
- <code>
- from cryptography import x509
- from cryptography.hazmat.backends import default_backend
- pem_data = None
- with open('tmp/40dc98342b7a11e79ac800163e000427/dir-org-peerorg0-cert.pem') as f:
- pem_data = f.read()
- cert_for_peerOrg0 = x509.load_pem_x509_certificate(pem_data, default_backend())
- ski_for_peerOrg0= cert_for_peerOrg0.extensions.get_extension_for_oid(x509.oid.ExtensionOID.SUBJECT_KEY_IDENTIFIER)
- </code>
- </div>
- </div></div><div id="Step 4">
- <h2>Step 4</h2>
- <hr/>
- <h3>And a ordererBootstrapAdmin is identified and given access to all public certificates and orderer node info</h3>
- </div><div id="ordererBootstrapAdmin">
- <h4>Created new user ordererBootstrapAdmin with <a href="./dir-user-ordererbootstrapadmin-privatekey.pem">private key</a></h4>
- <code>-----BEGIN EC PRIVATE KEY-----
- MHcCAQEEINuAq3vwSWeNaFN11VioqewChRNNkHx96JBOMbYcqayAoAoGCCqGSM49
- AwEHoUQDQgAEj+jXLuSVLv4dxNelhdtfmtJAGFQJdm1qrCDeoxSc/Vc4+mJD3rbe
- aprPJIKmc+2WwnqGN9hERUi+F9Lg99mROg==
- -----END EC PRIVATE KEY-----
- </code>
- </div><div id="Step 5">
- <h2>Step 5</h2>
- <hr/>
- <h3>And the ordererBootstrapAdmin creates a cert alias "bootstrapCertAlias" for orderer network bootstrap purposes for organizations</h3>
- <table>
- <tr>
- <th>Organization</th>
- </tr>
- <tr>
- <td>ordererOrg0</td>
- </tr>
- </table>
- </div><div>
- <h4>Created new named node admin tuple: NodeAdminTuple(user='ordererBootstrapAdmin', nodeName='ordererBootstrapAdmin', organization=u'ordererOrg0')</h4>
- </div><div class="scrollBox">
- <code>
- -----BEGIN CERTIFICATE-----
- MIIB+zCCAaCgAwIBAwICA+gwCgYIKoZIzj0EAwIwWDEUMBIGA1UEAwwLb3JkZXJl
- ck9yZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEX
- MBUGA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTM0WhcNMTgwNDI3
- MTg0OTM0WjBiMR4wHAYDVQQDDBVvcmRlcmVyQm9vdHN0cmFwQWRtaW4xCzAJBgNV
- BAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEXMBUGA1UECAwOTm9y
- dGggQ2Fyb2xpbmEwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAASP6Ncu5JUu/h3E
- 16WF21+a0kAYVAl2bWqsIN6jFJz9Vzj6YkPett5qms8kgqZz7ZbCeoY32ERFSL4X
- 0uD32ZE6o1AwTjAMBgNVHRMBAf8EAjAAMB0GA1UdDgQWBBTFirck6c1lBS6qkaaE
- FYO7Y8wiaTAfBgNVHSMEGDAWgBQ0U4190CTgB250RFpGKJIV0ac7BjAKBggqhkjO
- PQQDAgNJADBGAiEAgUXKeWSiMnxaUFL/+bnzh0EQmE56RqKWhEAf5gRWLUECIQDc
- +Ktmy69TTYNd8zhIdz8PXFVcip5/TUZB4Fojcvl1PA==
- -----END CERTIFICATE-----
- </code>
- </div><div id="ordererBootstrapAdmin-bootstrapCertAlias">
- <h4>User ordererBootstrapAdmin setting tag key bootstrapCertAlias to value</h4>
- </div><div class="scrollBox">
- <code>
- NodeAdminTuple(user='ordererBootstrapAdmin', nodeName='ordererBootstrapAdmin', organization=u'ordererOrg0')
- </code>
- </div><div id="Step 6">
- <h2>Step 6</h2>
- <hr/>
- <h3>And the ordererBootstrapAdmin generates a GUUID to identify the orderer system chain and refer to it by name as "OrdererSystemChainId"</h3>
- </div><div id="ordererBootstrapAdmin-OrdererSystemChainId">
- <h4>User ordererBootstrapAdmin setting tag key OrdererSystemChainId to value</h4>
- </div><div class="scrollBox">
- <code>
- 40dc98352b7a11e79ac800163e000427
- </code>
- </div><div id="Step 7">
- <h2>Step 7</h2>
- <hr/>
- <h3>And the ordererBootstrapAdmin creates a consortium "consortium1" (network name) for peer orgs who wish to form a network</h3>
- <table>
- <tr>
- <th>Organization</th>
- </tr>
- <tr>
- <td>peerOrg0</td>
- </tr>
- </table>
- </div><div id="ordererBootstrapAdmin-consortium1">
- <h4>User ordererBootstrapAdmin setting tag key consortium1 to value</h4>
- </div><div>
- <a href="./ordererbootstrapadmin-consortium1-0000.protobuf" title="ordererbootstrapadmin-consortium1-0000.protobuf">Protobuf message in binary form</a>
- <div class="scrollBox">
- <code>
- groups {
- key: "Consortiums"
- value {
- groups {
- key: "consortium1"
- value {
- groups {
- key: "peerOrg0"
- value {
- values {
- key: "MSP"
- value {
- value: "\022\312\013\n\010peerOrg0\022\335\005-----BEGIN CERTIFICATE-----\nMIIB8DCCAZagAwIBAwICA+gwCgYIKoZIzj0EAwIwVTERMA8GA1UEAwwIcGVlck9y\nZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEXMBUG\nA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTM0WhcNMTgwNDI3MTg0\nOTM0WjBVMREwDwYDVQQDDAhwZWVyT3JnMDELMAkGA1UEBhMCVVMxDDAKBgNVBAcM\nA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZMBMG\nByqGSM49AgEGCCqGSM49AwEHA0IABHoyrgAAOk5OlEGB1GCLY4eIZuhVtAy55Mea\nmoa+LzZGyA5kKfI9n5rw6pbum0ZcoWvv26bB6MJsE53eRJexOu6jVjBUMBIGA1Ud\nEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFMjjW1UqCPlfPHykFupBF0DJjgAjMB8G\nA1UdIwQYMBaAFMjjW1UqCPlfPHykFupBF0DJjgAjMAoGCCqGSM49BAMCA0gAMEUC\nIQDNERoPNQ0pCa+mnU/q4ef6o/hgMZeOm6cwDVreH/79gwIgf9Xvl2FCIdUFdS5G\nv4D1ZnEJ9emNk6FETGC8NKnnUuc=\n-----END CERTIFICATE-----\n\"\335\005-----BEGIN CERTIFICATE-----\nMIIB8DCCAZagAwIBAwICA+gwCgYIKoZIzj0EAwIwVTERMA8GA1UEAwwIcGVlck9y\nZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEXMBUG\nA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTM0WhcNMTgwNDI3MTg0\nOTM0WjBVMREwDwYDVQQDDAhwZWVyT3JnMDELMAkGA1UEBhMCVVMxDDAKBgNVBAcM\nA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZMBMG\nByqGSM49AgEGCCqGSM49AwEHA0IABHoyrgAAOk5OlEGB1GCLY4eIZuhVtAy55Mea\nmoa+LzZGyA5kKfI9n5rw6pbum0ZcoWvv26bB6MJsE53eRJexOu6jVjBUMBIGA1Ud\nEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFMjjW1UqCPlfPHykFupBF0DJjgAjMB8G\nA1UdIwQYMBaAFMjjW1UqCPlfPHykFupBF0DJjgAjMAoGCCqGSM49BAMCA0gAMEUC\nIQDNERoPNQ0pCa+mnU/q4ef6o/hgMZeOm6cwDVreH/79gwIgf9Xvl2FCIdUFdS5G\nv4D1ZnEJ9emNk6FETGC8NKnnUuc=\n-----END CERTIFICATE-----\n"
- mod_policy: "Admins"
- }
- }
- policies {
- key: "Admins"
- value {
- policy {
- type: 1
- policy: "\022\010\022\006\010\001\022\002\010\000\032\016\022\014\n\010peerOrg0\020\001"
- }
- mod_policy: "Admins"
- }
- }
- policies {
- key: "Readers"
- value {
- policy {
- type: 1
- policy: "\022\010\022\006\010\001\022\002\010\000\032\014\022\n\n\010peerOrg0"
- }
- mod_policy: "Admins"
- }
- }
- policies {
- key: "Writers"
- value {
- policy {
- type: 1
- policy: "\022\010\022\006\010\001\022\002\010\000\032\014\022\n\n\010peerOrg0"
- }
- mod_policy: "Admins"
- }
- }
- }
- }
- values {
- key: "ChannelCreationPolicy"
- value {
- value: "\010\003\022\013\n\007Writers\020\001"
- mod_policy: "Admins"
- }
- }
- }
- }
- }
- }
- </code>
- </div>
- <div>
- <div class="scrollBox">
- <code>
- from common.configtx_pb2 import ConfigGroup
- configGroup = ConfigGroup()
- data = None
- with open('tmp/40dc98342b7a11e79ac800163e000427/ordererbootstrapadmin-consortium1-0000.protobuf') as f:
- data = f.read()
- configGroup.ParseFromString(data)
- </code>
- </div>
- </div></div><div id="Step 8">
- <h2>Step 8</h2>
- <hr/>
- <h3>And the ordererBootstrapAdmin using cert alias "bootstrapCertAlias" creates the genesis block "ordererGenesisBlock" for chain "OrdererSystemChainId" for network config policy "<PolicyType>" and consensus "solo" using consortiums</h3>
- <table>
- <tr>
- <th>Consortium</th>
- </tr>
- <tr>
- <td>consortium1</td>
- </tr>
- </table>
- </div><div id="ordererBootstrapAdmin-ordererGenesisBlock_genesis_channel_config">
- <h4>User ordererBootstrapAdmin setting tag key ordererGenesisBlock_genesis_channel_config to value</h4>
- </div><div>
- <a href="./ordererbootstrapadmin-orderergenesisblock-genesis-channel-config.protobuf" title="ordererbootstrapadmin-orderergenesisblock-genesis-channel-config.protobuf">Protobuf message in binary form</a>
- <div class="scrollBox">
- <code>
- groups {
- key: "Consortiums"
- value {
- groups {
- key: "consortium1"
- value {
- groups {
- key: "peerOrg0"
- value {
- values {
- key: "MSP"
- value {
- value: "\022\312\013\n\010peerOrg0\022\335\005-----BEGIN CERTIFICATE-----\nMIIB8DCCAZagAwIBAwICA+gwCgYIKoZIzj0EAwIwVTERMA8GA1UEAwwIcGVlck9y\nZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEXMBUG\nA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTM0WhcNMTgwNDI3MTg0\nOTM0WjBVMREwDwYDVQQDDAhwZWVyT3JnMDELMAkGA1UEBhMCVVMxDDAKBgNVBAcM\nA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZMBMG\nByqGSM49AgEGCCqGSM49AwEHA0IABHoyrgAAOk5OlEGB1GCLY4eIZuhVtAy55Mea\nmoa+LzZGyA5kKfI9n5rw6pbum0ZcoWvv26bB6MJsE53eRJexOu6jVjBUMBIGA1Ud\nEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFMjjW1UqCPlfPHykFupBF0DJjgAjMB8G\nA1UdIwQYMBaAFMjjW1UqCPlfPHykFupBF0DJjgAjMAoGCCqGSM49BAMCA0gAMEUC\nIQDNERoPNQ0pCa+mnU/q4ef6o/hgMZeOm6cwDVreH/79gwIgf9Xvl2FCIdUFdS5G\nv4D1ZnEJ9emNk6FETGC8NKnnUuc=\n-----END CERTIFICATE-----\n\"\335\005-----BEGIN CERTIFICATE-----\nMIIB8DCCAZagAwIBAwICA+gwCgYIKoZIzj0EAwIwVTERMA8GA1UEAwwIcGVlck9y\nZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEXMBUG\nA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTM0WhcNMTgwNDI3MTg0\nOTM0WjBVMREwDwYDVQQDDAhwZWVyT3JnMDELMAkGA1UEBhMCVVMxDDAKBgNVBAcM\nA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZMBMG\nByqGSM49AgEGCCqGSM49AwEHA0IABHoyrgAAOk5OlEGB1GCLY4eIZuhVtAy55Mea\nmoa+LzZGyA5kKfI9n5rw6pbum0ZcoWvv26bB6MJsE53eRJexOu6jVjBUMBIGA1Ud\nEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFMjjW1UqCPlfPHykFupBF0DJjgAjMB8G\nA1UdIwQYMBaAFMjjW1UqCPlfPHykFupBF0DJjgAjMAoGCCqGSM49BAMCA0gAMEUC\nIQDNERoPNQ0pCa+mnU/q4ef6o/hgMZeOm6cwDVreH/79gwIgf9Xvl2FCIdUFdS5G\nv4D1ZnEJ9emNk6FETGC8NKnnUuc=\n-----END CERTIFICATE-----\n"
- mod_policy: "Admins"
- }
- }
- policies {
- key: "Admins"
- value {
- policy {
- type: 1
- policy: "\022\010\022\006\010\001\022\002\010\000\032\016\022\014\n\010peerOrg0\020\001"
- }
- mod_policy: "Admins"
- }
- }
- policies {
- key: "Readers"
- value {
- policy {
- type: 1
- policy: "\022\010\022\006\010\001\022\002\010\000\032\014\022\n\n\010peerOrg0"
- }
- mod_policy: "Admins"
- }
- }
- policies {
- key: "Writers"
- value {
- policy {
- type: 1
- policy: "\022\010\022\006\010\001\022\002\010\000\032\014\022\n\n\010peerOrg0"
- }
- mod_policy: "Admins"
- }
- }
- }
- }
- values {
- key: "ChannelCreationPolicy"
- value {
- value: "\010\003\022\013\n\007Writers\020\001"
- mod_policy: "Admins"
- }
- }
- }
- }
- }
- }
- groups {
- key: "Orderer"
- value {
- groups {
- key: "ordererOrg0"
- value {
- values {
- key: "MSP"
- value {
- value: "\022\335\013\n\013ordererOrg0\022\345\005-----BEGIN CERTIFICATE-----\nMIIB9TCCAZygAwIBAwICA+gwCgYIKoZIzj0EAwIwWDEUMBIGA1UEAwwLb3JkZXJl\nck9yZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEX\nMBUGA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTMzWhcNMTgwNDI3\nMTg0OTMzWjBYMRQwEgYDVQQDDAtvcmRlcmVyT3JnMDELMAkGA1UEBhMCVVMxDDAK\nBgNVBAcMA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGlu\nYTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABLawQik+bOgaBNS9M74sjdw4Imqt\ng64ZdUP83144uaSHQPuUq8OYMMK/apGUSWtrorOJ2Gj9PMV+0Qs8yzeOAdWjVjBU\nMBIGA1UdEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFDRTjX3QJOAHbnREWkYokhXR\npzsGMB8GA1UdIwQYMBaAFDRTjX3QJOAHbnREWkYokhXRpzsGMAoGCCqGSM49BAMC\nA0cAMEQCIBdqKO3TZ2KLWKcDErGiOc7TWIVChFfzO4Bn9AuunU6QAiAvweATe3z1\n4CISjkUeaw8SdMSKV5GgRZCjgwzF8lLvNA==\n-----END CERTIFICATE-----\n\"\345\005-----BEGIN CERTIFICATE-----\nMIIB9TCCAZygAwIBAwICA+gwCgYIKoZIzj0EAwIwWDEUMBIGA1UEAwwLb3JkZXJl\nck9yZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEX\nMBUGA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTMzWhcNMTgwNDI3\nMTg0OTMzWjBYMRQwEgYDVQQDDAtvcmRlcmVyT3JnMDELMAkGA1UEBhMCVVMxDDAK\nBgNVBAcMA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGlu\nYTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABLawQik+bOgaBNS9M74sjdw4Imqt\ng64ZdUP83144uaSHQPuUq8OYMMK/apGUSWtrorOJ2Gj9PMV+0Qs8yzeOAdWjVjBU\nMBIGA1UdEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFDRTjX3QJOAHbnREWkYokhXR\npzsGMB8GA1UdIwQYMBaAFDRTjX3QJOAHbnREWkYokhXRpzsGMAoGCCqGSM49BAMC\nA0cAMEQCIBdqKO3TZ2KLWKcDErGiOc7TWIVChFfzO4Bn9AuunU6QAiAvweATe3z1\n4CISjkUeaw8SdMSKV5GgRZCjgwzF8lLvNA==\n-----END CERTIFICATE-----\n"
- mod_policy: "Admins"
- }
- }
- policies {
- key: "Admins"
- value {
- policy {
- type: 1
- policy: "\022\010\022\006\010\001\022\002\010\000\032\021\022\017\n\013ordererOrg0\020\001"
- }
- mod_policy: "Admins"
- }
- }
- policies {
- key: "Readers"
- value {
- policy {
- type: 1
- policy: "\022\010\022\006\010\001\022\002\010\000\032\017\022\r\n\013ordererOrg0"
- }
- mod_policy: "Admins"
- }
- }
- policies {
- key: "Writers"
- value {
- policy {
- type: 1
- policy: "\022\010\022\006\010\001\022\002\010\000\032\017\022\r\n\013ordererOrg0"
- }
- mod_policy: "Admins"
- }
- }
- }
- }
- values {
- key: "BatchSize"
- value {
- value: "\010\n\020\200\302\327/\030\200\200 "
- mod_policy: "Admins"
- }
- }
- values {
- key: "BatchTimeout"
- value {
- value: "\n\0021s"
- mod_policy: "Admins"
- }
- }
- values {
- key: "ChannelRestrictions"
- value {
- mod_policy: "Admins"
- }
- }
- values {
- key: "ConsensusType"
- value {
- value: "\n\004solo"
- mod_policy: "Admins"
- }
- }
- policies {
- key: "Admins"
- value {
- policy {
- type: 3
- policy: "\n\006Admins\020\002"
- }
- mod_policy: "Admins"
- }
- }
- policies {
- key: "BlockValidation"
- value {
- policy {
- type: 3
- policy: "\n\007Writers"
- }
- mod_policy: "Admins"
- }
- }
- policies {
- key: "Readers"
- value {
- policy {
- type: 3
- policy: "\n\007Readers"
- }
- mod_policy: "Admins"
- }
- }
- policies {
- key: "Writers"
- value {
- policy {
- type: 3
- policy: "\n\007Writers"
- }
- mod_policy: "Admins"
- }
- }
- }
- }
- values {
- key: "BlockDataHashingStructure"
- value {
- value: "\010\377\377\377\377\017"
- mod_policy: "Admins"
- }
- }
- values {
- key: "HashingAlgorithm"
- value {
- value: "\n\006SHA256"
- mod_policy: "Admins"
- }
- }
- values {
- key: "OrdererAddresses"
- value {
- value: "\n\rorderer0:7050\n\rorderer1:7050\n\rorderer2:7050"
- mod_policy: "Admins"
- }
- }
- policies {
- key: "Admins"
- value {
- policy {
- type: 3
- policy: "\n\006Admins\020\002"
- }
- mod_policy: "Admins"
- }
- }
- policies {
- key: "Readers"
- value {
- policy {
- type: 3
- policy: "\n\007Readers"
- }
- mod_policy: "Admins"
- }
- }
- policies {
- key: "Writers"
- value {
- policy {
- type: 3
- policy: "\n\007Writers"
- }
- mod_policy: "Admins"
- }
- }
- </code>
- </div>
- <div>
- <div class="scrollBox">
- <code>
- from common.configtx_pb2 import ConfigGroup
- configGroup = ConfigGroup()
- data = None
- with open('tmp/40dc98342b7a11e79ac800163e000427/ordererbootstrapadmin-orderergenesisblock-genesis-channel-config.protobuf') as f:
- data = f.read()
- configGroup.ParseFromString(data)
- </code>
- </div>
- </div></div><div id="ordererBootstrapAdmin-ordererGenesisBlock">
- <h4>User ordererBootstrapAdmin setting tag key ordererGenesisBlock to value</h4>
- </div><div>
- <a href="./ordererbootstrapadmin-orderergenesisblock.protobuf" title="ordererbootstrapadmin-orderergenesisblock.protobuf">Protobuf message in binary form</a>
- <div class="scrollBox">
- <code>
- header {
- data_hash: "\222>\031f\2510\240\233\224\001O\321\301\253W\215\300\300/1\351\032U\262 \006\212/\305\243A^"
- }
- data {
- data: "\n\253&\n\315\006\n.\010\001\020\001\032\006\010\275\372\210\310\005\" 40dc98352b7a11e79ac800163e000427\022\232\006\n\375\005\n\013ordererOrg0\022\355\005-----BEGIN CERTIFICATE-----\nMIIB+zCCAaCgAwIBAwICA+gwCgYIKoZIzj0EAwIwWDEUMBIGA1UEAwwLb3JkZXJl\nck9yZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEX\nMBUGA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTM0WhcNMTgwNDI3\nMTg0OTM0WjBiMR4wHAYDVQQDDBVvcmRlcmVyQm9vdHN0cmFwQWRtaW4xCzAJBgNV\nBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEXMBUGA1UECAwOTm9y\ndGggQ2Fyb2xpbmEwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAASP6Ncu5JUu/h3E\n16WF21+a0kAYVAl2bWqsIN6jFJz9Vzj6YkPett5qms8kgqZz7ZbCeoY32ERFSL4X\n0uD32ZE6o1AwTjAMBgNVHRMBAf8EAjAAMB0GA1UdDgQWBBTFirck6c1lBS6qkaaE\nFYO7Y8wiaTAfBgNVHSMEGDAWgBQ0U4190CTgB250RFpGKJIV0ac7BjAKBggqhkjO\nPQQDAgNJADBGAiEAgUXKeWSiMnxaUFL/+bnzh0EQmE56RqKWhEAf5gRWLUECIQDc\n+Ktmy69TTYNd8zhIdz8PXFVcip5/TUZB4Fojcvl1PA==\n-----END CERTIFICATE-----\n\022\030\034o\213\305D2\344q\271\313A\t\n\253\247U9=TO-\360l_\022\330\037\n\325\037\022\322\037\022\344\r\n\013Consortiums\022\324\r\022\321\r\n\013consortium1\022\301\r\022\212\r\n\010peerOrg0\022\375\014\032\340\013\n\003MSP\022\330\013\022\315\013\022\312\013\n\010peerOrg0\022\335\005-----BEGIN CERTIFICATE-----\nMIIB8DCCAZagAwIBAwICA+gwCgYIKoZIzj0EAwIwVTERMA8GA1UEAwwIcGVlck9y\nZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEXMBUG\nA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTM0WhcNMTgwNDI3MTg0\nOTM0WjBVMREwDwYDVQQDDAhwZWVyT3JnMDELMAkGA1UEBhMCVVMxDDAKBgNVBAcM\nA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZMBMG\nByqGSM49AgEGCCqGSM49AwEHA0IABHoyrgAAOk5OlEGB1GCLY4eIZuhVtAy55Mea\nmoa+LzZGyA5kKfI9n5rw6pbum0ZcoWvv26bB6MJsE53eRJexOu6jVjBUMBIGA1Ud\nEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFMjjW1UqCPlfPHykFupBF0DJjgAjMB8G\nA1UdIwQYMBaAFMjjW1UqCPlfPHykFupBF0DJjgAjMAoGCCqGSM49BAMCA0gAMEUC\nIQDNERoPNQ0pCa+mnU/q4ef6o/hgMZeOm6cwDVreH/79gwIgf9Xvl2FCIdUFdS5G\nv4D1ZnEJ9emNk6FETGC8NKnnUuc=\n-----END CERTIFICATE-----\n\"\335\005-----BEGIN CERTIFICATE-----\nMIIB8DCCAZagAwIBAwICA+gwCgYIKoZIzj0EAwIwVTERMA8GA1UEAwwIcGVlck9y\nZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEXMBUG\nA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTM0WhcNMTgwNDI3MTg0\nOTM0WjBVMREwDwYDVQQDDAhwZWVyT3JnMDELMAkGA1UEBhMCVVMxDDAKBgNVBAcM\nA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZMBMG\nByqGSM49AgEGCCqGSM49AwEHA0IABHoyrgAAOk5OlEGB1GCLY4eIZuhVtAy55Mea\nmoa+LzZGyA5kKfI9n5rw6pbum0ZcoWvv26bB6MJsE53eRJexOu6jVjBUMBIGA1Ud\nEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFMjjW1UqCPlfPHykFupBF0DJjgAjMB8G\nA1UdIwQYMBaAFMjjW1UqCPlfPHykFupBF0DJjgAjMAoGCCqGSM49BAMCA0gAMEUC\nIQDNERoPNQ0pCa+mnU/q4ef6o/hgMZeOm6cwDVreH/79gwIgf9Xvl2FCIdUFdS5G\nv4D1ZnEJ9emNk6FETGC8NKnnUuc=\n-----END CERTIFICATE-----\n\032\006Admins\"1\n\007Writers\022&\022\034\010\001\022\030\022\010\022\006\010\001\022\002\010\000\032\014\022\n\n\010peerOrg0\032\006Admins\"1\n\007Readers\022&\022\034\010\001\022\030\022\010\022\006\010\001\022\002\010\000\032\014\022\n\n\010peerOrg0\032\006Admins\"2\n\006Admins\022(\022\036\010\001\022\032\022\010\022\006\010\001\022\002\010\000\032\016\022\014\n\010peerOrg0\020\001\032\006Admins\0322\n\025ChannelCreationPolicy\022\031\022\017\010\003\022\013\n\007Writers\020\001\032\006Admins\022\330\017\n\007Orderer\022\314\017\022\251\r\n\013ordererOrg0\022\231\r\032\363\013\n\003MSP\022\353\013\022\340\013\022\335\013\n\013ordererOrg0\022\345\005-----BEGIN CERTIFICATE-----\nMIIB9TCCAZygAwIBAwICA+gwCgYIKoZIzj0EAwIwWDEUMBIGA1UEAwwLb3JkZXJl\nck9yZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEX\nMBUGA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTMzWhcNMTgwNDI3\nMTg0OTMzWjBYMRQwEgYDVQQDDAtvcmRlcmVyT3JnMDELMAkGA1UEBhMCVVMxDDAK\nBgNVBAcMA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGlu\nYTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABLawQik+bOgaBNS9M74sjdw4Imqt\ng64ZdUP83144uaSHQPuUq8OYMMK/apGUSWtrorOJ2Gj9PMV+0Qs8yzeOAdWjVjBU\nMBIGA1UdEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFDRTjX3QJOAHbnREWkYokhXR\npzsGMB8GA1UdIwQYMBaAFDRTjX3QJOAHbnREWkYokhXRpzsGMAoGCCqGSM49BAMC\nA0cAMEQCIBdqKO3TZ2KLWKcDErGiOc7TWIVChFfzO4Bn9AuunU6QAiAvweATe3z1\n4CISjkUeaw8SdMSKV5GgRZCjgwzF8lLvNA==\n-----END CERTIFICATE-----\n\"\345\005-----BEGIN CERTIFICATE-----\nMIIB9TCCAZygAwIBAwICA+gwCgYIKoZIzj0EAwIwWDEUMBIGA1UEAwwLb3JkZXJl\nck9yZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEX\nMBUGA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTMzWhcNMTgwNDI3\nMTg0OTMzWjBYMRQwEgYDVQQDDAtvcmRlcmVyT3JnMDELMAkGA1UEBhMCVVMxDDAK\nBgNVBAcMA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGlu\nYTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABLawQik+bOgaBNS9M74sjdw4Imqt\ng64ZdUP83144uaSHQPuUq8OYMMK/apGUSWtrorOJ2Gj9PMV+0Qs8yzeOAdWjVjBU\nMBIGA1UdEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFDRTjX3QJOAHbnREWkYokhXR\npzsGMB8GA1UdIwQYMBaAFDRTjX3QJOAHbnREWkYokhXRpzsGMAoGCCqGSM49BAMC\nA0cAMEQCIBdqKO3TZ2KLWKcDErGiOc7TWIVChFfzO4Bn9AuunU6QAiAvweATe3z1\n4CISjkUeaw8SdMSKV5GgRZCjgwzF8lLvNA==\n-----END CERTIFICATE-----\n\032\006Admins\"4\n\007Writers\022)\022\037\010\001\022\033\022\010\022\006\010\001\022\002\010\000\032\017\022\r\n\013ordererOrg0\032\006Admins\"4\n\007Readers\022)\022\037\010\001\022\033\022\010\022\006\010\001\022\002\010\000\032\017\022\r\n\013ordererOrg0\032\006Admins\"5\n\006Admins\022+\022!\010\001\022\035\022\010\022\006\010\001\022\002\010\000\032\021\022\017\n\013ordererOrg0\020\001\032\006Admins\032\"\n\tBatchSize\022\025\022\013\010\n\020\200\302\327/\030\200\200 \032\006Admins\032\037\n\023ChannelRestrictions\022\010\032\006Admins\032\036\n\014BatchTimeout\022\016\022\004\n\0021s\032\006Admins\032!\n\rConsensusType\022\020\022\006\n\004solo\032\006Admins\"\"\n\007Writers\022\027\022\r\010\003\022\t\n\007Writers\032\006Admins\"\"\n\007Readers\022\027\022\r\010\003\022\t\n\007Readers\032\006Admins\"\"\n\006Admins\022\030\022\016\010\003\022\n\n\006Admins\020\002\032\006Admins\"*\n\017BlockValidation\022\027\022\r\010\003\022\t\n\007Writers\032\006Admins\032K\n\020OrdererAddresses\0227\022-\n\rorderer0:7050\n\rorderer1:7050\n\rorderer2:7050\032\006Admins\032&\n\020HashingAlgorithm\022\022\022\010\n\006SHA256\032\006Admins\032-\n\031BlockDataHashingStructure\022\020\022\006\010\377\377\377\377\017\032\006Admins\"\"\n\007Writers\022\027\022\r\010\003\022\t\n\007Writers\032\006Admins\"\"\n\007Readers\022\027\022\r\010\003\022\t\n\007Readers\032\006Admins\"\"\n\006Admins\022\030\022\016\010\003\022\n\n\006Admins\020\002\032\006Admins\022G0E\002!\000\233w\314\366\255\226q[\n\026\331\366w\254\203\225Rn\021{|f\202R\261~\265\232o\356\324Q\002 [\347\025\254>\031\016{\013\347\030\262\022`\3573\024\031Ns\303\004[\360\352a\321n\241J\243\265"
- }
- metadata {
- metadata: ""
- metadata: ""
- metadata: ""
- metadata: ""
- }
- </code>
- </div>
- <div>
- <div class="scrollBox">
- <code>
- from common.common_pb2 import Block
- block = Block()
- data = None
- with open('tmp/40dc98342b7a11e79ac800163e000427/ordererbootstrapadmin-orderergenesisblock.protobuf') as f:
- data = f.read()
- block.ParseFromString(data)
- </code>
- </div>
- </div></div><div id="ordererBootstrapAdmin-ConsensusType">
- <h4>User ordererBootstrapAdmin setting tag key ConsensusType to value</h4>
- </div><div class="scrollBox">
- <code>
- solo
- </code>
- </div><div id="Step 9">
- <h2>Step 9</h2>
- <hr/>
- <h3>And the orderer admins inspect and approve the genesis block for chain "OrdererSystemChainId"</h3>
- </div><div id="Step 10">
- <h2>Step 10</h2>
- <hr/>
- <h3>And the orderer admins use the genesis block for chain "OrdererSystemChainId" to configure orderers</h3>
- </div><div id="Step 11">
- <h2>Step 11</h2>
- <hr/>
- <h3>And user requests role for peer by creating a key and csr for peer and acquires signed certificate from organization</h3>
- <table>
- <tr>
- <th>User</th>
- <th>Peer</th>
- <th>Organization</th>
- <th>AliasSavedUnder</th>
- </tr>
- <tr>
- <td>peer0Signer</td>
- <td>peer0</td>
- <td>peerOrg0</td>
- <td></td>
- </tr>
- <tr>
- <td>peer1Signer</td>
- <td>peer1</td>
- <td>peerOrg0</td>
- <td></td>
- </tr>
- <tr>
- <td>peer2Signer</td>
- <td>peer2</td>
- <td>peerOrg0</td>
- <td></td>
- </tr>
- <tr>
- <td>peer3Signer</td>
- <td>peer3</td>
- <td>peerOrg0</td>
- <td></td>
- </tr>
- <tr>
- <td>peer0Admin</td>
- <td>peer0</td>
- <td>peerOrg0</td>
- <td>peer-admin-cert</td>
- </tr>
- <tr>
- <td>peer1Admin</td>
- <td>peer1</td>
- <td>peerOrg0</td>
- <td>peer-admin-cert</td>
- </tr>
- <tr>
- <td>peer2Admin</td>
- <td>peer2</td>
- <td>peerOrg0</td>
- <td>peer-admin-cert</td>
- </tr>
- <tr>
- <td>peer3Admin</td>
- <td>peer3</td>
- <td>peerOrg0</td>
- <td>peer-admin-cert</td>
- </tr>
- </table>
- </div><div id="peer0Signer">
- <h4>Created new user peer0Signer with <a href="./dir-user-peer0signer-privatekey.pem">private key</a></h4>
- <code>-----BEGIN EC PRIVATE KEY-----
- MHcCAQEEIHYjlKtT6926f+2N9HwxK0m0J6ZKRJrp8zgeTjsjBGt6oAoGCCqGSM49
- AwEHoUQDQgAEnL1Qr6he4ZJulvOBlTrhpWnsuwyOTvkKxwyMHkhoPZ1SXZaZwsZ4
- C0GpsfIxYaNzYlGx4Iqe61uA/CeSb1QIFg==
- -----END EC PRIVATE KEY-----
- </code>
- </div><div>
- <h4>Created new named node admin tuple: NodeAdminTuple(user=u'peer0Signer', nodeName=u'peer0', organization=u'peerOrg0')</h4>
- </div><div class="scrollBox">
- <code>
- -----BEGIN CERTIFICATE-----
- MIIB6DCCAY2gAwIBAwICA+gwCgYIKoZIzj0EAwIwVTERMA8GA1UEAwwIcGVlck9y
- ZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEXMBUG
- A1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTM0WhcNMTgwNDI3MTg0
- OTM0WjBSMQ4wDAYDVQQDDAVwZWVyMDELMAkGA1UEBhMCVVMxDDAKBgNVBAcMA1JU
- UDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZMBMGByqG
- SM49AgEGCCqGSM49AwEHA0IABJy9UK+oXuGSbpbzgZU64aVp7LsMjk75CscMjB5I
- aD2dUl2WmcLGeAtBqbHyMWGjc2JRseCKnutbgPwnkm9UCBajUDBOMAwGA1UdEwEB
- /wQCMAAwHQYDVR0OBBYEFPtBGBSCzm6QkrZH6e/mCSa2M9PrMB8GA1UdIwQYMBaA
- FMjjW1UqCPlfPHykFupBF0DJjgAjMAoGCCqGSM49BAMCA0kAMEYCIQDvOHWvdVLz
- OOOO6zVzlTlnpx7l3tnFYENIX3bPx0mMWwIhANWacbcNaErmH+AO7iSpTEG0+yOv
- ricFnKdPqNrYWOOK
- -----END CERTIFICATE-----
- </code>
- </div><div id="peer1Signer">
- <h4>Created new user peer1Signer with <a href="./dir-user-peer1signer-privatekey.pem">private key</a></h4>
- <code>-----BEGIN EC PRIVATE KEY-----
- MHcCAQEEIDp95qas/9sscmhVI1U3DAnx0xDm3obaEOshxE9gcu82oAoGCCqGSM49
- AwEHoUQDQgAEi0dKGDsrQPbp2qfurgWvlDO7riwJkIBNe0HQrM5XkSmzuHRS1X8k
- +LtkKLCRmjNH/n9pskN/Q3sOxCI+WwhEGw==
- -----END EC PRIVATE KEY-----
- </code>
- </div><div>
- <h4>Created new named node admin tuple: NodeAdminTuple(user=u'peer1Signer', nodeName=u'peer1', organization=u'peerOrg0')</h4>
- </div><div class="scrollBox">
- <code>
- -----BEGIN CERTIFICATE-----
- MIIB5jCCAY2gAwIBAwICA+gwCgYIKoZIzj0EAwIwVTERMA8GA1UEAwwIcGVlck9y
- ZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEXMBUG
- A1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTM1WhcNMTgwNDI3MTg0
- OTM1WjBSMQ4wDAYDVQQDDAVwZWVyMTELMAkGA1UEBhMCVVMxDDAKBgNVBAcMA1JU
- UDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZMBMGByqG
- SM49AgEGCCqGSM49AwEHA0IABItHShg7K0D26dqn7q4Fr5Qzu64sCZCATXtB0KzO
- V5Eps7h0UtV/JPi7ZCiwkZozR/5/abJDf0N7DsQiPlsIRBujUDBOMAwGA1UdEwEB
- /wQCMAAwHQYDVR0OBBYEFP6sIl84LZgg3VHNciGVV3Rap2pfMB8GA1UdIwQYMBaA
- FMjjW1UqCPlfPHykFupBF0DJjgAjMAoGCCqGSM49BAMCA0cAMEQCIGqXT5wDGoOS
- IwEbrtSk9CHXYQyTO3Uoe/zzRYWqZ+tDAiAoBV/uQOI0G49nBtVtWCv4wVtBoTYS
- HImiP797V9l6ZQ==
- -----END CERTIFICATE-----
- </code>
- </div><div id="peer2Signer">
- <h4>Created new user peer2Signer with <a href="./dir-user-peer2signer-privatekey.pem">private key</a></h4>
- <code>-----BEGIN EC PRIVATE KEY-----
- MHcCAQEEIDuWl51KocFZf5p/bOc2Ou9DHn+IFPaLjADF3wLHvriOoAoGCCqGSM49
- AwEHoUQDQgAEPRPw5e9rtFRBDljroEk5eFZH59EmAj64lx6Zm7wvF6O8w8JMh7++
- o4kYKAAVgGwQS79QBEgI4WTrzySwcSUqaA==
- -----END EC PRIVATE KEY-----
- </code>
- </div><div>
- <h4>Created new named node admin tuple: NodeAdminTuple(user=u'peer2Signer', nodeName=u'peer2', organization=u'peerOrg0')</h4>
- </div><div class="scrollBox">
- <code>
- -----BEGIN CERTIFICATE-----
- MIIB5zCCAY2gAwIBAwICA+gwCgYIKoZIzj0EAwIwVTERMA8GA1UEAwwIcGVlck9y
- ZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEXMBUG
- A1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTM1WhcNMTgwNDI3MTg0
- OTM1WjBSMQ4wDAYDVQQDDAVwZWVyMjELMAkGA1UEBhMCVVMxDDAKBgNVBAcMA1JU
- UDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZMBMGByqG
- SM49AgEGCCqGSM49AwEHA0IABD0T8OXva7RUQQ5Y66BJOXhWR+fRJgI+uJcemZu8
- LxejvMPCTIe/vqOJGCgAFYBsEEu/UARICOFk688ksHElKmijUDBOMAwGA1UdEwEB
- /wQCMAAwHQYDVR0OBBYEFKin2+gnq87xKAR+ipKYcsJS3rTUMB8GA1UdIwQYMBaA
- FMjjW1UqCPlfPHykFupBF0DJjgAjMAoGCCqGSM49BAMCA0gAMEUCIBk2lroR3Q8b
- xxLGeCjwY7TIPO5rONr4KGG6mOiLHIoZAiEAy9rZZ2i5oLtkxHaScy18I+9paj2u
- MFB4/f++r6yDDi8=
- -----END CERTIFICATE-----
- </code>
- </div><div id="peer3Signer">
- <h4>Created new user peer3Signer with <a href="./dir-user-peer3signer-privatekey.pem">private key</a></h4>
- <code>-----BEGIN EC PRIVATE KEY-----
- MHcCAQEEIIAVypc6oKH4+C3NYKwzz/UA7PASSOtdWy3mM+xxAW9GoAoGCCqGSM49
- AwEHoUQDQgAEf8M67Sc9P8Jfvpzk0tlZuXx2ma0F1bLEtHcN6X0Wwi7UWsUYj7Uq
- 4XXFl9NB3Wkyp8y0gXP2I3TjtOTvJC7G5g==
- -----END EC PRIVATE KEY-----
- </code>
- </div><div>
- <h4>Created new named node admin tuple: NodeAdminTuple(user=u'peer3Signer', nodeName=u'peer3', organization=u'peerOrg0')</h4>
- </div><div class="scrollBox">
- <code>
- -----BEGIN CERTIFICATE-----
- MIIB5zCCAY2gAwIBAwICA+gwCgYIKoZIzj0EAwIwVTERMA8GA1UEAwwIcGVlck9y
- ZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEXMBUG
- A1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTM1WhcNMTgwNDI3MTg0
- OTM1WjBSMQ4wDAYDVQQDDAVwZWVyMzELMAkGA1UEBhMCVVMxDDAKBgNVBAcMA1JU
- UDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZMBMGByqG
- SM49AgEGCCqGSM49AwEHA0IABH/DOu0nPT/CX76c5NLZWbl8dpmtBdWyxLR3Del9
- FsIu1FrFGI+1KuF1xZfTQd1pMqfMtIFz9iN047Tk7yQuxuajUDBOMAwGA1UdEwEB
- /wQCMAAwHQYDVR0OBBYEFIYo30F+UeBuLlWYOqkRh3JAYpZsMB8GA1UdIwQYMBaA
- FMjjW1UqCPlfPHykFupBF0DJjgAjMAoGCCqGSM49BAMCA0gAMEUCICasZcI4qCVc
- e7XQV6eQFZ/UwyACO3ADpn2HwvA7AQBmAiEA1BMBiAu0X9FgLOaYyXB4h8grSP52
- ngI3UuzTdHbNTTA=
- -----END CERTIFICATE-----
- </code>
- </div><div id="peer0Admin">
- <h4>Created new user peer0Admin with <a href="./dir-user-peer0admin-privatekey.pem">private key</a></h4>
- <code>-----BEGIN EC PRIVATE KEY-----
- MHcCAQEEIDxnCCZcsV5kP4k8m4aW/yU77ly5zr4/zUxX/Cuj4qxroAoGCCqGSM49
- AwEHoUQDQgAEzEgoPnl2sVbHogW+hL7eDZ2ACp4U4zQ6ksSwYuq7HntoKRAs8Qfm
- VkYt4gKIvSwjaXpiKZEiWhWrOQD+Bkd9yQ==
- -----END EC PRIVATE KEY-----
- </code>
- </div><div>
- <h4>Created new named node admin tuple: NodeAdminTuple(user=u'peer0Admin', nodeName=u'peer0', organization=u'peerOrg0')</h4>
- </div><div class="scrollBox">
- <code>
- -----BEGIN CERTIFICATE-----
- MIIB5zCCAY2gAwIBAwICA+gwCgYIKoZIzj0EAwIwVTERMA8GA1UEAwwIcGVlck9y
- ZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEXMBUG
- A1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTM1WhcNMTgwNDI3MTg0
- OTM1WjBSMQ4wDAYDVQQDDAVwZWVyMDELMAkGA1UEBhMCVVMxDDAKBgNVBAcMA1JU
- UDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZMBMGByqG
- SM49AgEGCCqGSM49AwEHA0IABMxIKD55drFWx6IFvoS+3g2dgAqeFOM0OpLEsGLq
- ux57aCkQLPEH5lZGLeICiL0sI2l6YimRIloVqzkA/gZHfcmjUDBOMAwGA1UdEwEB
- /wQCMAAwHQYDVR0OBBYEFBa9PAITNqPCrAxIOR+pCaNRUiHeMB8GA1UdIwQYMBaA
- FMjjW1UqCPlfPHykFupBF0DJjgAjMAoGCCqGSM49BAMCA0gAMEUCIQCgF2WFUsoy
- SxxYKKRR9yS4dcQKhjAgGLo8UX3ug0MGawIgfRY4+LwPDnLv0FRx3Hwmjw9Z+PDf
- 8VY/zoZZcWzM3u0=
- -----END CERTIFICATE-----
- </code>
- </div><div id="peer0Admin-peer-admin-cert">
- <h4>User peer0Admin setting tag key peer-admin-cert to value</h4>
- </div><div class="scrollBox">
- <code>
- NodeAdminTuple(user=u'peer0Admin', nodeName=u'peer0', organization=u'peerOrg0')
- </code>
- </div><div id="peer1Admin">
- <h4>Created new user peer1Admin with <a href="./dir-user-peer1admin-privatekey.pem">private key</a></h4>
- <code>-----BEGIN EC PRIVATE KEY-----
- MHcCAQEEIJysKvQcUhHd6ZoN+sR8dFsJ8fgh3zLPNMS0UPvijcLUoAoGCCqGSM49
- AwEHoUQDQgAEN+mkCvhPd2W+TS5+YK5H/4K/MEpBWKgZyAAMrv7xaO9kWnNDZHMA
- bJMjJ1vXj+X6EM2njfCTW9/x0ny/CDQjHg==
- -----END EC PRIVATE KEY-----
- </code>
- </div><div>
- <h4>Created new named node admin tuple: NodeAdminTuple(user=u'peer1Admin', nodeName=u'peer1', organization=u'peerOrg0')</h4>
- </div><div class="scrollBox">
- <code>
- -----BEGIN CERTIFICATE-----
- MIIB5zCCAY2gAwIBAwICA+gwCgYIKoZIzj0EAwIwVTERMA8GA1UEAwwIcGVlck9y
- ZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEXMBUG
- A1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTM2WhcNMTgwNDI3MTg0
- OTM2WjBSMQ4wDAYDVQQDDAVwZWVyMTELMAkGA1UEBhMCVVMxDDAKBgNVBAcMA1JU
- UDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZMBMGByqG
- SM49AgEGCCqGSM49AwEHA0IABDfppAr4T3dlvk0ufmCuR/+CvzBKQVioGcgADK7+
- 8WjvZFpzQ2RzAGyTIydb14/l+hDNp43wk1vf8dJ8vwg0Ix6jUDBOMAwGA1UdEwEB
- /wQCMAAwHQYDVR0OBBYEFM3Wj2f6wA6snCM1GTFZkmesWTSBMB8GA1UdIwQYMBaA
- FMjjW1UqCPlfPHykFupBF0DJjgAjMAoGCCqGSM49BAMCA0gAMEUCIAzqajN4XFRz
- TOj2CK39lF7Vx3/uPla9ooPIJjgJGjU4AiEA4dHn2KtDImCVCwo0Zja5Skefm0Cz
- hYWuSt0qeCXw1FY=
- -----END CERTIFICATE-----
- </code>
- </div><div id="peer1Admin-peer-admin-cert">
- <h4>User peer1Admin setting tag key peer-admin-cert to value</h4>
- </div><div class="scrollBox">
- <code>
- NodeAdminTuple(user=u'peer1Admin', nodeName=u'peer1', organization=u'peerOrg0')
- </code>
- </div><div id="peer2Admin">
- <h4>Created new user peer2Admin with <a href="./dir-user-peer2admin-privatekey.pem">private key</a></h4>
- <code>-----BEGIN EC PRIVATE KEY-----
- MHcCAQEEIJ9EIVADhVNQLoUGifENjIeT7WvSaY9H4fF2hYEmvf3zoAoGCCqGSM49
- AwEHoUQDQgAEV4V1gkuBwq4pc4olF9RAicthfUsjg6yVLODd5xYrgTYb5LY2Dx5X
- anajp1qS0Zkxaf+lfyZK1kCgeAdL9fjtMw==
- -----END EC PRIVATE KEY-----
- </code>
- </div><div>
- <h4>Created new named node admin tuple: NodeAdminTuple(user=u'peer2Admin', nodeName=u'peer2', organization=u'peerOrg0')</h4>
- </div><div class="scrollBox">
- <code>
- -----BEGIN CERTIFICATE-----
- MIIB6DCCAY2gAwIBAwICA+gwCgYIKoZIzj0EAwIwVTERMA8GA1UEAwwIcGVlck9y
- ZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEXMBUG
- A1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTM2WhcNMTgwNDI3MTg0
- OTM2WjBSMQ4wDAYDVQQDDAVwZWVyMjELMAkGA1UEBhMCVVMxDDAKBgNVBAcMA1JU
- UDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZMBMGByqG
- SM49AgEGCCqGSM49AwEHA0IABFeFdYJLgcKuKXOKJRfUQInLYX1LI4OslSzg3ecW
- K4E2G+S2Ng8eV2p2o6daktGZMWn/pX8mStZAoHgHS/X47TOjUDBOMAwGA1UdEwEB
- /wQCMAAwHQYDVR0OBBYEFBQXXCr+x0jRBznXUn9fyV1fnAoMMB8GA1UdIwQYMBaA
- FMjjW1UqCPlfPHykFupBF0DJjgAjMAoGCCqGSM49BAMCA0kAMEYCIQCuEXbVSwwK
- x3bv9/jJZzEF1oFDah9V59U+XEyugk7XTwIhANmrlxI+R6VhhSq1tNj2X0ewaROx
- JvWYaNzp9maPSwvy
- -----END CERTIFICATE-----
- </code>
- </div><div id="peer2Admin-peer-admin-cert">
- <h4>User peer2Admin setting tag key peer-admin-cert to value</h4>
- </div><div class="scrollBox">
- <code>
- NodeAdminTuple(user=u'peer2Admin', nodeName=u'peer2', organization=u'peerOrg0')
- </code>
- </div><div id="peer3Admin">
- <h4>Created new user peer3Admin with <a href="./dir-user-peer3admin-privatekey.pem">private key</a></h4>
- <code>-----BEGIN EC PRIVATE KEY-----
- MHcCAQEEIKp8+XtRG/LKeG861lXpQrRnNXiJ+WRroijDKeiGUn6YoAoGCCqGSM49
- AwEHoUQDQgAENHXdUR+VmDsjCEOduTYlvnq2Pj//VQe6kqjgAxFBwvY6GD+2RpO7
- OLmZyjALvRmAaWLs1WWxVblBk19yEyTPTQ==
- -----END EC PRIVATE KEY-----
- </code>
- </div><div>
- <h4>Created new named node admin tuple: NodeAdminTuple(user=u'peer3Admin', nodeName=u'peer3', organization=u'peerOrg0')</h4>
- </div><div class="scrollBox">
- <code>
- -----BEGIN CERTIFICATE-----
- MIIB5zCCAY2gAwIBAwICA+gwCgYIKoZIzj0EAwIwVTERMA8GA1UEAwwIcGVlck9y
- ZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEXMBUG
- A1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTM2WhcNMTgwNDI3MTg0
- OTM2WjBSMQ4wDAYDVQQDDAVwZWVyMzELMAkGA1UEBhMCVVMxDDAKBgNVBAcMA1JU
- UDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZMBMGByqG
- SM49AgEGCCqGSM49AwEHA0IABDR13VEflZg7IwhDnbk2Jb56tj4//1UHupKo4AMR
- QcL2Ohg/tkaTuzi5mcowC70ZgGli7NVlsVW5QZNfchMkz02jUDBOMAwGA1UdEwEB
- /wQCMAAwHQYDVR0OBBYEFFU9pbjNkxgQ0/PQG4GV/5PrkUGQMB8GA1UdIwQYMBaA
- FMjjW1UqCPlfPHykFupBF0DJjgAjMAoGCCqGSM49BAMCA0gAMEUCIGw0WJ3+otqZ
- t5bEtMqbACZUi/XkXmTuLoNQo53kqHptAiEAk0Dg2aNI5JCdCaC9YkKLcbbTnJ7O
- T2FvUoHwEFmDh3k=
- -----END CERTIFICATE-----
- </code>
- </div><div id="peer3Admin-peer-admin-cert">
- <h4>User peer3Admin setting tag key peer-admin-cert to value</h4>
- </div><div class="scrollBox">
- <code>
- NodeAdminTuple(user=u'peer3Admin', nodeName=u'peer3', organization=u'peerOrg0')
- </code>
- </div><div id="Step 12">
- <h2>Step 12</h2>
- <hr/>
- <h3>And we compose "docker-compose-next-4.yml"</h3>
- </div><div class="scrollBox">
- <code>
- COMPOSE_PROJECT_NAME=40dc98342b7a11e79ac800163e000427 CORE_PEER_NETWORKID=40dc98342b7a11e79ac800163e000427 ORDERER0_ORDERER_GENERAL_LOCALMSPDIR=/var/hyperledger/bddtests/volumes/orderer/40dc98342b7a11e79ac800163e000427/orderer0/localMspConfig ORDERER0_ORDERER_GENERAL_LOCALMSPID=ordererOrg0 ORDERER0_ORDERER_GENERAL_TLS_CERTIFICATE=/var/hyperledger/bddtests/volumes/orderer/40dc98342b7a11e79ac800163e000427/orderer0/tls_config/orderer0Signer-orderer0-ordererOrg0-tls.crt ORDERER0_ORDERER_GENERAL_TLS_PRIVATEKEY=/var/hyperledger/bddtests/volumes/orderer/40dc98342b7a11e79ac800163e000427/orderer0/tls_config/orderer0Signer-orderer0-ordererOrg0-tls.key ORDERER_GENERAL_GENESISFILE=/var/hyperledger/bddtests/volumes/orderer/40dc98342b7a11e79ac800163e000427/genesis_file ORDERER_GENERAL_GENESISMETHOD=file PEER0_CORE_PEER_LOCALMSPID=peerOrg0 PEER0_CORE_PEER_MSPCONFIGPATH=/var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer0/localMspConfig PEER0_CORE_PEER_TLS_CERT_FILE=/var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer0/tls_config/peer0Signer-peer0-peerOrg0-tls.crt PEER0_CORE_PEER_TLS_KEY_FILE=/var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer0/tls_config/peer0Signer-peer0-peerOrg0-tls.key PEER0_CORE_PEER_TLS_ROOTCERT_FILE=/var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer0/localMspConfig/cacerts/peerOrg0.pem PEER0_CORE_PEER_TLS_SERVERHOSTOVERRIDE=peer0 PEER1_CORE_PEER_LOCALMSPID=peerOrg0 PEER1_CORE_PEER_MSPCONFIGPATH=/var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer1/localMspConfig PEER1_CORE_PEER_TLS_CERT_FILE=/var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer1/tls_config/peer1Signer-peer1-peerOrg0-tls.crt PEER1_CORE_PEER_TLS_KEY_FILE=/var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer1/tls_config/peer1Signer-peer1-peerOrg0-tls.key PEER1_CORE_PEER_TLS_ROOTCERT_FILE=/var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer1/localMspConfig/cacerts/peerOrg0.pem PEER1_CORE_PEER_TLS_SERVERHOSTOVERRIDE=peer1 PEER2_CORE_PEER_LOCALMSPID=peerOrg0 PEER2_CORE_PEER_MSPCONFIGPATH=/var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer2/localMspConfig PEER2_CORE_PEER_TLS_CERT_FILE=/var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer2/tls_config/peer2Signer-peer2-peerOrg0-tls.crt PEER2_CORE_PEER_TLS_KEY_FILE=/var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer2/tls_config/peer2Signer-peer2-peerOrg0-tls.key PEER2_CORE_PEER_TLS_ROOTCERT_FILE=/var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer2/localMspConfig/cacerts/peerOrg0.pem PEER2_CORE_PEER_TLS_SERVERHOSTOVERRIDE=peer2 PEER3_CORE_PEER_LOCALMSPID=peerOrg0 PEER3_CORE_PEER_MSPCONFIGPATH=/var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer3/localMspConfig PEER3_CORE_PEER_TLS_CERT_FILE=/var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer3/tls_config/peer3Signer-peer3-peerOrg0-tls.crt PEER3_CORE_PEER_TLS_KEY_FILE=/var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer3/tls_config/peer3Signer-peer3-peerOrg0-tls.key PEER3_CORE_PEER_TLS_ROOTCERT_FILE=/var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer3/localMspConfig/cacerts/peerOrg0.pem PEER3_CORE_PEER_TLS_SERVERHOSTOVERRIDE=peer3 docker-compose -f docker-compose-next-4.yml config
- </code>
- </div><div>
- <h4>Configuration</h4>
- </div><div class="scrollBox">
- <code>
- networks: {}
- services:
- orderer0:
- command: orderer
- environment:
- CONFIGTX_ORDERER_ORDERERTYPE: solo
- ORDERER_GENERAL_BATCHSIZE: '10'
- ORDERER_GENERAL_BATCHTIMEOUT: 10s
- ORDERER_GENERAL_GENESISFILE: /var/hyperledger/bddtests/volumes/orderer/40dc98342b7a11e79ac800163e000427/genesis_file
- ORDERER_GENERAL_GENESISMETHOD: file
- ORDERER_GENERAL_LEDGERTYPE: ram
- ORDERER_GENERAL_LISTENADDRESS: 0.0.0.0
- ORDERER_GENERAL_LISTENPORT: '7050'
- ORDERER_GENERAL_LOCALMSPDIR: /var/hyperledger/bddtests/volumes/orderer/40dc98342b7a11e79ac800163e000427/orderer0/localMspConfig
- ORDERER_GENERAL_LOCALMSPID: ordererOrg0
- ORDERER_GENERAL_LOGLEVEL: debug
- ORDERER_GENERAL_MAXWINDOWSIZE: '1000'
- ORDERER_GENERAL_QUEUESIZE: '1000'
- ORDERER_GENERAL_TLS_CERTIFICATE: /var/hyperledger/bddtests/volumes/orderer/40dc98342b7a11e79ac800163e000427/orderer0/tls_config/orderer0Signer-orderer0-ordererOrg0-tls.crt
- ORDERER_GENERAL_TLS_ENABLED: 'true'
- ORDERER_GENERAL_TLS_PRIVATEKEY: /var/hyperledger/bddtests/volumes/orderer/40dc98342b7a11e79ac800163e000427/orderer0/tls_config/orderer0Signer-orderer0-ordererOrg0-tls.key
- ORDERER_GENERAL_TLS_ROOTCAS: ''
- ORDERER_RAMLEDGER_HISTORY_SIZE: '100'
- image: hyperledger/fabric-orderer
- ports:
- - 7050/tcp
- volumes:
- - /home/fabric/gopath/src/github.com/hyperledger/fabric/bddtests/volumes/orderer:/var/hyperledger/bddtests/volumes/orderer:rw
- working_dir: /opt/gopath/src/github.com/hyperledger/fabric/orderer
- peer0:
- command: peer node start --peer-defaultchain=false
- depends_on:
- - orderer0
- environment:
- CORE_LOGGING_LEVEL: DEBUG
- CORE_NEXT: 'true'
- CORE_PEER_ADDRESSAUTODETECT: 'true'
- CORE_PEER_COMMITTER_LEDGER_ORDERER: orderer0:7050
- CORE_PEER_ENDORSER_ENABLED: 'true'
- CORE_PEER_GOSSIP_BOOTSTRAP: peer1:7051
- CORE_PEER_GOSSIP_ORGLEADER: 'false'
- CORE_PEER_GOSSIP_SKIPHANDSHAKE: 'true'
- CORE_PEER_GOSSIP_USELEADERELECTION: 'true'
- CORE_PEER_ID: vp0
- CORE_PEER_LOCALMSPID: peerOrg0
- CORE_PEER_MSPCONFIGPATH: /var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer0/localMspConfig
- CORE_PEER_NETWORKID: 40dc98342b7a11e79ac800163e000427
- CORE_PEER_PROFILE_ENABLED: 'true'
- CORE_PEER_TLS_CERT_FILE: /var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer0/tls_config/peer0Signer-peer0-peerOrg0-tls.crt
- CORE_PEER_TLS_ENABLED: 'true'
- CORE_PEER_TLS_KEY_FILE: /var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer0/tls_config/peer0Signer-peer0-peerOrg0-tls.key
- CORE_PEER_TLS_ROOTCERT_FILE: /var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer0/localMspConfig/cacerts/peerOrg0.pem
- CORE_PEER_TLS_SERVERHOSTOVERRIDE: peer0
- image: hyperledger/fabric-peer
- ports:
- - 7051/tcp
- - 7053/tcp
- volumes:
- - /home/fabric/gopath/src/github.com/hyperledger/fabric/bddtests/volumes/peer:/var/hyperledger/bddtests/volumes/peer:rw
- - /var/run/docker.sock:/var/run/docker.sock:rw
- peer1:
- command: peer node start --peer-defaultchain=false
- depends_on:
- - orderer0
- - peer0
- environment:
- CORE_LOGGING_LEVEL: DEBUG
- CORE_NEXT: 'true'
- CORE_PEER_ADDRESSAUTODETECT: 'true'
- CORE_PEER_COMMITTER_LEDGER_ORDERER: orderer0:7050
- CORE_PEER_ENDORSER_ENABLED: 'true'
- CORE_PEER_GOSSIP_BOOTSTRAP: peer0:7051
- CORE_PEER_GOSSIP_ORGLEADER: 'false'
- CORE_PEER_GOSSIP_SKIPHANDSHAKE: 'true'
- CORE_PEER_GOSSIP_USELEADERELECTION: 'true'
- CORE_PEER_ID: vp1
- CORE_PEER_LOCALMSPID: peerOrg0
- CORE_PEER_MSPCONFIGPATH: /var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer1/localMspConfig
- CORE_PEER_NETWORKID: 40dc98342b7a11e79ac800163e000427
- CORE_PEER_TLS_CERT_FILE: /var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer1/tls_config/peer1Signer-peer1-peerOrg0-tls.crt
- CORE_PEER_TLS_ENABLED: 'true'
- CORE_PEER_TLS_KEY_FILE: /var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer1/tls_config/peer1Signer-peer1-peerOrg0-tls.key
- CORE_PEER_TLS_ROOTCERT_FILE: /var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer1/localMspConfig/cacerts/peerOrg0.pem
- CORE_PEER_TLS_SERVERHOSTOVERRIDE: peer1
- image: hyperledger/fabric-peer
- ports:
- - 7051/tcp
- - 7053/tcp
- volumes:
- - /home/fabric/gopath/src/github.com/hyperledger/fabric/bddtests/volumes/peer:/var/hyperledger/bddtests/volumes/peer:rw
- - /var/run/docker.sock:/var/run/docker.sock:rw
- peer2:
- command: peer node start --peer-defaultchain=false
- depends_on:
- - orderer0
- - peer0
- environment:
- CORE_LOGGING_LEVEL: DEBUG
- CORE_NEXT: 'true'
- CORE_PEER_ADDRESSAUTODETECT: 'true'
- CORE_PEER_COMMITTER_LEDGER_ORDERER: orderer0:7050
- CORE_PEER_ENDORSER_ENABLED: 'true'
- CORE_PEER_GOSSIP_BOOTSTRAP: peer3:7051
- CORE_PEER_GOSSIP_ORGLEADER: 'false'
- CORE_PEER_GOSSIP_SKIPHANDSHAKE: 'true'
- CORE_PEER_GOSSIP_USELEADERELECTION: 'true'
- CORE_PEER_ID: vp2
- CORE_PEER_LOCALMSPID: peerOrg0
- CORE_PEER_MSPCONFIGPATH: /var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer2/localMspConfig
- CORE_PEER_NETWORKID: 40dc98342b7a11e79ac800163e000427
- CORE_PEER_TLS_CERT_FILE: /var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer2/tls_config/peer2Signer-peer2-peerOrg0-tls.crt
- CORE_PEER_TLS_ENABLED: 'true'
- CORE_PEER_TLS_KEY_FILE: /var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer2/tls_config/peer2Signer-peer2-peerOrg0-tls.key
- CORE_PEER_TLS_ROOTCERT_FILE: /var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer2/localMspConfig/cacerts/peerOrg0.pem
- CORE_PEER_TLS_SERVERHOSTOVERRIDE: peer2
- image: hyperledger/fabric-peer
- ports:
- - 7051/tcp
- - 7053/tcp
- volumes:
- - /home/fabric/gopath/src/github.com/hyperledger/fabric/bddtests/volumes/peer:/var/hyperledger/bddtests/volumes/peer:rw
- - /var/run/docker.sock:/var/run/docker.sock:rw
- peer3:
- command: peer node start --peer-defaultchain=false
- depends_on:
- - orderer0
- - peer0
- environment:
- CORE_LOGGING_LEVEL: DEBUG
- CORE_NEXT: 'true'
- CORE_PEER_ADDRESSAUTODETECT: 'true'
- CORE_PEER_COMMITTER_LEDGER_ORDERER: orderer0:7050
- CORE_PEER_ENDORSER_ENABLED: 'true'
- CORE_PEER_GOSSIP_BOOTSTRAP: peer2:7051
- CORE_PEER_GOSSIP_ORGLEADER: 'false'
- CORE_PEER_GOSSIP_SKIPHANDSHAKE: 'true'
- CORE_PEER_GOSSIP_USELEADERELECTION: 'true'
- CORE_PEER_ID: vp3
- CORE_PEER_LOCALMSPID: peerOrg0
- CORE_PEER_MSPCONFIGPATH: /var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer3/localMspConfig
- CORE_PEER_NETWORKID: 40dc98342b7a11e79ac800163e000427
- CORE_PEER_TLS_CERT_FILE: /var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer3/tls_config/peer3Signer-peer3-peerOrg0-tls.crt
- CORE_PEER_TLS_ENABLED: 'true'
- CORE_PEER_TLS_KEY_FILE: /var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer3/tls_config/peer3Signer-peer3-peerOrg0-tls.key
- CORE_PEER_TLS_ROOTCERT_FILE: /var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer3/localMspConfig/cacerts/peerOrg0.pem
- CORE_PEER_TLS_SERVERHOSTOVERRIDE: peer3
- image: hyperledger/fabric-peer
- ports:
- - 7051/tcp
- - 7053/tcp
- volumes:
- - /home/fabric/gopath/src/github.com/hyperledger/fabric/bddtests/volumes/peer:/var/hyperledger/bddtests/volumes/peer:rw
- - /var/run/docker.sock:/var/run/docker.sock:rw
- version: '2.0'
- volumes: {}
- </code>
- </div><div>
- <h4>Network Graph</h4>
- </div><style>
- .links line {
- stroke: #999;
- stroke-opacity: 0.6;
- }
- .nodes circle {
- stroke: #fff;
- stroke-width: 1.5px;
- }
- </style>
- <div>
- <svg width="860" height="700"></svg>
- </div>
- <script src="https://d3js.org/d3.v4.min.js"></script>
- <script>
- var svg = d3.select("svg"),
- width = +svg.attr("width"),
- height = +svg.attr("height");
- var color = d3.scaleOrdinal(d3.schemeCategory20);
- var simulation = d3.forceSimulation()
- .force("link", d3.forceLink().id(function(d) { return d.id; }).distance(function(d) {
- if (d.source.id.indexOf("peer") === 0 && d.target.id.indexOf("orderer") === 0) {
- return 200} else return 50}))
- .force("charge", d3.forceManyBody().strength(function(d) {
- if (d.type==="org") {
- return -120} else return -30}))
- .force("center", d3.forceCenter(width / 2, height / 2));
- d3.json("network.json", function(error, graph) {
- if (error) throw error;
- var link = svg.append("g")
- .attr("class", "links")
- .selectAll("line")
- .data(graph.links)
- .enter().append("line")
- .attr("stroke-width", function(d) { return Math.sqrt(d.value); });
- var node = svg.append("g")
- .attr("class", "nodes")
- .selectAll("circle")
- .data(graph.nodes)
- .enter().append("circle")
- .attr("r", 10)
- .attr("fill", function(d) { return color(d.group); })
- .call(d3.drag()
- .on("start", dragstarted)
- .on("drag", dragged)
- .on("end", dragended));
- node.append("title")
- .text(function(d) { return d.id; });
- simulation
- .nodes(graph.nodes)
- .on("tick", ticked);
- simulation.force("link")
- .links(graph.links);
- function ticked() {
- link
- .attr("x1", function(d) { return d.source.x; })
- .attr("y1", function(d) { return d.source.y; })
- .attr("x2", function(d) { return d.target.x; })
- .attr("y2", function(d) { return d.target.y; });
- node
- .attr("cx", function(d) { return d.x; })
- .attr("cy", function(d) { return d.y; });
- }
- });
- function dragstarted(d) {
- if (!d3.event.active) simulation.alphaTarget(0.3).restart();
- d.fx = d.x;
- d.fy = d.y;
- }
- function dragged(d) {
- d.fx = d3.event.x;
- d.fy = d3.event.y;
- }
- function dragended(d) {
- if (!d3.event.active) simulation.alphaTarget(0);
- d.fx = null;
- d.fy = null;
- }
- </script><div class="scrollBox">
- <code>
- COMPOSE_PROJECT_NAME=40dc98342b7a11e79ac800163e000427 CORE_PEER_NETWORKID=40dc98342b7a11e79ac800163e000427 ORDERER0_ORDERER_GENERAL_LOCALMSPDIR=/var/hyperledger/bddtests/volumes/orderer/40dc98342b7a11e79ac800163e000427/orderer0/localMspConfig ORDERER0_ORDERER_GENERAL_LOCALMSPID=ordererOrg0 ORDERER0_ORDERER_GENERAL_TLS_CERTIFICATE=/var/hyperledger/bddtests/volumes/orderer/40dc98342b7a11e79ac800163e000427/orderer0/tls_config/orderer0Signer-orderer0-ordererOrg0-tls.crt ORDERER0_ORDERER_GENERAL_TLS_PRIVATEKEY=/var/hyperledger/bddtests/volumes/orderer/40dc98342b7a11e79ac800163e000427/orderer0/tls_config/orderer0Signer-orderer0-ordererOrg0-tls.key ORDERER_GENERAL_GENESISFILE=/var/hyperledger/bddtests/volumes/orderer/40dc98342b7a11e79ac800163e000427/genesis_file ORDERER_GENERAL_GENESISMETHOD=file PEER0_CORE_PEER_LOCALMSPID=peerOrg0 PEER0_CORE_PEER_MSPCONFIGPATH=/var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer0/localMspConfig PEER0_CORE_PEER_TLS_CERT_FILE=/var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer0/tls_config/peer0Signer-peer0-peerOrg0-tls.crt PEER0_CORE_PEER_TLS_KEY_FILE=/var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer0/tls_config/peer0Signer-peer0-peerOrg0-tls.key PEER0_CORE_PEER_TLS_ROOTCERT_FILE=/var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer0/localMspConfig/cacerts/peerOrg0.pem PEER0_CORE_PEER_TLS_SERVERHOSTOVERRIDE=peer0 PEER1_CORE_PEER_LOCALMSPID=peerOrg0 PEER1_CORE_PEER_MSPCONFIGPATH=/var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer1/localMspConfig PEER1_CORE_PEER_TLS_CERT_FILE=/var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer1/tls_config/peer1Signer-peer1-peerOrg0-tls.crt PEER1_CORE_PEER_TLS_KEY_FILE=/var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer1/tls_config/peer1Signer-peer1-peerOrg0-tls.key PEER1_CORE_PEER_TLS_ROOTCERT_FILE=/var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer1/localMspConfig/cacerts/peerOrg0.pem PEER1_CORE_PEER_TLS_SERVERHOSTOVERRIDE=peer1 PEER2_CORE_PEER_LOCALMSPID=peerOrg0 PEER2_CORE_PEER_MSPCONFIGPATH=/var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer2/localMspConfig PEER2_CORE_PEER_TLS_CERT_FILE=/var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer2/tls_config/peer2Signer-peer2-peerOrg0-tls.crt PEER2_CORE_PEER_TLS_KEY_FILE=/var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer2/tls_config/peer2Signer-peer2-peerOrg0-tls.key PEER2_CORE_PEER_TLS_ROOTCERT_FILE=/var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer2/localMspConfig/cacerts/peerOrg0.pem PEER2_CORE_PEER_TLS_SERVERHOSTOVERRIDE=peer2 PEER3_CORE_PEER_LOCALMSPID=peerOrg0 PEER3_CORE_PEER_MSPCONFIGPATH=/var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer3/localMspConfig PEER3_CORE_PEER_TLS_CERT_FILE=/var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer3/tls_config/peer3Signer-peer3-peerOrg0-tls.crt PEER3_CORE_PEER_TLS_KEY_FILE=/var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer3/tls_config/peer3Signer-peer3-peerOrg0-tls.key PEER3_CORE_PEER_TLS_ROOTCERT_FILE=/var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer3/localMspConfig/cacerts/peerOrg0.pem PEER3_CORE_PEER_TLS_SERVERHOSTOVERRIDE=peer3 docker-compose -f docker-compose-next-4.yml config --services
- </code>
- </div><div class="scrollBox">
- <code>
- COMPOSE_PROJECT_NAME=40dc98342b7a11e79ac800163e000427 CORE_PEER_NETWORKID=40dc98342b7a11e79ac800163e000427 ORDERER0_ORDERER_GENERAL_LOCALMSPDIR=/var/hyperledger/bddtests/volumes/orderer/40dc98342b7a11e79ac800163e000427/orderer0/localMspConfig ORDERER0_ORDERER_GENERAL_LOCALMSPID=ordererOrg0 ORDERER0_ORDERER_GENERAL_TLS_CERTIFICATE=/var/hyperledger/bddtests/volumes/orderer/40dc98342b7a11e79ac800163e000427/orderer0/tls_config/orderer0Signer-orderer0-ordererOrg0-tls.crt ORDERER0_ORDERER_GENERAL_TLS_PRIVATEKEY=/var/hyperledger/bddtests/volumes/orderer/40dc98342b7a11e79ac800163e000427/orderer0/tls_config/orderer0Signer-orderer0-ordererOrg0-tls.key ORDERER_GENERAL_GENESISFILE=/var/hyperledger/bddtests/volumes/orderer/40dc98342b7a11e79ac800163e000427/genesis_file ORDERER_GENERAL_GENESISMETHOD=file PEER0_CORE_PEER_LOCALMSPID=peerOrg0 PEER0_CORE_PEER_MSPCONFIGPATH=/var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer0/localMspConfig PEER0_CORE_PEER_TLS_CERT_FILE=/var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer0/tls_config/peer0Signer-peer0-peerOrg0-tls.crt PEER0_CORE_PEER_TLS_KEY_FILE=/var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer0/tls_config/peer0Signer-peer0-peerOrg0-tls.key PEER0_CORE_PEER_TLS_ROOTCERT_FILE=/var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer0/localMspConfig/cacerts/peerOrg0.pem PEER0_CORE_PEER_TLS_SERVERHOSTOVERRIDE=peer0 PEER1_CORE_PEER_LOCALMSPID=peerOrg0 PEER1_CORE_PEER_MSPCONFIGPATH=/var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer1/localMspConfig PEER1_CORE_PEER_TLS_CERT_FILE=/var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer1/tls_config/peer1Signer-peer1-peerOrg0-tls.crt PEER1_CORE_PEER_TLS_KEY_FILE=/var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer1/tls_config/peer1Signer-peer1-peerOrg0-tls.key PEER1_CORE_PEER_TLS_ROOTCERT_FILE=/var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer1/localMspConfig/cacerts/peerOrg0.pem PEER1_CORE_PEER_TLS_SERVERHOSTOVERRIDE=peer1 PEER2_CORE_PEER_LOCALMSPID=peerOrg0 PEER2_CORE_PEER_MSPCONFIGPATH=/var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer2/localMspConfig PEER2_CORE_PEER_TLS_CERT_FILE=/var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer2/tls_config/peer2Signer-peer2-peerOrg0-tls.crt PEER2_CORE_PEER_TLS_KEY_FILE=/var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer2/tls_config/peer2Signer-peer2-peerOrg0-tls.key PEER2_CORE_PEER_TLS_ROOTCERT_FILE=/var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer2/localMspConfig/cacerts/peerOrg0.pem PEER2_CORE_PEER_TLS_SERVERHOSTOVERRIDE=peer2 PEER3_CORE_PEER_LOCALMSPID=peerOrg0 PEER3_CORE_PEER_MSPCONFIGPATH=/var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer3/localMspConfig PEER3_CORE_PEER_TLS_CERT_FILE=/var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer3/tls_config/peer3Signer-peer3-peerOrg0-tls.crt PEER3_CORE_PEER_TLS_KEY_FILE=/var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer3/tls_config/peer3Signer-peer3-peerOrg0-tls.key PEER3_CORE_PEER_TLS_ROOTCERT_FILE=/var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer3/localMspConfig/cacerts/peerOrg0.pem PEER3_CORE_PEER_TLS_SERVERHOSTOVERRIDE=peer3 docker-compose -f docker-compose-next-4.yml up -d --force-recreate
- </code>
- </div><div class="scrollBox">
- <code>
- COMPOSE_PROJECT_NAME=40dc98342b7a11e79ac800163e000427 CORE_PEER_NETWORKID=40dc98342b7a11e79ac800163e000427 ORDERER0_ORDERER_GENERAL_LOCALMSPDIR=/var/hyperledger/bddtests/volumes/orderer/40dc98342b7a11e79ac800163e000427/orderer0/localMspConfig ORDERER0_ORDERER_GENERAL_LOCALMSPID=ordererOrg0 ORDERER0_ORDERER_GENERAL_TLS_CERTIFICATE=/var/hyperledger/bddtests/volumes/orderer/40dc98342b7a11e79ac800163e000427/orderer0/tls_config/orderer0Signer-orderer0-ordererOrg0-tls.crt ORDERER0_ORDERER_GENERAL_TLS_PRIVATEKEY=/var/hyperledger/bddtests/volumes/orderer/40dc98342b7a11e79ac800163e000427/orderer0/tls_config/orderer0Signer-orderer0-ordererOrg0-tls.key ORDERER_GENERAL_GENESISFILE=/var/hyperledger/bddtests/volumes/orderer/40dc98342b7a11e79ac800163e000427/genesis_file ORDERER_GENERAL_GENESISMETHOD=file PEER0_CORE_PEER_LOCALMSPID=peerOrg0 PEER0_CORE_PEER_MSPCONFIGPATH=/var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer0/localMspConfig PEER0_CORE_PEER_TLS_CERT_FILE=/var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer0/tls_config/peer0Signer-peer0-peerOrg0-tls.crt PEER0_CORE_PEER_TLS_KEY_FILE=/var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer0/tls_config/peer0Signer-peer0-peerOrg0-tls.key PEER0_CORE_PEER_TLS_ROOTCERT_FILE=/var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer0/localMspConfig/cacerts/peerOrg0.pem PEER0_CORE_PEER_TLS_SERVERHOSTOVERRIDE=peer0 PEER1_CORE_PEER_LOCALMSPID=peerOrg0 PEER1_CORE_PEER_MSPCONFIGPATH=/var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer1/localMspConfig PEER1_CORE_PEER_TLS_CERT_FILE=/var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer1/tls_config/peer1Signer-peer1-peerOrg0-tls.crt PEER1_CORE_PEER_TLS_KEY_FILE=/var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer1/tls_config/peer1Signer-peer1-peerOrg0-tls.key PEER1_CORE_PEER_TLS_ROOTCERT_FILE=/var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer1/localMspConfig/cacerts/peerOrg0.pem PEER1_CORE_PEER_TLS_SERVERHOSTOVERRIDE=peer1 PEER2_CORE_PEER_LOCALMSPID=peerOrg0 PEER2_CORE_PEER_MSPCONFIGPATH=/var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer2/localMspConfig PEER2_CORE_PEER_TLS_CERT_FILE=/var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer2/tls_config/peer2Signer-peer2-peerOrg0-tls.crt PEER2_CORE_PEER_TLS_KEY_FILE=/var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer2/tls_config/peer2Signer-peer2-peerOrg0-tls.key PEER2_CORE_PEER_TLS_ROOTCERT_FILE=/var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer2/localMspConfig/cacerts/peerOrg0.pem PEER2_CORE_PEER_TLS_SERVERHOSTOVERRIDE=peer2 PEER3_CORE_PEER_LOCALMSPID=peerOrg0 PEER3_CORE_PEER_MSPCONFIGPATH=/var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer3/localMspConfig PEER3_CORE_PEER_TLS_CERT_FILE=/var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer3/tls_config/peer3Signer-peer3-peerOrg0-tls.crt PEER3_CORE_PEER_TLS_KEY_FILE=/var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer3/tls_config/peer3Signer-peer3-peerOrg0-tls.key PEER3_CORE_PEER_TLS_ROOTCERT_FILE=/var/hyperledger/bddtests/volumes/peer/40dc98342b7a11e79ac800163e000427/peer3/localMspConfig/cacerts/peerOrg0.pem PEER3_CORE_PEER_TLS_SERVERHOSTOVERRIDE=peer3 docker-compose -f docker-compose-next-4.yml ps -q
- </code>
- </div><div id="Step 13">
- <h2>Step 13</h2>
- <hr/>
- <h3>And I wait "0" seconds</h3>
- </div><div id="Step 14">
- <h2>Step 14</h2>
- <hr/>
- <h3>And the following application developers are defined for peer organizations and each saves their cert as alias</h3>
- <table>
- <tr>
- <th>Developer</th>
- <th>Consortium</th>
- <th>Organization</th>
- <th>AliasSavedUnder</th>
- </tr>
- <tr>
- <td>dev0Org0</td>
- <td>consortium1</td>
- <td>peerOrg0</td>
- <td>dev0Org0App1</td>
- </tr>
- <tr>
- <td>dev0Org1</td>
- <td>consortium1</td>
- <td>peerOrg0</td>
- <td>dev0Org1App1</td>
- </tr>
- </table>
- </div><div id="dev0Org0">
- <h4>Created new user dev0Org0 with <a href="./dir-user-dev0org0-privatekey.pem">private key</a></h4>
- <code>-----BEGIN EC PRIVATE KEY-----
- MHcCAQEEIEO4d1W3zGA4PT+v+YfdXuuRc0KECPlYyK9VY7VcGyPwoAoGCCqGSM49
- AwEHoUQDQgAEbPcUyi9Gy0ErkO5tNJaXhq5QE2NR4ySZbrHRRsReicr+yPo7kCEQ
- 3gSSt/JUkX+wD2bnYAeyYTNo/ah0iBgTHw==
- -----END EC PRIVATE KEY-----
- </code>
- </div><div>
- <h4>Created new named node admin tuple: NodeAdminTuple(user=u'dev0Org0', nodeName=u'consortium1', organization=u'peerOrg0')</h4>
- </div><div class="scrollBox">
- <code>
- -----BEGIN CERTIFICATE-----
- MIIB7jCCAZOgAwIBAwICA+gwCgYIKoZIzj0EAwIwVTERMA8GA1UEAwwIcGVlck9y
- ZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEXMBUG
- A1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTQyWhcNMTgwNDI3MTg0
- OTQyWjBYMRQwEgYDVQQDDAtjb25zb3J0aXVtMTELMAkGA1UEBhMCVVMxDDAKBgNV
- BAcMA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZ
- MBMGByqGSM49AgEGCCqGSM49AwEHA0IABGz3FMovRstBK5DubTSWl4auUBNjUeMk
- mW6x0UbEXonK/sj6O5AhEN4EkrfyVJF/sA9m52AHsmEzaP2odIgYEx+jUDBOMAwG
- A1UdEwEB/wQCMAAwHQYDVR0OBBYEFAJ9LmlaPF5mnEYRzANjO816UdYaMB8GA1Ud
- IwQYMBaAFMjjW1UqCPlfPHykFupBF0DJjgAjMAoGCCqGSM49BAMCA0kAMEYCIQCV
- GtvbmUTYRzpmlju3p/cUA5kQRhXwxEf9llMUhePEEAIhAKOv+ja0WY9izP2MAdGx
- UuWd5HCHk0DT3FI2osl/qYIO
- -----END CERTIFICATE-----
- </code>
- </div><div id="dev0Org0-dev0Org0App1">
- <h4>User dev0Org0 setting tag key dev0Org0App1 to value</h4>
- </div><div class="scrollBox">
- <code>
- NodeAdminTuple(user=u'dev0Org0', nodeName=u'consortium1', organization=u'peerOrg0')
- </code>
- </div><div id="dev0Org1">
- <h4>Created new user dev0Org1 with <a href="./dir-user-dev0org1-privatekey.pem">private key</a></h4>
- <code>-----BEGIN EC PRIVATE KEY-----
- MHcCAQEEIAhEOqXZhZ3lngw+n8RjKMyA/6O9VAokOHc9ZwQdrZ7JoAoGCCqGSM49
- AwEHoUQDQgAEFqYSxy6AVb10nQXXEL9vLa8PSGLFpEG2IvfE1Y7kIZwqaRzvc3v/
- qvrfYsmpvuOh9fq7ATUhv3fmaLaz4uLGZQ==
- -----END EC PRIVATE KEY-----
- </code>
- </div><div>
- <h4>Created new named node admin tuple: NodeAdminTuple(user=u'dev0Org1', nodeName=u'consortium1', organization=u'peerOrg0')</h4>
- </div><div class="scrollBox">
- <code>
- -----BEGIN CERTIFICATE-----
- MIIB7TCCAZOgAwIBAwICA+gwCgYIKoZIzj0EAwIwVTERMA8GA1UEAwwIcGVlck9y
- ZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEXMBUG
- A1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTQyWhcNMTgwNDI3MTg0
- OTQyWjBYMRQwEgYDVQQDDAtjb25zb3J0aXVtMTELMAkGA1UEBhMCVVMxDDAKBgNV
- BAcMA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZ
- MBMGByqGSM49AgEGCCqGSM49AwEHA0IABBamEscugFW9dJ0F1xC/by2vD0hixaRB
- tiL3xNWO5CGcKmkc73N7/6r632LJqb7jofX6uwE1Ib935mi2s+LixmWjUDBOMAwG
- A1UdEwEB/wQCMAAwHQYDVR0OBBYEFLb6oil7KHKd67G+mDqgzphpFet4MB8GA1Ud
- IwQYMBaAFMjjW1UqCPlfPHykFupBF0DJjgAjMAoGCCqGSM49BAMCA0gAMEUCIFP+
- k95YP4GWpCqayw1w+xMvrUJLap09D0kRrUgvVIHYAiEAw9ae6L0cUx62eD0HBbNy
- ahPwqTJzh29i7wDevYXycho=
- -----END CERTIFICATE-----
- </code>
- </div><div id="dev0Org1-dev0Org1App1">
- <h4>User dev0Org1 setting tag key dev0Org1App1 to value</h4>
- </div><div class="scrollBox">
- <code>
- NodeAdminTuple(user=u'dev0Org1', nodeName=u'consortium1', organization=u'peerOrg0')
- </code>
- </div><div id="Step 15">
- <h2>Step 15</h2>
- <hr/>
- <h3>And the user "dev0Org0" creates a peer template "template1" with chaincode deployment policy using consortium "consortium1" and peer organizations</h3>
- <table>
- <tr>
- <th>Organization</th>
- </tr>
- <tr>
- <td>peerOrg0</td>
- </tr>
- </table>
- </div><div id="dev0Org0-template1">
- <h4>User dev0Org0 setting tag key template1 to value</h4>
- </div><div class="scrollBox">
- <code>
- [name:peerOrg0, networks: [<Network.Peer: 2>]]
- </code>
- </div><div id="Step 16">
- <h2>Step 16</h2>
- <hr/>
- <h3>And the user "dev0Org0" creates an peer anchor set "anchors1" for channel "com.acme.blockchain.jdoe.Channel1" for orgs</h3>
- <table>
- <tr>
- <th>User</th>
- <th>Peer</th>
- <th>Organization</th>
- </tr>
- <tr>
- <td>peer0Signer</td>
- <td>peer0</td>
- <td>peerOrg0</td>
- </tr>
- </table>
- </div><div id="dev0Org0-anchors1">
- <h4>User dev0Org0 setting tag key anchors1 to value</h4>
- </div><div>
- <a href="./dev0org0-anchors1-0000.protobuf" title="dev0org0-anchors1-0000.protobuf">Protobuf message in binary form</a>
- <div class="scrollBox">
- <code>
- groups {
- key: "Application"
- value {
- groups {
- key: "peerOrg0"
- value {
- values {
- key: "AnchorPeers"
- value {
- value: "\n\n\n\005peer0\020\2137"
- }
- }
- }
- }
- }
- }
- </code>
- </div>
- <div>
- <div class="scrollBox">
- <code>
- from common.configtx_pb2 import ConfigGroup
- configGroup = ConfigGroup()
- data = None
- with open('tmp/40dc98342b7a11e79ac800163e000427/dev0org0-anchors1-0000.protobuf') as f:
- data = f.read()
- configGroup.ParseFromString(data)
- </code>
- </div>
- </div></div><div id="Step 17">
- <h2>Step 17</h2>
- <hr/>
- <h3>And the user "dev0Org0" creates a ConfigUpdateEnvelope "createChannelConfigUpdate1"</h3>
- <table>
- <tr>
- <th>ChannelID</th>
- <th>Template</th>
- <th>Consortium</th>
- <th>Anchors</th>
- </tr>
- <tr>
- <td>com.acme.blockchain.jdoe.Channel1</td>
- <td>template1</td>
- <td>consortium1</td>
- <td>anchors1</td>
- </tr>
- </table>
- </div><div id="dev0Org0-createChannelConfigUpdate1_signedMspConfigItems">
- <h4>User dev0Org0 setting tag key createChannelConfigUpdate1_signedMspConfigItems to value</h4>
- </div><div>
- <a href="./dev0org0-createchannelconfigupdate1-signedmspconfigitems-0000.protobuf" title="dev0org0-createchannelconfigupdate1-signedmspconfigitems-0000.protobuf">Protobuf message in binary form</a>
- <div class="scrollBox">
- <code>
- groups {
- key: "Application"
- value {
- groups {
- key: "peerOrg0"
- value {
- }
- }
- policies {
- key: "Admins"
- value {
- policy {
- type: 3
- policy: "\n\006Admins\020\002"
- }
- }
- }
- policies {
- key: "Readers"
- value {
- policy {
- type: 3
- policy: "\n\007Readers"
- }
- }
- }
- policies {
- key: "Writers"
- value {
- policy {
- type: 3
- policy: "\n\007Writers"
- }
- }
- }
- }
- }
- </code>
- </div>
- <div>
- <div class="scrollBox">
- <code>
- from common.configtx_pb2 import ConfigGroup
- configGroup = ConfigGroup()
- data = None
- with open('tmp/40dc98342b7a11e79ac800163e000427/dev0org0-createchannelconfigupdate1-signedmspconfigitems-0000.protobuf') as f:
- data = f.read()
- configGroup.ParseFromString(data)
- </code>
- </div>
- </div></div><div id="dev0Org0-createChannelConfigUpdate1_channel_config_groups">
- <h4>User dev0Org0 setting tag key createChannelConfigUpdate1_channel_config_groups to value</h4>
- </div><div>
- <a href="./dev0org0-createchannelconfigupdate1-channel-config-groups.protobuf" title="dev0org0-createchannelconfigupdate1-channel-config-groups.protobuf">Protobuf message in binary form</a>
- <div class="scrollBox">
- <code>
- groups {
- key: "Application"
- value {
- version: 1
- groups {
- key: "peerOrg0"
- value {
- }
- }
- policies {
- key: "Admins"
- value {
- policy {
- type: 3
- policy: "\n\006Admins\020\002"
- }
- }
- }
- policies {
- key: "Readers"
- value {
- policy {
- type: 3
- policy: "\n\007Readers"
- }
- }
- }
- policies {
- key: "Writers"
- value {
- policy {
- type: 3
- policy: "\n\007Writers"
- }
- }
- }
- }
- }
- values {
- key: "Consortium"
- value {
- value: "\n\013consortium1"
- }
- }
- </code>
- </div>
- <div>
- <div class="scrollBox">
- <code>
- from common.configtx_pb2 import ConfigGroup
- configGroup = ConfigGroup()
- data = None
- with open('tmp/40dc98342b7a11e79ac800163e000427/dev0org0-createchannelconfigupdate1-channel-config-groups.protobuf') as f:
- data = f.read()
- configGroup.ParseFromString(data)
- </code>
- </div>
- </div></div><div id="dev0Org0-createChannelConfigUpdate1">
- <h4>User dev0Org0 setting tag key createChannelConfigUpdate1 to value</h4>
- </div><div>
- <a href="./dev0org0-createchannelconfigupdate1.protobuf" title="dev0org0-createchannelconfigupdate1.protobuf">Protobuf message in binary form</a>
- <div class="scrollBox">
- <code>
- config_update: "\n!com.acme.blockchain.jdoe.Channel1\022>\022\035\n\013Application\022\016\022\014\n\010peerOrg0\022\000\032\035\n\nConsortium\022\017\022\r\n\013consortium1\032\224\001\022s\n\013Application\022d\010\001\022\014\n\010peerOrg0\022\000\"\032\n\007Writers\022\017\022\r\010\003\022\t\n\007Writers\"\032\n\007Readers\022\017\022\r\010\003\022\t\n\007Readers\"\032\n\006Admins\022\020\022\016\010\003\022\n\n\006Admins\020\002\032\035\n\nConsortium\022\017\022\r\n\013consortium1"
- </code>
- </div>
- <div>
- <div class="scrollBox">
- <code>
- from common.configtx_pb2 import ConfigUpdateEnvelope
- configUpdateEnvelope = ConfigUpdateEnvelope()
- data = None
- with open('tmp/40dc98342b7a11e79ac800163e000427/dev0org0-createchannelconfigupdate1.protobuf') as f:
- data = f.read()
- configUpdateEnvelope.ParseFromString(data)
- </code>
- </div>
- </div></div><div id="Step 18">
- <h2>Step 18</h2>
- <hr/>
- <h3>And the user "dev0Org0" collects signatures for ConfigUpdateEnvelope "createChannelConfigUpdate1" from developers</h3>
- <table>
- <tr>
- <th>Developer</th>
- <th>Cert Alias</th>
- </tr>
- <tr>
- <td>dev0Org0</td>
- <td>dev0Org0App1</td>
- </tr>
- <tr>
- <td>dev0Org1</td>
- <td>dev0Org1App1</td>
- </tr>
- </table>
- </div><div id="Step 19">
- <h2>Step 19</h2>
- <hr/>
- <h3>And the user "dev0Org0" creates a ConfigUpdate Tx "configUpdateTx1" using cert alias "dev0Org0App1" using signed ConfigUpdateEnvelope "createChannelConfigUpdate1"</h3>
- </div><div id="dev0Org0-configUpdateTx1">
- <h4>User dev0Org0 setting tag key configUpdateTx1 to value</h4>
- </div><div>
- <a href="./dev0org0-configupdatetx1.protobuf" title="dev0org0-configupdatetx1.protobuf">Protobuf message in binary form</a>
- <div class="scrollBox">
- <code>
- payload: "\n\267\006\n/\010\002\020\001\032\006\010\275\372\210\310\005\"!com.acme.blockchain.jdoe.Channel1\022\203\006\n\346\005\n\010peerOrg0\022\331\005-----BEGIN CERTIFICATE-----\nMIIB7jCCAZOgAwIBAwICA+gwCgYIKoZIzj0EAwIwVTERMA8GA1UEAwwIcGVlck9y\nZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEXMBUG\nA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTQyWhcNMTgwNDI3MTg0\nOTQyWjBYMRQwEgYDVQQDDAtjb25zb3J0aXVtMTELMAkGA1UEBhMCVVMxDDAKBgNV\nBAcMA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZ\nMBMGByqGSM49AgEGCCqGSM49AwEHA0IABGz3FMovRstBK5DubTSWl4auUBNjUeMk\nmW6x0UbEXonK/sj6O5AhEN4EkrfyVJF/sA9m52AHsmEzaP2odIgYEx+jUDBOMAwG\nA1UdEwEB/wQCMAAwHQYDVR0OBBYEFAJ9LmlaPF5mnEYRzANjO816UdYaMB8GA1Ud\nIwQYMBaAFMjjW1UqCPlfPHykFupBF0DJjgAjMAoGCCqGSM49BAMCA0kAMEYCIQCV\nGtvbmUTYRzpmlju3p/cUA5kQRhXwxEf9llMUhePEEAIhAKOv+ja0WY9izP2MAdGx\nUuWd5HCHk0DT3FI2osl/qYIO\n-----END CERTIFICATE-----\n\022\030x\304\242\246\224\317w\014\0279*\355\"\246\2370\220\310\233\305k`\024l\022\241\017\n\372\001\n!com.acme.blockchain.jdoe.Channel1\022>\022\035\n\013Application\022\016\022\014\n\010peerOrg0\022\000\032\035\n\nConsortium\022\017\022\r\n\013consortium1\032\224\001\022s\n\013Application\022d\010\001\022\014\n\010peerOrg0\022\000\"\032\n\007Writers\022\017\022\r\010\003\022\t\n\007Writers\"\032\n\007Readers\022\017\022\r\010\003\022\t\n\007Readers\"\032\n\006Admins\022\020\022\016\010\003\022\n\n\006Admins\020\002\032\035\n\nConsortium\022\017\022\r\n\013consortium1\022\317\006\n\203\006\n\346\005\n\010peerOrg0\022\331\005-----BEGIN CERTIFICATE-----\nMIIB7jCCAZOgAwIBAwICA+gwCgYIKoZIzj0EAwIwVTERMA8GA1UEAwwIcGVlck9y\nZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEXMBUG\nA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTQyWhcNMTgwNDI3MTg0\nOTQyWjBYMRQwEgYDVQQDDAtjb25zb3J0aXVtMTELMAkGA1UEBhMCVVMxDDAKBgNV\nBAcMA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZ\nMBMGByqGSM49AgEGCCqGSM49AwEHA0IABGz3FMovRstBK5DubTSWl4auUBNjUeMk\nmW6x0UbEXonK/sj6O5AhEN4EkrfyVJF/sA9m52AHsmEzaP2odIgYEx+jUDBOMAwG\nA1UdEwEB/wQCMAAwHQYDVR0OBBYEFAJ9LmlaPF5mnEYRzANjO816UdYaMB8GA1Ud\nIwQYMBaAFMjjW1UqCPlfPHykFupBF0DJjgAjMAoGCCqGSM49BAMCA0kAMEYCIQCV\nGtvbmUTYRzpmlju3p/cUA5kQRhXwxEf9llMUhePEEAIhAKOv+ja0WY9izP2MAdGx\nUuWd5HCHk0DT3FI2osl/qYIO\n-----END CERTIFICATE-----\n\022\030\2771\351\243\370\256\004\261\324\262~\234\3149\232\346\240\245\016\365\362i\031\234\022G0E\002!\000\360\250\262\200~q\3175C3\233\201\342q\333i\363\324\324dwUD\325\243\017\021\273\205\007Q\"\002 ?\375\301\005\2455\362\215[\231\007\323Y\300\265{C\254\313\200\265\023_\361\365M\272\357\232R2$\022\317\006\n\203\006\n\346\005\n\010peerOrg0\022\331\005-----BEGIN CERTIFICATE-----\nMIIB7TCCAZOgAwIBAwICA+gwCgYIKoZIzj0EAwIwVTERMA8GA1UEAwwIcGVlck9y\nZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEXMBUG\nA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTQyWhcNMTgwNDI3MTg0\nOTQyWjBYMRQwEgYDVQQDDAtjb25zb3J0aXVtMTELMAkGA1UEBhMCVVMxDDAKBgNV\nBAcMA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZ\nMBMGByqGSM49AgEGCCqGSM49AwEHA0IABBamEscugFW9dJ0F1xC/by2vD0hixaRB\ntiL3xNWO5CGcKmkc73N7/6r632LJqb7jofX6uwE1Ib935mi2s+LixmWjUDBOMAwG\nA1UdEwEB/wQCMAAwHQYDVR0OBBYEFLb6oil7KHKd67G+mDqgzphpFet4MB8GA1Ud\nIwQYMBaAFMjjW1UqCPlfPHykFupBF0DJjgAjMAoGCCqGSM49BAMCA0gAMEUCIFP+\nk95YP4GWpCqayw1w+xMvrUJLap09D0kRrUgvVIHYAiEAw9ae6L0cUx62eD0HBbNy\nahPwqTJzh29i7wDevYXycho=\n-----END CERTIFICATE-----\n\022\030\357v_\007i\014\375\373\342\013\031\232\217\030;\340)^\203s\225\026;\326\022G0E\002!\000\230sr\217\312\354\350\233\2766\200\035\273\371\2543\\\212r\302-h\316\353\224\206\264c\036\223\315\002\002 N\347=\352O\302\225iX\311\364\200\220\311F}]\201\203\311\246\212*\260R[fZ\312\335\315\'"
- signature: "0D\002 ?M\324\270Fr\201\322\000\024S\002\360<cb\351boH4Z\205\216\222\225\025o\304\326\301\003\002 1{(!\376\nsrO\010E\311\275\367\361\353\342[od_\367\217:\036\207L\332c\r\t4"
- </code>
- </div>
- <div>
- <div class="scrollBox">
- <code>
- from common.common_pb2 import Envelope
- envelope = Envelope()
- data = None
- with open('tmp/40dc98342b7a11e79ac800163e000427/dev0org0-configupdatetx1.protobuf') as f:
- data = f.read()
- envelope.ParseFromString(data)
- </code>
- </div>
- </div></div><div id="Step 20">
- <h2>Step 20</h2>
- <hr/>
- <h3>And the user "dev0Org0" using cert alias "dev0Org0App1" broadcasts ConfigUpdate Tx "configUpdateTx1" to orderer "orderer0" to create channel "com.acme.blockchain.jdoe.Channel1"</h3>
- </div><div id="Step 21">
- <h2>Step 21</h2>
- <hr/>
- <h3>And I wait "2" seconds</h3>
- </div><div id="Step 22">
- <h2>Step 22</h2>
- <hr/>
- <h3>When user "dev0Org0" using cert alias "dev0Org0App1" connects to deliver function on orderer "orderer0"</h3>
- </div><div id="Step 23">
- <h2>Step 23</h2>
- <hr/>
- <h3>And user "dev0Org0" sends deliver a seek request on orderer "orderer0" with properties</h3>
- <table>
- <tr>
- <th>ChainId</th>
- <th>Start</th>
- <th>End</th>
- </tr>
- <tr>
- <td>com.acme.blockchain.jdoe.Channel1</td>
- <td>0</td>
- <td>0</td>
- </tr>
- </table>
- </div><div id="Step 24">
- <h2>Step 24</h2>
- <hr/>
- <h3>Then user "dev0Org0" should get a delivery "genesisBlockForMyNewChannel" from "orderer0" of "1" blocks with "1" messages within "1" seconds</h3>
- </div><div id="dev0Org0-genesisBlockForMyNewChannel">
- <h4>User dev0Org0 setting tag key genesisBlockForMyNewChannel to value</h4>
- </div><div>
- <a href="./dev0org0-genesisblockformynewchannel-0000.protobuf" title="dev0org0-genesisblockformynewchannel-0000.protobuf">Protobuf message in binary form</a>
- <div class="scrollBox">
- <code>
- header {
- data_hash: "y7*\252<\347\257y]15VH\320[\355t\277\207~3\204g\n\263\224\003\261A\305u\260"
- }
- data {
- data: "\n\334<\n\242\006\n-\010\001\032\006\010\306\372\210\310\005\"!com.acme.blockchain.jdoe.Channel1\022\360\005\n\323\005\n\013ordererOrg0\022\303\005-----BEGIN -----\nMIIB7TCCAZOgAwIBAwICA+gwCgYIKoZIzj0EAwIwWDEUMBIGA1UEAwwLb3JkZXJl\nck9yZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEX\nMBUGA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTMzWhcNMTgwNDI3\nMTg0OTMzWjBVMREwDwYDVQQDDAhvcmRlcmVyMDELMAkGA1UEBhMCVVMxDDAKBgNV\nBAcMA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZ\nMBMGByqGSM49AgEGCCqGSM49AwEHA0IABB8Bc1xevTEOQV7O5mIjqQP/fNpq/NMo\nIuiFnFkG+1S5Msdled7AEUMgeUaEP8U/wMfqR8Edb5cdwkeH47lPzHSjUDBOMAwG\nA1UdEwEB/wQCMAAwHQYDVR0OBBYEFMnu76tt+7C+iOtOu+UrIVCnnu5QMB8GA1Ud\nIwQYMBaAFDRTjX3QJOAHbnREWkYokhXRpzsGMAoGCCqGSM49BAMCA0gAMEUCIEBp\nCM37305NHEqxGZwOsFKncUVTISI+D8+qg1qFn/GQAiEAuohclwpctW0QtHp/sp0L\n38MGiwiA78Rt5aElon+ejTE=\n-----END -----\n\022\030{\346H\310\273\247L\022\326\005\272\202\r-\256Xj\211a\220\225#\242j\022\2646\n\205 \010\001\022\200 \022\330\017\n\007Orderer\022\314\017\022\251\r\n\013ordererOrg0\022\231\r\032\363\013\n\003MSP\022\353\013\022\340\013\022\335\013\n\013ordererOrg0\022\345\005-----BEGIN CERTIFICATE-----\nMIIB9TCCAZygAwIBAwICA+gwCgYIKoZIzj0EAwIwWDEUMBIGA1UEAwwLb3JkZXJl\nck9yZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEX\nMBUGA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTMzWhcNMTgwNDI3\nMTg0OTMzWjBYMRQwEgYDVQQDDAtvcmRlcmVyT3JnMDELMAkGA1UEBhMCVVMxDDAK\nBgNVBAcMA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGlu\nYTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABLawQik+bOgaBNS9M74sjdw4Imqt\ng64ZdUP83144uaSHQPuUq8OYMMK/apGUSWtrorOJ2Gj9PMV+0Qs8yzeOAdWjVjBU\nMBIGA1UdEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFDRTjX3QJOAHbnREWkYokhXR\npzsGMB8GA1UdIwQYMBaAFDRTjX3QJOAHbnREWkYokhXRpzsGMAoGCCqGSM49BAMC\nA0cAMEQCIBdqKO3TZ2KLWKcDErGiOc7TWIVChFfzO4Bn9AuunU6QAiAvweATe3z1\n4CISjkUeaw8SdMSKV5GgRZCjgwzF8lLvNA==\n-----END CERTIFICATE-----\n\"\345\005-----BEGIN CERTIFICATE-----\nMIIB9TCCAZygAwIBAwICA+gwCgYIKoZIzj0EAwIwWDEUMBIGA1UEAwwLb3JkZXJl\nck9yZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEX\nMBUGA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTMzWhcNMTgwNDI3\nMTg0OTMzWjBYMRQwEgYDVQQDDAtvcmRlcmVyT3JnMDELMAkGA1UEBhMCVVMxDDAK\nBgNVBAcMA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGlu\nYTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABLawQik+bOgaBNS9M74sjdw4Imqt\ng64ZdUP83144uaSHQPuUq8OYMMK/apGUSWtrorOJ2Gj9PMV+0Qs8yzeOAdWjVjBU\nMBIGA1UdEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFDRTjX3QJOAHbnREWkYokhXR\npzsGMB8GA1UdIwQYMBaAFDRTjX3QJOAHbnREWkYokhXRpzsGMAoGCCqGSM49BAMC\nA0cAMEQCIBdqKO3TZ2KLWKcDErGiOc7TWIVChFfzO4Bn9AuunU6QAiAvweATe3z1\n4CISjkUeaw8SdMSKV5GgRZCjgwzF8lLvNA==\n-----END CERTIFICATE-----\n\032\006Admins\"4\n\007Writers\022)\022\037\010\001\022\033\022\010\022\006\010\001\022\002\010\000\032\017\022\r\n\013ordererOrg0\032\006Admins\"4\n\007Readers\022)\022\037\010\001\022\033\022\010\022\006\010\001\022\002\010\000\032\017\022\r\n\013ordererOrg0\032\006Admins\"5\n\006Admins\022+\022!\010\001\022\035\022\010\022\006\010\001\022\002\010\000\032\021\022\017\n\013ordererOrg0\020\001\032\006Admins\032\037\n\023ChannelRestrictions\022\010\032\006Admins\032\036\n\014BatchTimeout\022\016\022\004\n\0021s\032\006Admins\032!\n\rConsensusType\022\020\022\006\n\004solo\032\006Admins\032\"\n\tBatchSize\022\025\022\013\010\n\020\200\302\327/\030\200\200 \032\006Admins\"*\n\017BlockValidation\022\027\022\r\010\003\022\t\n\007Writers\032\006Admins\"\"\n\007Writers\022\027\022\r\010\003\022\t\n\007Writers\032\006Admins\"\"\n\007Readers\022\027\022\r\010\003\022\t\n\007Readers\032\006Admins\"\"\n\006Admins\022\030\022\016\010\003\022\n\n\006Admins\020\002\032\006Admins\022\363\r\n\013Application\022\343\r\010\001\022\212\r\n\010peerOrg0\022\375\014\032\340\013\n\003MSP\022\330\013\022\315\013\022\312\013\n\010peerOrg0\022\335\005-----BEGIN CERTIFICATE-----\nMIIB8DCCAZagAwIBAwICA+gwCgYIKoZIzj0EAwIwVTERMA8GA1UEAwwIcGVlck9y\nZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEXMBUG\nA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTM0WhcNMTgwNDI3MTg0\nOTM0WjBVMREwDwYDVQQDDAhwZWVyT3JnMDELMAkGA1UEBhMCVVMxDDAKBgNVBAcM\nA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZMBMG\nByqGSM49AgEGCCqGSM49AwEHA0IABHoyrgAAOk5OlEGB1GCLY4eIZuhVtAy55Mea\nmoa+LzZGyA5kKfI9n5rw6pbum0ZcoWvv26bB6MJsE53eRJexOu6jVjBUMBIGA1Ud\nEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFMjjW1UqCPlfPHykFupBF0DJjgAjMB8G\nA1UdIwQYMBaAFMjjW1UqCPlfPHykFupBF0DJjgAjMAoGCCqGSM49BAMCA0gAMEUC\nIQDNERoPNQ0pCa+mnU/q4ef6o/hgMZeOm6cwDVreH/79gwIgf9Xvl2FCIdUFdS5G\nv4D1ZnEJ9emNk6FETGC8NKnnUuc=\n-----END CERTIFICATE-----\n\"\335\005-----BEGIN CERTIFICATE-----\nMIIB8DCCAZagAwIBAwICA+gwCgYIKoZIzj0EAwIwVTERMA8GA1UEAwwIcGVlck9y\nZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEXMBUG\nA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTM0WhcNMTgwNDI3MTg0\nOTM0WjBVMREwDwYDVQQDDAhwZWVyT3JnMDELMAkGA1UEBhMCVVMxDDAKBgNVBAcM\nA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZMBMG\nByqGSM49AgEGCCqGSM49AwEHA0IABHoyrgAAOk5OlEGB1GCLY4eIZuhVtAy55Mea\nmoa+LzZGyA5kKfI9n5rw6pbum0ZcoWvv26bB6MJsE53eRJexOu6jVjBUMBIGA1Ud\nEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFMjjW1UqCPlfPHykFupBF0DJjgAjMB8G\nA1UdIwQYMBaAFMjjW1UqCPlfPHykFupBF0DJjgAjMAoGCCqGSM49BAMCA0gAMEUC\nIQDNERoPNQ0pCa+mnU/q4ef6o/hgMZeOm6cwDVreH/79gwIgf9Xvl2FCIdUFdS5G\nv4D1ZnEJ9emNk6FETGC8NKnnUuc=\n-----END CERTIFICATE-----\n\032\006Admins\"1\n\007Readers\022&\022\034\010\001\022\030\022\010\022\006\010\001\022\002\010\000\032\014\022\n\n\010peerOrg0\032\006Admins\"2\n\006Admins\022(\022\036\010\001\022\032\022\010\022\006\010\001\022\002\010\000\032\016\022\014\n\010peerOrg0\020\001\032\006Admins\"1\n\007Writers\022&\022\034\010\001\022\030\022\010\022\006\010\001\022\002\010\000\032\014\022\n\n\010peerOrg0\032\006Admins\"\032\n\006Admins\022\020\022\016\010\003\022\n\n\006Admins\020\002\"\032\n\007Writers\022\017\022\r\010\003\022\t\n\007Writers\"\032\n\007Readers\022\017\022\r\010\003\022\t\n\007Readers\032\035\n\nConsortium\022\017\022\r\n\013consortium1\032K\n\020OrdererAddresses\0227\022-\n\rorderer0:7050\n\rorderer1:7050\n\rorderer2:7050\032\006Admins\032&\n\020HashingAlgorithm\022\022\022\010\n\006SHA256\032\006Admins\032-\n\031BlockDataHashingStructure\022\020\022\006\010\377\377\377\377\017\032\006Admins\"\"\n\007Readers\022\027\022\r\010\003\022\t\n\007Readers\032\006Admins\"\"\n\006Admins\022\030\022\016\010\003\022\n\n\006Admins\020\002\032\006Admins\"\"\n\007Writers\022\027\022\r\010\003\022\t\n\007Writers\032\006Admins\022\251\026\n\336\025\n\267\006\n/\010\002\020\001\032\006\010\275\372\210\310\005\"!com.acme.blockchain.jdoe.Channel1\022\203\006\n\346\005\n\010peerOrg0\022\331\005-----BEGIN CERTIFICATE-----\nMIIB7jCCAZOgAwIBAwICA+gwCgYIKoZIzj0EAwIwVTERMA8GA1UEAwwIcGVlck9y\nZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEXMBUG\nA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTQyWhcNMTgwNDI3MTg0\nOTQyWjBYMRQwEgYDVQQDDAtjb25zb3J0aXVtMTELMAkGA1UEBhMCVVMxDDAKBgNV\nBAcMA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZ\nMBMGByqGSM49AgEGCCqGSM49AwEHA0IABGz3FMovRstBK5DubTSWl4auUBNjUeMk\nmW6x0UbEXonK/sj6O5AhEN4EkrfyVJF/sA9m52AHsmEzaP2odIgYEx+jUDBOMAwG\nA1UdEwEB/wQCMAAwHQYDVR0OBBYEFAJ9LmlaPF5mnEYRzANjO816UdYaMB8GA1Ud\nIwQYMBaAFMjjW1UqCPlfPHykFupBF0DJjgAjMAoGCCqGSM49BAMCA0kAMEYCIQCV\nGtvbmUTYRzpmlju3p/cUA5kQRhXwxEf9llMUhePEEAIhAKOv+ja0WY9izP2MAdGx\nUuWd5HCHk0DT3FI2osl/qYIO\n-----END CERTIFICATE-----\n\022\030x\304\242\246\224\317w\014\0279*\355\"\246\2370\220\310\233\305k`\024l\022\241\017\n\372\001\n!com.acme.blockchain.jdoe.Channel1\022>\022\035\n\013Application\022\016\022\014\n\010peerOrg0\022\000\032\035\n\nConsortium\022\017\022\r\n\013consortium1\032\224\001\022s\n\013Application\022d\010\001\022\014\n\010peerOrg0\022\000\"\032\n\007Writers\022\017\022\r\010\003\022\t\n\007Writers\"\032\n\007Readers\022\017\022\r\010\003\022\t\n\007Readers\"\032\n\006Admins\022\020\022\016\010\003\022\n\n\006Admins\020\002\032\035\n\nConsortium\022\017\022\r\n\013consortium1\022\317\006\n\203\006\n\346\005\n\010peerOrg0\022\331\005-----BEGIN CERTIFICATE-----\nMIIB7jCCAZOgAwIBAwICA+gwCgYIKoZIzj0EAwIwVTERMA8GA1UEAwwIcGVlck9y\nZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEXMBUG\nA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTQyWhcNMTgwNDI3MTg0\nOTQyWjBYMRQwEgYDVQQDDAtjb25zb3J0aXVtMTELMAkGA1UEBhMCVVMxDDAKBgNV\nBAcMA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZ\nMBMGByqGSM49AgEGCCqGSM49AwEHA0IABGz3FMovRstBK5DubTSWl4auUBNjUeMk\nmW6x0UbEXonK/sj6O5AhEN4EkrfyVJF/sA9m52AHsmEzaP2odIgYEx+jUDBOMAwG\nA1UdEwEB/wQCMAAwHQYDVR0OBBYEFAJ9LmlaPF5mnEYRzANjO816UdYaMB8GA1Ud\nIwQYMBaAFMjjW1UqCPlfPHykFupBF0DJjgAjMAoGCCqGSM49BAMCA0kAMEYCIQCV\nGtvbmUTYRzpmlju3p/cUA5kQRhXwxEf9llMUhePEEAIhAKOv+ja0WY9izP2MAdGx\nUuWd5HCHk0DT3FI2osl/qYIO\n-----END CERTIFICATE-----\n\022\030\2771\351\243\370\256\004\261\324\262~\234\3149\232\346\240\245\016\365\362i\031\234\022G0E\002!\000\360\250\262\200~q\3175C3\233\201\342q\333i\363\324\324dwUD\325\243\017\021\273\205\007Q\"\002 ?\375\301\005\2455\362\215[\231\007\323Y\300\265{C\254\313\200\265\023_\361\365M\272\357\232R2$\022\317\006\n\203\006\n\346\005\n\010peerOrg0\022\331\005-----BEGIN CERTIFICATE-----\nMIIB7TCCAZOgAwIBAwICA+gwCgYIKoZIzj0EAwIwVTERMA8GA1UEAwwIcGVlck9y\nZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEXMBUG\nA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTQyWhcNMTgwNDI3MTg0\nOTQyWjBYMRQwEgYDVQQDDAtjb25zb3J0aXVtMTELMAkGA1UEBhMCVVMxDDAKBgNV\nBAcMA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZ\nMBMGByqGSM49AgEGCCqGSM49AwEHA0IABBamEscugFW9dJ0F1xC/by2vD0hixaRB\ntiL3xNWO5CGcKmkc73N7/6r632LJqb7jofX6uwE1Ib935mi2s+LixmWjUDBOMAwG\nA1UdEwEB/wQCMAAwHQYDVR0OBBYEFLb6oil7KHKd67G+mDqgzphpFet4MB8GA1Ud\nIwQYMBaAFMjjW1UqCPlfPHykFupBF0DJjgAjMAoGCCqGSM49BAMCA0gAMEUCIFP+\nk95YP4GWpCqayw1w+xMvrUJLap09D0kRrUgvVIHYAiEAw9ae6L0cUx62eD0HBbNy\nahPwqTJzh29i7wDevYXycho=\n-----END CERTIFICATE-----\n\022\030\357v_\007i\014\375\373\342\013\031\232\217\030;\340)^\203s\225\026;\326\022G0E\002!\000\230sr\217\312\354\350\233\2766\200\035\273\371\2543\\\212r\302-h\316\353\224\206\264c\036\223\315\002\002 N\347=\352O\302\225iX\311\364\200\220\311F}]\201\203\311\246\212*\260R[fZ\312\335\315\'\022F0D\002 ?M\324\270Fr\201\322\000\024S\002\360<cb\351boH4Z\205\216\222\225\025o\304\326\301\003\002 1{(!\376\nsrO\010E\311\275\367\361\353\342[od_\367\217:\036\207L\332c\r\t4\022F0D\002 g\374\032Q\236{\362:\204\207\230\330\205\030b\200^J]R\026\2500\300\314\244IT\321is\344\002 E\306\271s\273\2613y\021\027\222d\217\303M\320\t\374(\323\323MS\263\225\303\300\347\201\013\021\006"
- }
- metadata {
- metadata: ""
- metadata: ""
- metadata: ""
- metadata: ""
- }
- </code>
- </div>
- <div>
- <div class="scrollBox">
- <code>
- from common.common_pb2 import Block
- block = Block()
- data = None
- with open('tmp/40dc98342b7a11e79ac800163e000427/dev0org0-genesisblockformynewchannel-0000.protobuf') as f:
- data = f.read()
- block.ParseFromString(data)
- </code>
- </div>
- </div></div><div id="Step 25">
- <h2>Step 25</h2>
- <hr/>
- <h3>Given user "dev0Org0" gives "genesisBlockForMyNewChannel" to user "dev0Org1"</h3>
- </div><div id="dev0Org1-genesisBlockForMyNewChannel">
- <h4>User dev0Org1 setting tag key genesisBlockForMyNewChannel to value</h4>
- </div><div>
- <a href="./dev0org1-genesisblockformynewchannel-0000.protobuf" title="dev0org1-genesisblockformynewchannel-0000.protobuf">Protobuf message in binary form</a>
- <div class="scrollBox">
- <code>
- header {
- data_hash: "y7*\252<\347\257y]15VH\320[\355t\277\207~3\204g\n\263\224\003\261A\305u\260"
- }
- data {
- data: "\n\334<\n\242\006\n-\010\001\032\006\010\306\372\210\310\005\"!com.acme.blockchain.jdoe.Channel1\022\360\005\n\323\005\n\013ordererOrg0\022\303\005-----BEGIN -----\nMIIB7TCCAZOgAwIBAwICA+gwCgYIKoZIzj0EAwIwWDEUMBIGA1UEAwwLb3JkZXJl\nck9yZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEX\nMBUGA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTMzWhcNMTgwNDI3\nMTg0OTMzWjBVMREwDwYDVQQDDAhvcmRlcmVyMDELMAkGA1UEBhMCVVMxDDAKBgNV\nBAcMA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZ\nMBMGByqGSM49AgEGCCqGSM49AwEHA0IABB8Bc1xevTEOQV7O5mIjqQP/fNpq/NMo\nIuiFnFkG+1S5Msdled7AEUMgeUaEP8U/wMfqR8Edb5cdwkeH47lPzHSjUDBOMAwG\nA1UdEwEB/wQCMAAwHQYDVR0OBBYEFMnu76tt+7C+iOtOu+UrIVCnnu5QMB8GA1Ud\nIwQYMBaAFDRTjX3QJOAHbnREWkYokhXRpzsGMAoGCCqGSM49BAMCA0gAMEUCIEBp\nCM37305NHEqxGZwOsFKncUVTISI+D8+qg1qFn/GQAiEAuohclwpctW0QtHp/sp0L\n38MGiwiA78Rt5aElon+ejTE=\n-----END -----\n\022\030{\346H\310\273\247L\022\326\005\272\202\r-\256Xj\211a\220\225#\242j\022\2646\n\205 \010\001\022\200 \022\330\017\n\007Orderer\022\314\017\022\251\r\n\013ordererOrg0\022\231\r\032\363\013\n\003MSP\022\353\013\022\340\013\022\335\013\n\013ordererOrg0\022\345\005-----BEGIN CERTIFICATE-----\nMIIB9TCCAZygAwIBAwICA+gwCgYIKoZIzj0EAwIwWDEUMBIGA1UEAwwLb3JkZXJl\nck9yZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEX\nMBUGA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTMzWhcNMTgwNDI3\nMTg0OTMzWjBYMRQwEgYDVQQDDAtvcmRlcmVyT3JnMDELMAkGA1UEBhMCVVMxDDAK\nBgNVBAcMA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGlu\nYTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABLawQik+bOgaBNS9M74sjdw4Imqt\ng64ZdUP83144uaSHQPuUq8OYMMK/apGUSWtrorOJ2Gj9PMV+0Qs8yzeOAdWjVjBU\nMBIGA1UdEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFDRTjX3QJOAHbnREWkYokhXR\npzsGMB8GA1UdIwQYMBaAFDRTjX3QJOAHbnREWkYokhXRpzsGMAoGCCqGSM49BAMC\nA0cAMEQCIBdqKO3TZ2KLWKcDErGiOc7TWIVChFfzO4Bn9AuunU6QAiAvweATe3z1\n4CISjkUeaw8SdMSKV5GgRZCjgwzF8lLvNA==\n-----END CERTIFICATE-----\n\"\345\005-----BEGIN CERTIFICATE-----\nMIIB9TCCAZygAwIBAwICA+gwCgYIKoZIzj0EAwIwWDEUMBIGA1UEAwwLb3JkZXJl\nck9yZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEX\nMBUGA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTMzWhcNMTgwNDI3\nMTg0OTMzWjBYMRQwEgYDVQQDDAtvcmRlcmVyT3JnMDELMAkGA1UEBhMCVVMxDDAK\nBgNVBAcMA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGlu\nYTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABLawQik+bOgaBNS9M74sjdw4Imqt\ng64ZdUP83144uaSHQPuUq8OYMMK/apGUSWtrorOJ2Gj9PMV+0Qs8yzeOAdWjVjBU\nMBIGA1UdEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFDRTjX3QJOAHbnREWkYokhXR\npzsGMB8GA1UdIwQYMBaAFDRTjX3QJOAHbnREWkYokhXRpzsGMAoGCCqGSM49BAMC\nA0cAMEQCIBdqKO3TZ2KLWKcDErGiOc7TWIVChFfzO4Bn9AuunU6QAiAvweATe3z1\n4CISjkUeaw8SdMSKV5GgRZCjgwzF8lLvNA==\n-----END CERTIFICATE-----\n\032\006Admins\"4\n\007Writers\022)\022\037\010\001\022\033\022\010\022\006\010\001\022\002\010\000\032\017\022\r\n\013ordererOrg0\032\006Admins\"4\n\007Readers\022)\022\037\010\001\022\033\022\010\022\006\010\001\022\002\010\000\032\017\022\r\n\013ordererOrg0\032\006Admins\"5\n\006Admins\022+\022!\010\001\022\035\022\010\022\006\010\001\022\002\010\000\032\021\022\017\n\013ordererOrg0\020\001\032\006Admins\032\037\n\023ChannelRestrictions\022\010\032\006Admins\032\036\n\014BatchTimeout\022\016\022\004\n\0021s\032\006Admins\032!\n\rConsensusType\022\020\022\006\n\004solo\032\006Admins\032\"\n\tBatchSize\022\025\022\013\010\n\020\200\302\327/\030\200\200 \032\006Admins\"*\n\017BlockValidation\022\027\022\r\010\003\022\t\n\007Writers\032\006Admins\"\"\n\007Writers\022\027\022\r\010\003\022\t\n\007Writers\032\006Admins\"\"\n\007Readers\022\027\022\r\010\003\022\t\n\007Readers\032\006Admins\"\"\n\006Admins\022\030\022\016\010\003\022\n\n\006Admins\020\002\032\006Admins\022\363\r\n\013Application\022\343\r\010\001\022\212\r\n\010peerOrg0\022\375\014\032\340\013\n\003MSP\022\330\013\022\315\013\022\312\013\n\010peerOrg0\022\335\005-----BEGIN CERTIFICATE-----\nMIIB8DCCAZagAwIBAwICA+gwCgYIKoZIzj0EAwIwVTERMA8GA1UEAwwIcGVlck9y\nZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEXMBUG\nA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTM0WhcNMTgwNDI3MTg0\nOTM0WjBVMREwDwYDVQQDDAhwZWVyT3JnMDELMAkGA1UEBhMCVVMxDDAKBgNVBAcM\nA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZMBMG\nByqGSM49AgEGCCqGSM49AwEHA0IABHoyrgAAOk5OlEGB1GCLY4eIZuhVtAy55Mea\nmoa+LzZGyA5kKfI9n5rw6pbum0ZcoWvv26bB6MJsE53eRJexOu6jVjBUMBIGA1Ud\nEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFMjjW1UqCPlfPHykFupBF0DJjgAjMB8G\nA1UdIwQYMBaAFMjjW1UqCPlfPHykFupBF0DJjgAjMAoGCCqGSM49BAMCA0gAMEUC\nIQDNERoPNQ0pCa+mnU/q4ef6o/hgMZeOm6cwDVreH/79gwIgf9Xvl2FCIdUFdS5G\nv4D1ZnEJ9emNk6FETGC8NKnnUuc=\n-----END CERTIFICATE-----\n\"\335\005-----BEGIN CERTIFICATE-----\nMIIB8DCCAZagAwIBAwICA+gwCgYIKoZIzj0EAwIwVTERMA8GA1UEAwwIcGVlck9y\nZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEXMBUG\nA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTM0WhcNMTgwNDI3MTg0\nOTM0WjBVMREwDwYDVQQDDAhwZWVyT3JnMDELMAkGA1UEBhMCVVMxDDAKBgNVBAcM\nA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZMBMG\nByqGSM49AgEGCCqGSM49AwEHA0IABHoyrgAAOk5OlEGB1GCLY4eIZuhVtAy55Mea\nmoa+LzZGyA5kKfI9n5rw6pbum0ZcoWvv26bB6MJsE53eRJexOu6jVjBUMBIGA1Ud\nEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFMjjW1UqCPlfPHykFupBF0DJjgAjMB8G\nA1UdIwQYMBaAFMjjW1UqCPlfPHykFupBF0DJjgAjMAoGCCqGSM49BAMCA0gAMEUC\nIQDNERoPNQ0pCa+mnU/q4ef6o/hgMZeOm6cwDVreH/79gwIgf9Xvl2FCIdUFdS5G\nv4D1ZnEJ9emNk6FETGC8NKnnUuc=\n-----END CERTIFICATE-----\n\032\006Admins\"1\n\007Readers\022&\022\034\010\001\022\030\022\010\022\006\010\001\022\002\010\000\032\014\022\n\n\010peerOrg0\032\006Admins\"2\n\006Admins\022(\022\036\010\001\022\032\022\010\022\006\010\001\022\002\010\000\032\016\022\014\n\010peerOrg0\020\001\032\006Admins\"1\n\007Writers\022&\022\034\010\001\022\030\022\010\022\006\010\001\022\002\010\000\032\014\022\n\n\010peerOrg0\032\006Admins\"\032\n\006Admins\022\020\022\016\010\003\022\n\n\006Admins\020\002\"\032\n\007Writers\022\017\022\r\010\003\022\t\n\007Writers\"\032\n\007Readers\022\017\022\r\010\003\022\t\n\007Readers\032\035\n\nConsortium\022\017\022\r\n\013consortium1\032K\n\020OrdererAddresses\0227\022-\n\rorderer0:7050\n\rorderer1:7050\n\rorderer2:7050\032\006Admins\032&\n\020HashingAlgorithm\022\022\022\010\n\006SHA256\032\006Admins\032-\n\031BlockDataHashingStructure\022\020\022\006\010\377\377\377\377\017\032\006Admins\"\"\n\007Readers\022\027\022\r\010\003\022\t\n\007Readers\032\006Admins\"\"\n\006Admins\022\030\022\016\010\003\022\n\n\006Admins\020\002\032\006Admins\"\"\n\007Writers\022\027\022\r\010\003\022\t\n\007Writers\032\006Admins\022\251\026\n\336\025\n\267\006\n/\010\002\020\001\032\006\010\275\372\210\310\005\"!com.acme.blockchain.jdoe.Channel1\022\203\006\n\346\005\n\010peerOrg0\022\331\005-----BEGIN CERTIFICATE-----\nMIIB7jCCAZOgAwIBAwICA+gwCgYIKoZIzj0EAwIwVTERMA8GA1UEAwwIcGVlck9y\nZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEXMBUG\nA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTQyWhcNMTgwNDI3MTg0\nOTQyWjBYMRQwEgYDVQQDDAtjb25zb3J0aXVtMTELMAkGA1UEBhMCVVMxDDAKBgNV\nBAcMA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZ\nMBMGByqGSM49AgEGCCqGSM49AwEHA0IABGz3FMovRstBK5DubTSWl4auUBNjUeMk\nmW6x0UbEXonK/sj6O5AhEN4EkrfyVJF/sA9m52AHsmEzaP2odIgYEx+jUDBOMAwG\nA1UdEwEB/wQCMAAwHQYDVR0OBBYEFAJ9LmlaPF5mnEYRzANjO816UdYaMB8GA1Ud\nIwQYMBaAFMjjW1UqCPlfPHykFupBF0DJjgAjMAoGCCqGSM49BAMCA0kAMEYCIQCV\nGtvbmUTYRzpmlju3p/cUA5kQRhXwxEf9llMUhePEEAIhAKOv+ja0WY9izP2MAdGx\nUuWd5HCHk0DT3FI2osl/qYIO\n-----END CERTIFICATE-----\n\022\030x\304\242\246\224\317w\014\0279*\355\"\246\2370\220\310\233\305k`\024l\022\241\017\n\372\001\n!com.acme.blockchain.jdoe.Channel1\022>\022\035\n\013Application\022\016\022\014\n\010peerOrg0\022\000\032\035\n\nConsortium\022\017\022\r\n\013consortium1\032\224\001\022s\n\013Application\022d\010\001\022\014\n\010peerOrg0\022\000\"\032\n\007Writers\022\017\022\r\010\003\022\t\n\007Writers\"\032\n\007Readers\022\017\022\r\010\003\022\t\n\007Readers\"\032\n\006Admins\022\020\022\016\010\003\022\n\n\006Admins\020\002\032\035\n\nConsortium\022\017\022\r\n\013consortium1\022\317\006\n\203\006\n\346\005\n\010peerOrg0\022\331\005-----BEGIN CERTIFICATE-----\nMIIB7jCCAZOgAwIBAwICA+gwCgYIKoZIzj0EAwIwVTERMA8GA1UEAwwIcGVlck9y\nZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEXMBUG\nA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTQyWhcNMTgwNDI3MTg0\nOTQyWjBYMRQwEgYDVQQDDAtjb25zb3J0aXVtMTELMAkGA1UEBhMCVVMxDDAKBgNV\nBAcMA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZ\nMBMGByqGSM49AgEGCCqGSM49AwEHA0IABGz3FMovRstBK5DubTSWl4auUBNjUeMk\nmW6x0UbEXonK/sj6O5AhEN4EkrfyVJF/sA9m52AHsmEzaP2odIgYEx+jUDBOMAwG\nA1UdEwEB/wQCMAAwHQYDVR0OBBYEFAJ9LmlaPF5mnEYRzANjO816UdYaMB8GA1Ud\nIwQYMBaAFMjjW1UqCPlfPHykFupBF0DJjgAjMAoGCCqGSM49BAMCA0kAMEYCIQCV\nGtvbmUTYRzpmlju3p/cUA5kQRhXwxEf9llMUhePEEAIhAKOv+ja0WY9izP2MAdGx\nUuWd5HCHk0DT3FI2osl/qYIO\n-----END CERTIFICATE-----\n\022\030\2771\351\243\370\256\004\261\324\262~\234\3149\232\346\240\245\016\365\362i\031\234\022G0E\002!\000\360\250\262\200~q\3175C3\233\201\342q\333i\363\324\324dwUD\325\243\017\021\273\205\007Q\"\002 ?\375\301\005\2455\362\215[\231\007\323Y\300\265{C\254\313\200\265\023_\361\365M\272\357\232R2$\022\317\006\n\203\006\n\346\005\n\010peerOrg0\022\331\005-----BEGIN CERTIFICATE-----\nMIIB7TCCAZOgAwIBAwICA+gwCgYIKoZIzj0EAwIwVTERMA8GA1UEAwwIcGVlck9y\nZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEXMBUG\nA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTQyWhcNMTgwNDI3MTg0\nOTQyWjBYMRQwEgYDVQQDDAtjb25zb3J0aXVtMTELMAkGA1UEBhMCVVMxDDAKBgNV\nBAcMA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZ\nMBMGByqGSM49AgEGCCqGSM49AwEHA0IABBamEscugFW9dJ0F1xC/by2vD0hixaRB\ntiL3xNWO5CGcKmkc73N7/6r632LJqb7jofX6uwE1Ib935mi2s+LixmWjUDBOMAwG\nA1UdEwEB/wQCMAAwHQYDVR0OBBYEFLb6oil7KHKd67G+mDqgzphpFet4MB8GA1Ud\nIwQYMBaAFMjjW1UqCPlfPHykFupBF0DJjgAjMAoGCCqGSM49BAMCA0gAMEUCIFP+\nk95YP4GWpCqayw1w+xMvrUJLap09D0kRrUgvVIHYAiEAw9ae6L0cUx62eD0HBbNy\nahPwqTJzh29i7wDevYXycho=\n-----END CERTIFICATE-----\n\022\030\357v_\007i\014\375\373\342\013\031\232\217\030;\340)^\203s\225\026;\326\022G0E\002!\000\230sr\217\312\354\350\233\2766\200\035\273\371\2543\\\212r\302-h\316\353\224\206\264c\036\223\315\002\002 N\347=\352O\302\225iX\311\364\200\220\311F}]\201\203\311\246\212*\260R[fZ\312\335\315\'\022F0D\002 ?M\324\270Fr\201\322\000\024S\002\360<cb\351boH4Z\205\216\222\225\025o\304\326\301\003\002 1{(!\376\nsrO\010E\311\275\367\361\353\342[od_\367\217:\036\207L\332c\r\t4\022F0D\002 g\374\032Q\236{\362:\204\207\230\330\205\030b\200^J]R\026\2500\300\314\244IT\321is\344\002 E\306\271s\273\2613y\021\027\222d\217\303M\320\t\374(\323\323MS\263\225\303\300\347\201\013\021\006"
- }
- metadata {
- metadata: ""
- metadata: ""
- metadata: ""
- metadata: ""
- }
- </code>
- </div>
- <div>
- <div class="scrollBox">
- <code>
- from common.common_pb2 import Block
- block = Block()
- data = None
- with open('tmp/40dc98342b7a11e79ac800163e000427/dev0org1-genesisblockformynewchannel-0000.protobuf') as f:
- data = f.read()
- block.ParseFromString(data)
- </code>
- </div>
- </div></div><div id="Step 26">
- <h2>Step 26</h2>
- <hr/>
- <h3>Given user "dev0Org0" gives "genesisBlockForMyNewChannel" to user "peer0Admin"</h3>
- </div><div id="peer0Admin-genesisBlockForMyNewChannel">
- <h4>User peer0Admin setting tag key genesisBlockForMyNewChannel to value</h4>
- </div><div>
- <a href="./peer0admin-genesisblockformynewchannel-0000.protobuf" title="peer0admin-genesisblockformynewchannel-0000.protobuf">Protobuf message in binary form</a>
- <div class="scrollBox">
- <code>
- header {
- data_hash: "y7*\252<\347\257y]15VH\320[\355t\277\207~3\204g\n\263\224\003\261A\305u\260"
- }
- data {
- data: "\n\334<\n\242\006\n-\010\001\032\006\010\306\372\210\310\005\"!com.acme.blockchain.jdoe.Channel1\022\360\005\n\323\005\n\013ordererOrg0\022\303\005-----BEGIN -----\nMIIB7TCCAZOgAwIBAwICA+gwCgYIKoZIzj0EAwIwWDEUMBIGA1UEAwwLb3JkZXJl\nck9yZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEX\nMBUGA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTMzWhcNMTgwNDI3\nMTg0OTMzWjBVMREwDwYDVQQDDAhvcmRlcmVyMDELMAkGA1UEBhMCVVMxDDAKBgNV\nBAcMA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZ\nMBMGByqGSM49AgEGCCqGSM49AwEHA0IABB8Bc1xevTEOQV7O5mIjqQP/fNpq/NMo\nIuiFnFkG+1S5Msdled7AEUMgeUaEP8U/wMfqR8Edb5cdwkeH47lPzHSjUDBOMAwG\nA1UdEwEB/wQCMAAwHQYDVR0OBBYEFMnu76tt+7C+iOtOu+UrIVCnnu5QMB8GA1Ud\nIwQYMBaAFDRTjX3QJOAHbnREWkYokhXRpzsGMAoGCCqGSM49BAMCA0gAMEUCIEBp\nCM37305NHEqxGZwOsFKncUVTISI+D8+qg1qFn/GQAiEAuohclwpctW0QtHp/sp0L\n38MGiwiA78Rt5aElon+ejTE=\n-----END -----\n\022\030{\346H\310\273\247L\022\326\005\272\202\r-\256Xj\211a\220\225#\242j\022\2646\n\205 \010\001\022\200 \022\330\017\n\007Orderer\022\314\017\022\251\r\n\013ordererOrg0\022\231\r\032\363\013\n\003MSP\022\353\013\022\340\013\022\335\013\n\013ordererOrg0\022\345\005-----BEGIN CERTIFICATE-----\nMIIB9TCCAZygAwIBAwICA+gwCgYIKoZIzj0EAwIwWDEUMBIGA1UEAwwLb3JkZXJl\nck9yZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEX\nMBUGA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTMzWhcNMTgwNDI3\nMTg0OTMzWjBYMRQwEgYDVQQDDAtvcmRlcmVyT3JnMDELMAkGA1UEBhMCVVMxDDAK\nBgNVBAcMA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGlu\nYTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABLawQik+bOgaBNS9M74sjdw4Imqt\ng64ZdUP83144uaSHQPuUq8OYMMK/apGUSWtrorOJ2Gj9PMV+0Qs8yzeOAdWjVjBU\nMBIGA1UdEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFDRTjX3QJOAHbnREWkYokhXR\npzsGMB8GA1UdIwQYMBaAFDRTjX3QJOAHbnREWkYokhXRpzsGMAoGCCqGSM49BAMC\nA0cAMEQCIBdqKO3TZ2KLWKcDErGiOc7TWIVChFfzO4Bn9AuunU6QAiAvweATe3z1\n4CISjkUeaw8SdMSKV5GgRZCjgwzF8lLvNA==\n-----END CERTIFICATE-----\n\"\345\005-----BEGIN CERTIFICATE-----\nMIIB9TCCAZygAwIBAwICA+gwCgYIKoZIzj0EAwIwWDEUMBIGA1UEAwwLb3JkZXJl\nck9yZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEX\nMBUGA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTMzWhcNMTgwNDI3\nMTg0OTMzWjBYMRQwEgYDVQQDDAtvcmRlcmVyT3JnMDELMAkGA1UEBhMCVVMxDDAK\nBgNVBAcMA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGlu\nYTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABLawQik+bOgaBNS9M74sjdw4Imqt\ng64ZdUP83144uaSHQPuUq8OYMMK/apGUSWtrorOJ2Gj9PMV+0Qs8yzeOAdWjVjBU\nMBIGA1UdEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFDRTjX3QJOAHbnREWkYokhXR\npzsGMB8GA1UdIwQYMBaAFDRTjX3QJOAHbnREWkYokhXRpzsGMAoGCCqGSM49BAMC\nA0cAMEQCIBdqKO3TZ2KLWKcDErGiOc7TWIVChFfzO4Bn9AuunU6QAiAvweATe3z1\n4CISjkUeaw8SdMSKV5GgRZCjgwzF8lLvNA==\n-----END CERTIFICATE-----\n\032\006Admins\"4\n\007Writers\022)\022\037\010\001\022\033\022\010\022\006\010\001\022\002\010\000\032\017\022\r\n\013ordererOrg0\032\006Admins\"4\n\007Readers\022)\022\037\010\001\022\033\022\010\022\006\010\001\022\002\010\000\032\017\022\r\n\013ordererOrg0\032\006Admins\"5\n\006Admins\022+\022!\010\001\022\035\022\010\022\006\010\001\022\002\010\000\032\021\022\017\n\013ordererOrg0\020\001\032\006Admins\032\037\n\023ChannelRestrictions\022\010\032\006Admins\032\036\n\014BatchTimeout\022\016\022\004\n\0021s\032\006Admins\032!\n\rConsensusType\022\020\022\006\n\004solo\032\006Admins\032\"\n\tBatchSize\022\025\022\013\010\n\020\200\302\327/\030\200\200 \032\006Admins\"*\n\017BlockValidation\022\027\022\r\010\003\022\t\n\007Writers\032\006Admins\"\"\n\007Writers\022\027\022\r\010\003\022\t\n\007Writers\032\006Admins\"\"\n\007Readers\022\027\022\r\010\003\022\t\n\007Readers\032\006Admins\"\"\n\006Admins\022\030\022\016\010\003\022\n\n\006Admins\020\002\032\006Admins\022\363\r\n\013Application\022\343\r\010\001\022\212\r\n\010peerOrg0\022\375\014\032\340\013\n\003MSP\022\330\013\022\315\013\022\312\013\n\010peerOrg0\022\335\005-----BEGIN CERTIFICATE-----\nMIIB8DCCAZagAwIBAwICA+gwCgYIKoZIzj0EAwIwVTERMA8GA1UEAwwIcGVlck9y\nZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEXMBUG\nA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTM0WhcNMTgwNDI3MTg0\nOTM0WjBVMREwDwYDVQQDDAhwZWVyT3JnMDELMAkGA1UEBhMCVVMxDDAKBgNVBAcM\nA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZMBMG\nByqGSM49AgEGCCqGSM49AwEHA0IABHoyrgAAOk5OlEGB1GCLY4eIZuhVtAy55Mea\nmoa+LzZGyA5kKfI9n5rw6pbum0ZcoWvv26bB6MJsE53eRJexOu6jVjBUMBIGA1Ud\nEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFMjjW1UqCPlfPHykFupBF0DJjgAjMB8G\nA1UdIwQYMBaAFMjjW1UqCPlfPHykFupBF0DJjgAjMAoGCCqGSM49BAMCA0gAMEUC\nIQDNERoPNQ0pCa+mnU/q4ef6o/hgMZeOm6cwDVreH/79gwIgf9Xvl2FCIdUFdS5G\nv4D1ZnEJ9emNk6FETGC8NKnnUuc=\n-----END CERTIFICATE-----\n\"\335\005-----BEGIN CERTIFICATE-----\nMIIB8DCCAZagAwIBAwICA+gwCgYIKoZIzj0EAwIwVTERMA8GA1UEAwwIcGVlck9y\nZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEXMBUG\nA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTM0WhcNMTgwNDI3MTg0\nOTM0WjBVMREwDwYDVQQDDAhwZWVyT3JnMDELMAkGA1UEBhMCVVMxDDAKBgNVBAcM\nA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZMBMG\nByqGSM49AgEGCCqGSM49AwEHA0IABHoyrgAAOk5OlEGB1GCLY4eIZuhVtAy55Mea\nmoa+LzZGyA5kKfI9n5rw6pbum0ZcoWvv26bB6MJsE53eRJexOu6jVjBUMBIGA1Ud\nEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFMjjW1UqCPlfPHykFupBF0DJjgAjMB8G\nA1UdIwQYMBaAFMjjW1UqCPlfPHykFupBF0DJjgAjMAoGCCqGSM49BAMCA0gAMEUC\nIQDNERoPNQ0pCa+mnU/q4ef6o/hgMZeOm6cwDVreH/79gwIgf9Xvl2FCIdUFdS5G\nv4D1ZnEJ9emNk6FETGC8NKnnUuc=\n-----END CERTIFICATE-----\n\032\006Admins\"1\n\007Readers\022&\022\034\010\001\022\030\022\010\022\006\010\001\022\002\010\000\032\014\022\n\n\010peerOrg0\032\006Admins\"2\n\006Admins\022(\022\036\010\001\022\032\022\010\022\006\010\001\022\002\010\000\032\016\022\014\n\010peerOrg0\020\001\032\006Admins\"1\n\007Writers\022&\022\034\010\001\022\030\022\010\022\006\010\001\022\002\010\000\032\014\022\n\n\010peerOrg0\032\006Admins\"\032\n\006Admins\022\020\022\016\010\003\022\n\n\006Admins\020\002\"\032\n\007Writers\022\017\022\r\010\003\022\t\n\007Writers\"\032\n\007Readers\022\017\022\r\010\003\022\t\n\007Readers\032\035\n\nConsortium\022\017\022\r\n\013consortium1\032K\n\020OrdererAddresses\0227\022-\n\rorderer0:7050\n\rorderer1:7050\n\rorderer2:7050\032\006Admins\032&\n\020HashingAlgorithm\022\022\022\010\n\006SHA256\032\006Admins\032-\n\031BlockDataHashingStructure\022\020\022\006\010\377\377\377\377\017\032\006Admins\"\"\n\007Readers\022\027\022\r\010\003\022\t\n\007Readers\032\006Admins\"\"\n\006Admins\022\030\022\016\010\003\022\n\n\006Admins\020\002\032\006Admins\"\"\n\007Writers\022\027\022\r\010\003\022\t\n\007Writers\032\006Admins\022\251\026\n\336\025\n\267\006\n/\010\002\020\001\032\006\010\275\372\210\310\005\"!com.acme.blockchain.jdoe.Channel1\022\203\006\n\346\005\n\010peerOrg0\022\331\005-----BEGIN CERTIFICATE-----\nMIIB7jCCAZOgAwIBAwICA+gwCgYIKoZIzj0EAwIwVTERMA8GA1UEAwwIcGVlck9y\nZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEXMBUG\nA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTQyWhcNMTgwNDI3MTg0\nOTQyWjBYMRQwEgYDVQQDDAtjb25zb3J0aXVtMTELMAkGA1UEBhMCVVMxDDAKBgNV\nBAcMA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZ\nMBMGByqGSM49AgEGCCqGSM49AwEHA0IABGz3FMovRstBK5DubTSWl4auUBNjUeMk\nmW6x0UbEXonK/sj6O5AhEN4EkrfyVJF/sA9m52AHsmEzaP2odIgYEx+jUDBOMAwG\nA1UdEwEB/wQCMAAwHQYDVR0OBBYEFAJ9LmlaPF5mnEYRzANjO816UdYaMB8GA1Ud\nIwQYMBaAFMjjW1UqCPlfPHykFupBF0DJjgAjMAoGCCqGSM49BAMCA0kAMEYCIQCV\nGtvbmUTYRzpmlju3p/cUA5kQRhXwxEf9llMUhePEEAIhAKOv+ja0WY9izP2MAdGx\nUuWd5HCHk0DT3FI2osl/qYIO\n-----END CERTIFICATE-----\n\022\030x\304\242\246\224\317w\014\0279*\355\"\246\2370\220\310\233\305k`\024l\022\241\017\n\372\001\n!com.acme.blockchain.jdoe.Channel1\022>\022\035\n\013Application\022\016\022\014\n\010peerOrg0\022\000\032\035\n\nConsortium\022\017\022\r\n\013consortium1\032\224\001\022s\n\013Application\022d\010\001\022\014\n\010peerOrg0\022\000\"\032\n\007Writers\022\017\022\r\010\003\022\t\n\007Writers\"\032\n\007Readers\022\017\022\r\010\003\022\t\n\007Readers\"\032\n\006Admins\022\020\022\016\010\003\022\n\n\006Admins\020\002\032\035\n\nConsortium\022\017\022\r\n\013consortium1\022\317\006\n\203\006\n\346\005\n\010peerOrg0\022\331\005-----BEGIN CERTIFICATE-----\nMIIB7jCCAZOgAwIBAwICA+gwCgYIKoZIzj0EAwIwVTERMA8GA1UEAwwIcGVlck9y\nZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEXMBUG\nA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTQyWhcNMTgwNDI3MTg0\nOTQyWjBYMRQwEgYDVQQDDAtjb25zb3J0aXVtMTELMAkGA1UEBhMCVVMxDDAKBgNV\nBAcMA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZ\nMBMGByqGSM49AgEGCCqGSM49AwEHA0IABGz3FMovRstBK5DubTSWl4auUBNjUeMk\nmW6x0UbEXonK/sj6O5AhEN4EkrfyVJF/sA9m52AHsmEzaP2odIgYEx+jUDBOMAwG\nA1UdEwEB/wQCMAAwHQYDVR0OBBYEFAJ9LmlaPF5mnEYRzANjO816UdYaMB8GA1Ud\nIwQYMBaAFMjjW1UqCPlfPHykFupBF0DJjgAjMAoGCCqGSM49BAMCA0kAMEYCIQCV\nGtvbmUTYRzpmlju3p/cUA5kQRhXwxEf9llMUhePEEAIhAKOv+ja0WY9izP2MAdGx\nUuWd5HCHk0DT3FI2osl/qYIO\n-----END CERTIFICATE-----\n\022\030\2771\351\243\370\256\004\261\324\262~\234\3149\232\346\240\245\016\365\362i\031\234\022G0E\002!\000\360\250\262\200~q\3175C3\233\201\342q\333i\363\324\324dwUD\325\243\017\021\273\205\007Q\"\002 ?\375\301\005\2455\362\215[\231\007\323Y\300\265{C\254\313\200\265\023_\361\365M\272\357\232R2$\022\317\006\n\203\006\n\346\005\n\010peerOrg0\022\331\005-----BEGIN CERTIFICATE-----\nMIIB7TCCAZOgAwIBAwICA+gwCgYIKoZIzj0EAwIwVTERMA8GA1UEAwwIcGVlck9y\nZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEXMBUG\nA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTQyWhcNMTgwNDI3MTg0\nOTQyWjBYMRQwEgYDVQQDDAtjb25zb3J0aXVtMTELMAkGA1UEBhMCVVMxDDAKBgNV\nBAcMA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZ\nMBMGByqGSM49AgEGCCqGSM49AwEHA0IABBamEscugFW9dJ0F1xC/by2vD0hixaRB\ntiL3xNWO5CGcKmkc73N7/6r632LJqb7jofX6uwE1Ib935mi2s+LixmWjUDBOMAwG\nA1UdEwEB/wQCMAAwHQYDVR0OBBYEFLb6oil7KHKd67G+mDqgzphpFet4MB8GA1Ud\nIwQYMBaAFMjjW1UqCPlfPHykFupBF0DJjgAjMAoGCCqGSM49BAMCA0gAMEUCIFP+\nk95YP4GWpCqayw1w+xMvrUJLap09D0kRrUgvVIHYAiEAw9ae6L0cUx62eD0HBbNy\nahPwqTJzh29i7wDevYXycho=\n-----END CERTIFICATE-----\n\022\030\357v_\007i\014\375\373\342\013\031\232\217\030;\340)^\203s\225\026;\326\022G0E\002!\000\230sr\217\312\354\350\233\2766\200\035\273\371\2543\\\212r\302-h\316\353\224\206\264c\036\223\315\002\002 N\347=\352O\302\225iX\311\364\200\220\311F}]\201\203\311\246\212*\260R[fZ\312\335\315\'\022F0D\002 ?M\324\270Fr\201\322\000\024S\002\360<cb\351boH4Z\205\216\222\225\025o\304\326\301\003\002 1{(!\376\nsrO\010E\311\275\367\361\353\342[od_\367\217:\036\207L\332c\r\t4\022F0D\002 g\374\032Q\236{\362:\204\207\230\330\205\030b\200^J]R\026\2500\300\314\244IT\321is\344\002 E\306\271s\273\2613y\021\027\222d\217\303M\320\t\374(\323\323MS\263\225\303\300\347\201\013\021\006"
- }
- metadata {
- metadata: ""
- metadata: ""
- metadata: ""
- metadata: ""
- }
- </code>
- </div>
- <div>
- <div class="scrollBox">
- <code>
- from common.common_pb2 import Block
- block = Block()
- data = None
- with open('tmp/40dc98342b7a11e79ac800163e000427/peer0admin-genesisblockformynewchannel-0000.protobuf') as f:
- data = f.read()
- block.ParseFromString(data)
- </code>
- </div>
- </div></div><div id="Step 27">
- <h2>Step 27</h2>
- <hr/>
- <h3>Given user "dev0Org0" gives "genesisBlockForMyNewChannel" to user "peer1Admin"</h3>
- </div><div id="peer1Admin-genesisBlockForMyNewChannel">
- <h4>User peer1Admin setting tag key genesisBlockForMyNewChannel to value</h4>
- </div><div>
- <a href="./peer1admin-genesisblockformynewchannel-0000.protobuf" title="peer1admin-genesisblockformynewchannel-0000.protobuf">Protobuf message in binary form</a>
- <div class="scrollBox">
- <code>
- header {
- data_hash: "y7*\252<\347\257y]15VH\320[\355t\277\207~3\204g\n\263\224\003\261A\305u\260"
- }
- data {
- data: "\n\334<\n\242\006\n-\010\001\032\006\010\306\372\210\310\005\"!com.acme.blockchain.jdoe.Channel1\022\360\005\n\323\005\n\013ordererOrg0\022\303\005-----BEGIN -----\nMIIB7TCCAZOgAwIBAwICA+gwCgYIKoZIzj0EAwIwWDEUMBIGA1UEAwwLb3JkZXJl\nck9yZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEX\nMBUGA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTMzWhcNMTgwNDI3\nMTg0OTMzWjBVMREwDwYDVQQDDAhvcmRlcmVyMDELMAkGA1UEBhMCVVMxDDAKBgNV\nBAcMA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZ\nMBMGByqGSM49AgEGCCqGSM49AwEHA0IABB8Bc1xevTEOQV7O5mIjqQP/fNpq/NMo\nIuiFnFkG+1S5Msdled7AEUMgeUaEP8U/wMfqR8Edb5cdwkeH47lPzHSjUDBOMAwG\nA1UdEwEB/wQCMAAwHQYDVR0OBBYEFMnu76tt+7C+iOtOu+UrIVCnnu5QMB8GA1Ud\nIwQYMBaAFDRTjX3QJOAHbnREWkYokhXRpzsGMAoGCCqGSM49BAMCA0gAMEUCIEBp\nCM37305NHEqxGZwOsFKncUVTISI+D8+qg1qFn/GQAiEAuohclwpctW0QtHp/sp0L\n38MGiwiA78Rt5aElon+ejTE=\n-----END -----\n\022\030{\346H\310\273\247L\022\326\005\272\202\r-\256Xj\211a\220\225#\242j\022\2646\n\205 \010\001\022\200 \022\330\017\n\007Orderer\022\314\017\022\251\r\n\013ordererOrg0\022\231\r\032\363\013\n\003MSP\022\353\013\022\340\013\022\335\013\n\013ordererOrg0\022\345\005-----BEGIN CERTIFICATE-----\nMIIB9TCCAZygAwIBAwICA+gwCgYIKoZIzj0EAwIwWDEUMBIGA1UEAwwLb3JkZXJl\nck9yZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEX\nMBUGA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTMzWhcNMTgwNDI3\nMTg0OTMzWjBYMRQwEgYDVQQDDAtvcmRlcmVyT3JnMDELMAkGA1UEBhMCVVMxDDAK\nBgNVBAcMA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGlu\nYTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABLawQik+bOgaBNS9M74sjdw4Imqt\ng64ZdUP83144uaSHQPuUq8OYMMK/apGUSWtrorOJ2Gj9PMV+0Qs8yzeOAdWjVjBU\nMBIGA1UdEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFDRTjX3QJOAHbnREWkYokhXR\npzsGMB8GA1UdIwQYMBaAFDRTjX3QJOAHbnREWkYokhXRpzsGMAoGCCqGSM49BAMC\nA0cAMEQCIBdqKO3TZ2KLWKcDErGiOc7TWIVChFfzO4Bn9AuunU6QAiAvweATe3z1\n4CISjkUeaw8SdMSKV5GgRZCjgwzF8lLvNA==\n-----END CERTIFICATE-----\n\"\345\005-----BEGIN CERTIFICATE-----\nMIIB9TCCAZygAwIBAwICA+gwCgYIKoZIzj0EAwIwWDEUMBIGA1UEAwwLb3JkZXJl\nck9yZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEX\nMBUGA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTMzWhcNMTgwNDI3\nMTg0OTMzWjBYMRQwEgYDVQQDDAtvcmRlcmVyT3JnMDELMAkGA1UEBhMCVVMxDDAK\nBgNVBAcMA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGlu\nYTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABLawQik+bOgaBNS9M74sjdw4Imqt\ng64ZdUP83144uaSHQPuUq8OYMMK/apGUSWtrorOJ2Gj9PMV+0Qs8yzeOAdWjVjBU\nMBIGA1UdEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFDRTjX3QJOAHbnREWkYokhXR\npzsGMB8GA1UdIwQYMBaAFDRTjX3QJOAHbnREWkYokhXRpzsGMAoGCCqGSM49BAMC\nA0cAMEQCIBdqKO3TZ2KLWKcDErGiOc7TWIVChFfzO4Bn9AuunU6QAiAvweATe3z1\n4CISjkUeaw8SdMSKV5GgRZCjgwzF8lLvNA==\n-----END CERTIFICATE-----\n\032\006Admins\"4\n\007Writers\022)\022\037\010\001\022\033\022\010\022\006\010\001\022\002\010\000\032\017\022\r\n\013ordererOrg0\032\006Admins\"4\n\007Readers\022)\022\037\010\001\022\033\022\010\022\006\010\001\022\002\010\000\032\017\022\r\n\013ordererOrg0\032\006Admins\"5\n\006Admins\022+\022!\010\001\022\035\022\010\022\006\010\001\022\002\010\000\032\021\022\017\n\013ordererOrg0\020\001\032\006Admins\032\037\n\023ChannelRestrictions\022\010\032\006Admins\032\036\n\014BatchTimeout\022\016\022\004\n\0021s\032\006Admins\032!\n\rConsensusType\022\020\022\006\n\004solo\032\006Admins\032\"\n\tBatchSize\022\025\022\013\010\n\020\200\302\327/\030\200\200 \032\006Admins\"*\n\017BlockValidation\022\027\022\r\010\003\022\t\n\007Writers\032\006Admins\"\"\n\007Writers\022\027\022\r\010\003\022\t\n\007Writers\032\006Admins\"\"\n\007Readers\022\027\022\r\010\003\022\t\n\007Readers\032\006Admins\"\"\n\006Admins\022\030\022\016\010\003\022\n\n\006Admins\020\002\032\006Admins\022\363\r\n\013Application\022\343\r\010\001\022\212\r\n\010peerOrg0\022\375\014\032\340\013\n\003MSP\022\330\013\022\315\013\022\312\013\n\010peerOrg0\022\335\005-----BEGIN CERTIFICATE-----\nMIIB8DCCAZagAwIBAwICA+gwCgYIKoZIzj0EAwIwVTERMA8GA1UEAwwIcGVlck9y\nZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEXMBUG\nA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTM0WhcNMTgwNDI3MTg0\nOTM0WjBVMREwDwYDVQQDDAhwZWVyT3JnMDELMAkGA1UEBhMCVVMxDDAKBgNVBAcM\nA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZMBMG\nByqGSM49AgEGCCqGSM49AwEHA0IABHoyrgAAOk5OlEGB1GCLY4eIZuhVtAy55Mea\nmoa+LzZGyA5kKfI9n5rw6pbum0ZcoWvv26bB6MJsE53eRJexOu6jVjBUMBIGA1Ud\nEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFMjjW1UqCPlfPHykFupBF0DJjgAjMB8G\nA1UdIwQYMBaAFMjjW1UqCPlfPHykFupBF0DJjgAjMAoGCCqGSM49BAMCA0gAMEUC\nIQDNERoPNQ0pCa+mnU/q4ef6o/hgMZeOm6cwDVreH/79gwIgf9Xvl2FCIdUFdS5G\nv4D1ZnEJ9emNk6FETGC8NKnnUuc=\n-----END CERTIFICATE-----\n\"\335\005-----BEGIN CERTIFICATE-----\nMIIB8DCCAZagAwIBAwICA+gwCgYIKoZIzj0EAwIwVTERMA8GA1UEAwwIcGVlck9y\nZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEXMBUG\nA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTM0WhcNMTgwNDI3MTg0\nOTM0WjBVMREwDwYDVQQDDAhwZWVyT3JnMDELMAkGA1UEBhMCVVMxDDAKBgNVBAcM\nA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZMBMG\nByqGSM49AgEGCCqGSM49AwEHA0IABHoyrgAAOk5OlEGB1GCLY4eIZuhVtAy55Mea\nmoa+LzZGyA5kKfI9n5rw6pbum0ZcoWvv26bB6MJsE53eRJexOu6jVjBUMBIGA1Ud\nEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFMjjW1UqCPlfPHykFupBF0DJjgAjMB8G\nA1UdIwQYMBaAFMjjW1UqCPlfPHykFupBF0DJjgAjMAoGCCqGSM49BAMCA0gAMEUC\nIQDNERoPNQ0pCa+mnU/q4ef6o/hgMZeOm6cwDVreH/79gwIgf9Xvl2FCIdUFdS5G\nv4D1ZnEJ9emNk6FETGC8NKnnUuc=\n-----END CERTIFICATE-----\n\032\006Admins\"1\n\007Readers\022&\022\034\010\001\022\030\022\010\022\006\010\001\022\002\010\000\032\014\022\n\n\010peerOrg0\032\006Admins\"2\n\006Admins\022(\022\036\010\001\022\032\022\010\022\006\010\001\022\002\010\000\032\016\022\014\n\010peerOrg0\020\001\032\006Admins\"1\n\007Writers\022&\022\034\010\001\022\030\022\010\022\006\010\001\022\002\010\000\032\014\022\n\n\010peerOrg0\032\006Admins\"\032\n\006Admins\022\020\022\016\010\003\022\n\n\006Admins\020\002\"\032\n\007Writers\022\017\022\r\010\003\022\t\n\007Writers\"\032\n\007Readers\022\017\022\r\010\003\022\t\n\007Readers\032\035\n\nConsortium\022\017\022\r\n\013consortium1\032K\n\020OrdererAddresses\0227\022-\n\rorderer0:7050\n\rorderer1:7050\n\rorderer2:7050\032\006Admins\032&\n\020HashingAlgorithm\022\022\022\010\n\006SHA256\032\006Admins\032-\n\031BlockDataHashingStructure\022\020\022\006\010\377\377\377\377\017\032\006Admins\"\"\n\007Readers\022\027\022\r\010\003\022\t\n\007Readers\032\006Admins\"\"\n\006Admins\022\030\022\016\010\003\022\n\n\006Admins\020\002\032\006Admins\"\"\n\007Writers\022\027\022\r\010\003\022\t\n\007Writers\032\006Admins\022\251\026\n\336\025\n\267\006\n/\010\002\020\001\032\006\010\275\372\210\310\005\"!com.acme.blockchain.jdoe.Channel1\022\203\006\n\346\005\n\010peerOrg0\022\331\005-----BEGIN CERTIFICATE-----\nMIIB7jCCAZOgAwIBAwICA+gwCgYIKoZIzj0EAwIwVTERMA8GA1UEAwwIcGVlck9y\nZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEXMBUG\nA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTQyWhcNMTgwNDI3MTg0\nOTQyWjBYMRQwEgYDVQQDDAtjb25zb3J0aXVtMTELMAkGA1UEBhMCVVMxDDAKBgNV\nBAcMA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZ\nMBMGByqGSM49AgEGCCqGSM49AwEHA0IABGz3FMovRstBK5DubTSWl4auUBNjUeMk\nmW6x0UbEXonK/sj6O5AhEN4EkrfyVJF/sA9m52AHsmEzaP2odIgYEx+jUDBOMAwG\nA1UdEwEB/wQCMAAwHQYDVR0OBBYEFAJ9LmlaPF5mnEYRzANjO816UdYaMB8GA1Ud\nIwQYMBaAFMjjW1UqCPlfPHykFupBF0DJjgAjMAoGCCqGSM49BAMCA0kAMEYCIQCV\nGtvbmUTYRzpmlju3p/cUA5kQRhXwxEf9llMUhePEEAIhAKOv+ja0WY9izP2MAdGx\nUuWd5HCHk0DT3FI2osl/qYIO\n-----END CERTIFICATE-----\n\022\030x\304\242\246\224\317w\014\0279*\355\"\246\2370\220\310\233\305k`\024l\022\241\017\n\372\001\n!com.acme.blockchain.jdoe.Channel1\022>\022\035\n\013Application\022\016\022\014\n\010peerOrg0\022\000\032\035\n\nConsortium\022\017\022\r\n\013consortium1\032\224\001\022s\n\013Application\022d\010\001\022\014\n\010peerOrg0\022\000\"\032\n\007Writers\022\017\022\r\010\003\022\t\n\007Writers\"\032\n\007Readers\022\017\022\r\010\003\022\t\n\007Readers\"\032\n\006Admins\022\020\022\016\010\003\022\n\n\006Admins\020\002\032\035\n\nConsortium\022\017\022\r\n\013consortium1\022\317\006\n\203\006\n\346\005\n\010peerOrg0\022\331\005-----BEGIN CERTIFICATE-----\nMIIB7jCCAZOgAwIBAwICA+gwCgYIKoZIzj0EAwIwVTERMA8GA1UEAwwIcGVlck9y\nZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEXMBUG\nA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTQyWhcNMTgwNDI3MTg0\nOTQyWjBYMRQwEgYDVQQDDAtjb25zb3J0aXVtMTELMAkGA1UEBhMCVVMxDDAKBgNV\nBAcMA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZ\nMBMGByqGSM49AgEGCCqGSM49AwEHA0IABGz3FMovRstBK5DubTSWl4auUBNjUeMk\nmW6x0UbEXonK/sj6O5AhEN4EkrfyVJF/sA9m52AHsmEzaP2odIgYEx+jUDBOMAwG\nA1UdEwEB/wQCMAAwHQYDVR0OBBYEFAJ9LmlaPF5mnEYRzANjO816UdYaMB8GA1Ud\nIwQYMBaAFMjjW1UqCPlfPHykFupBF0DJjgAjMAoGCCqGSM49BAMCA0kAMEYCIQCV\nGtvbmUTYRzpmlju3p/cUA5kQRhXwxEf9llMUhePEEAIhAKOv+ja0WY9izP2MAdGx\nUuWd5HCHk0DT3FI2osl/qYIO\n-----END CERTIFICATE-----\n\022\030\2771\351\243\370\256\004\261\324\262~\234\3149\232\346\240\245\016\365\362i\031\234\022G0E\002!\000\360\250\262\200~q\3175C3\233\201\342q\333i\363\324\324dwUD\325\243\017\021\273\205\007Q\"\002 ?\375\301\005\2455\362\215[\231\007\323Y\300\265{C\254\313\200\265\023_\361\365M\272\357\232R2$\022\317\006\n\203\006\n\346\005\n\010peerOrg0\022\331\005-----BEGIN CERTIFICATE-----\nMIIB7TCCAZOgAwIBAwICA+gwCgYIKoZIzj0EAwIwVTERMA8GA1UEAwwIcGVlck9y\nZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEXMBUG\nA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTQyWhcNMTgwNDI3MTg0\nOTQyWjBYMRQwEgYDVQQDDAtjb25zb3J0aXVtMTELMAkGA1UEBhMCVVMxDDAKBgNV\nBAcMA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZ\nMBMGByqGSM49AgEGCCqGSM49AwEHA0IABBamEscugFW9dJ0F1xC/by2vD0hixaRB\ntiL3xNWO5CGcKmkc73N7/6r632LJqb7jofX6uwE1Ib935mi2s+LixmWjUDBOMAwG\nA1UdEwEB/wQCMAAwHQYDVR0OBBYEFLb6oil7KHKd67G+mDqgzphpFet4MB8GA1Ud\nIwQYMBaAFMjjW1UqCPlfPHykFupBF0DJjgAjMAoGCCqGSM49BAMCA0gAMEUCIFP+\nk95YP4GWpCqayw1w+xMvrUJLap09D0kRrUgvVIHYAiEAw9ae6L0cUx62eD0HBbNy\nahPwqTJzh29i7wDevYXycho=\n-----END CERTIFICATE-----\n\022\030\357v_\007i\014\375\373\342\013\031\232\217\030;\340)^\203s\225\026;\326\022G0E\002!\000\230sr\217\312\354\350\233\2766\200\035\273\371\2543\\\212r\302-h\316\353\224\206\264c\036\223\315\002\002 N\347=\352O\302\225iX\311\364\200\220\311F}]\201\203\311\246\212*\260R[fZ\312\335\315\'\022F0D\002 ?M\324\270Fr\201\322\000\024S\002\360<cb\351boH4Z\205\216\222\225\025o\304\326\301\003\002 1{(!\376\nsrO\010E\311\275\367\361\353\342[od_\367\217:\036\207L\332c\r\t4\022F0D\002 g\374\032Q\236{\362:\204\207\230\330\205\030b\200^J]R\026\2500\300\314\244IT\321is\344\002 E\306\271s\273\2613y\021\027\222d\217\303M\320\t\374(\323\323MS\263\225\303\300\347\201\013\021\006"
- }
- metadata {
- metadata: ""
- metadata: ""
- metadata: ""
- metadata: ""
- }
- </code>
- </div>
- <div>
- <div class="scrollBox">
- <code>
- from common.common_pb2 import Block
- block = Block()
- data = None
- with open('tmp/40dc98342b7a11e79ac800163e000427/peer1admin-genesisblockformynewchannel-0000.protobuf') as f:
- data = f.read()
- block.ParseFromString(data)
- </code>
- </div>
- </div></div><div id="Step 28">
- <h2>Step 28</h2>
- <hr/>
- <h3>When user "peer0Admin" using cert alias "peer-admin-cert" requests to join channel using genesis block "genesisBlockForMyNewChannel" on peers with result "joinChannelResult"</h3>
- <table>
- <tr>
- <th>Peer</th>
- </tr>
- <tr>
- <td>peer0</td>
- </tr>
- </table>
- </div><div id="peer0Admin-joinChannelResult">
- <h4>User peer0Admin setting tag key joinChannelResult to value</h4>
- </div><div>
- <a href="./peer0admin-joinchannelresult-peer0.protobuf" title="peer0admin-joinchannelresult-peer0.protobuf">Protobuf message in binary form</a>
- <div class="scrollBox">
- <code>
- response {
- status: 200
- }
- </code>
- </div>
- <div>
- <div class="scrollBox">
- <code>
- from peer.proposal_response_pb2 import ProposalResponse
- proposalResponse = ProposalResponse()
- data = None
- with open('tmp/40dc98342b7a11e79ac800163e000427/peer0admin-joinchannelresult-peer0.protobuf') as f:
- data = f.read()
- proposalResponse.ParseFromString(data)
- </code>
- </div>
- </div></div><div id="Step 29">
- <h2>Step 29</h2>
- <hr/>
- <h3>Then user "peer0Admin" expects result code for "joinChannelResult" of "200" from peers</h3>
- <table>
- <tr>
- <th>Peer</th>
- </tr>
- <tr>
- <td>peer0</td>
- </tr>
- </table>
- </div><div id="Step 30">
- <h2>Step 30</h2>
- <hr/>
- <h3>When user "peer1Admin" using cert alias "peer-admin-cert" requests to join channel using genesis block "genesisBlockForMyNewChannel" on peers with result "joinChannelResult"</h3>
- <table>
- <tr>
- <th>Peer</th>
- </tr>
- <tr>
- <td>peer1</td>
- </tr>
- </table>
- </div><div id="peer1Admin-joinChannelResult">
- <h4>User peer1Admin setting tag key joinChannelResult to value</h4>
- </div><div>
- <a href="./peer1admin-joinchannelresult-peer1.protobuf" title="peer1admin-joinchannelresult-peer1.protobuf">Protobuf message in binary form</a>
- <div class="scrollBox">
- <code>
- response {
- status: 200
- }
- </code>
- </div>
- <div>
- <div class="scrollBox">
- <code>
- from peer.proposal_response_pb2 import ProposalResponse
- proposalResponse = ProposalResponse()
- data = None
- with open('tmp/40dc98342b7a11e79ac800163e000427/peer1admin-joinchannelresult-peer1.protobuf') as f:
- data = f.read()
- proposalResponse.ParseFromString(data)
- </code>
- </div>
- </div></div><div id="Step 31">
- <h2>Step 31</h2>
- <hr/>
- <h3>Then user "peer1Admin" expects result code for "joinChannelResult" of "200" from peers</h3>
- <table>
- <tr>
- <th>Peer</th>
- </tr>
- <tr>
- <td>peer1</td>
- </tr>
- </table>
- </div><div id="Step 32">
- <h2>Step 32</h2>
- <hr/>
- <h3>Given user "dev0Org1" gives "genesisBlockForMyNewChannel" to user "peer2Admin"</h3>
- </div><div id="peer2Admin-genesisBlockForMyNewChannel">
- <h4>User peer2Admin setting tag key genesisBlockForMyNewChannel to value</h4>
- </div><div>
- <a href="./peer2admin-genesisblockformynewchannel-0000.protobuf" title="peer2admin-genesisblockformynewchannel-0000.protobuf">Protobuf message in binary form</a>
- <div class="scrollBox">
- <code>
- header {
- data_hash: "y7*\252<\347\257y]15VH\320[\355t\277\207~3\204g\n\263\224\003\261A\305u\260"
- }
- data {
- data: "\n\334<\n\242\006\n-\010\001\032\006\010\306\372\210\310\005\"!com.acme.blockchain.jdoe.Channel1\022\360\005\n\323\005\n\013ordererOrg0\022\303\005-----BEGIN -----\nMIIB7TCCAZOgAwIBAwICA+gwCgYIKoZIzj0EAwIwWDEUMBIGA1UEAwwLb3JkZXJl\nck9yZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEX\nMBUGA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTMzWhcNMTgwNDI3\nMTg0OTMzWjBVMREwDwYDVQQDDAhvcmRlcmVyMDELMAkGA1UEBhMCVVMxDDAKBgNV\nBAcMA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZ\nMBMGByqGSM49AgEGCCqGSM49AwEHA0IABB8Bc1xevTEOQV7O5mIjqQP/fNpq/NMo\nIuiFnFkG+1S5Msdled7AEUMgeUaEP8U/wMfqR8Edb5cdwkeH47lPzHSjUDBOMAwG\nA1UdEwEB/wQCMAAwHQYDVR0OBBYEFMnu76tt+7C+iOtOu+UrIVCnnu5QMB8GA1Ud\nIwQYMBaAFDRTjX3QJOAHbnREWkYokhXRpzsGMAoGCCqGSM49BAMCA0gAMEUCIEBp\nCM37305NHEqxGZwOsFKncUVTISI+D8+qg1qFn/GQAiEAuohclwpctW0QtHp/sp0L\n38MGiwiA78Rt5aElon+ejTE=\n-----END -----\n\022\030{\346H\310\273\247L\022\326\005\272\202\r-\256Xj\211a\220\225#\242j\022\2646\n\205 \010\001\022\200 \022\330\017\n\007Orderer\022\314\017\022\251\r\n\013ordererOrg0\022\231\r\032\363\013\n\003MSP\022\353\013\022\340\013\022\335\013\n\013ordererOrg0\022\345\005-----BEGIN CERTIFICATE-----\nMIIB9TCCAZygAwIBAwICA+gwCgYIKoZIzj0EAwIwWDEUMBIGA1UEAwwLb3JkZXJl\nck9yZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEX\nMBUGA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTMzWhcNMTgwNDI3\nMTg0OTMzWjBYMRQwEgYDVQQDDAtvcmRlcmVyT3JnMDELMAkGA1UEBhMCVVMxDDAK\nBgNVBAcMA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGlu\nYTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABLawQik+bOgaBNS9M74sjdw4Imqt\ng64ZdUP83144uaSHQPuUq8OYMMK/apGUSWtrorOJ2Gj9PMV+0Qs8yzeOAdWjVjBU\nMBIGA1UdEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFDRTjX3QJOAHbnREWkYokhXR\npzsGMB8GA1UdIwQYMBaAFDRTjX3QJOAHbnREWkYokhXRpzsGMAoGCCqGSM49BAMC\nA0cAMEQCIBdqKO3TZ2KLWKcDErGiOc7TWIVChFfzO4Bn9AuunU6QAiAvweATe3z1\n4CISjkUeaw8SdMSKV5GgRZCjgwzF8lLvNA==\n-----END CERTIFICATE-----\n\"\345\005-----BEGIN CERTIFICATE-----\nMIIB9TCCAZygAwIBAwICA+gwCgYIKoZIzj0EAwIwWDEUMBIGA1UEAwwLb3JkZXJl\nck9yZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEX\nMBUGA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTMzWhcNMTgwNDI3\nMTg0OTMzWjBYMRQwEgYDVQQDDAtvcmRlcmVyT3JnMDELMAkGA1UEBhMCVVMxDDAK\nBgNVBAcMA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGlu\nYTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABLawQik+bOgaBNS9M74sjdw4Imqt\ng64ZdUP83144uaSHQPuUq8OYMMK/apGUSWtrorOJ2Gj9PMV+0Qs8yzeOAdWjVjBU\nMBIGA1UdEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFDRTjX3QJOAHbnREWkYokhXR\npzsGMB8GA1UdIwQYMBaAFDRTjX3QJOAHbnREWkYokhXRpzsGMAoGCCqGSM49BAMC\nA0cAMEQCIBdqKO3TZ2KLWKcDErGiOc7TWIVChFfzO4Bn9AuunU6QAiAvweATe3z1\n4CISjkUeaw8SdMSKV5GgRZCjgwzF8lLvNA==\n-----END CERTIFICATE-----\n\032\006Admins\"4\n\007Writers\022)\022\037\010\001\022\033\022\010\022\006\010\001\022\002\010\000\032\017\022\r\n\013ordererOrg0\032\006Admins\"4\n\007Readers\022)\022\037\010\001\022\033\022\010\022\006\010\001\022\002\010\000\032\017\022\r\n\013ordererOrg0\032\006Admins\"5\n\006Admins\022+\022!\010\001\022\035\022\010\022\006\010\001\022\002\010\000\032\021\022\017\n\013ordererOrg0\020\001\032\006Admins\032\037\n\023ChannelRestrictions\022\010\032\006Admins\032\036\n\014BatchTimeout\022\016\022\004\n\0021s\032\006Admins\032!\n\rConsensusType\022\020\022\006\n\004solo\032\006Admins\032\"\n\tBatchSize\022\025\022\013\010\n\020\200\302\327/\030\200\200 \032\006Admins\"*\n\017BlockValidation\022\027\022\r\010\003\022\t\n\007Writers\032\006Admins\"\"\n\007Writers\022\027\022\r\010\003\022\t\n\007Writers\032\006Admins\"\"\n\007Readers\022\027\022\r\010\003\022\t\n\007Readers\032\006Admins\"\"\n\006Admins\022\030\022\016\010\003\022\n\n\006Admins\020\002\032\006Admins\022\363\r\n\013Application\022\343\r\010\001\022\212\r\n\010peerOrg0\022\375\014\032\340\013\n\003MSP\022\330\013\022\315\013\022\312\013\n\010peerOrg0\022\335\005-----BEGIN CERTIFICATE-----\nMIIB8DCCAZagAwIBAwICA+gwCgYIKoZIzj0EAwIwVTERMA8GA1UEAwwIcGVlck9y\nZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEXMBUG\nA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTM0WhcNMTgwNDI3MTg0\nOTM0WjBVMREwDwYDVQQDDAhwZWVyT3JnMDELMAkGA1UEBhMCVVMxDDAKBgNVBAcM\nA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZMBMG\nByqGSM49AgEGCCqGSM49AwEHA0IABHoyrgAAOk5OlEGB1GCLY4eIZuhVtAy55Mea\nmoa+LzZGyA5kKfI9n5rw6pbum0ZcoWvv26bB6MJsE53eRJexOu6jVjBUMBIGA1Ud\nEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFMjjW1UqCPlfPHykFupBF0DJjgAjMB8G\nA1UdIwQYMBaAFMjjW1UqCPlfPHykFupBF0DJjgAjMAoGCCqGSM49BAMCA0gAMEUC\nIQDNERoPNQ0pCa+mnU/q4ef6o/hgMZeOm6cwDVreH/79gwIgf9Xvl2FCIdUFdS5G\nv4D1ZnEJ9emNk6FETGC8NKnnUuc=\n-----END CERTIFICATE-----\n\"\335\005-----BEGIN CERTIFICATE-----\nMIIB8DCCAZagAwIBAwICA+gwCgYIKoZIzj0EAwIwVTERMA8GA1UEAwwIcGVlck9y\nZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEXMBUG\nA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTM0WhcNMTgwNDI3MTg0\nOTM0WjBVMREwDwYDVQQDDAhwZWVyT3JnMDELMAkGA1UEBhMCVVMxDDAKBgNVBAcM\nA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZMBMG\nByqGSM49AgEGCCqGSM49AwEHA0IABHoyrgAAOk5OlEGB1GCLY4eIZuhVtAy55Mea\nmoa+LzZGyA5kKfI9n5rw6pbum0ZcoWvv26bB6MJsE53eRJexOu6jVjBUMBIGA1Ud\nEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFMjjW1UqCPlfPHykFupBF0DJjgAjMB8G\nA1UdIwQYMBaAFMjjW1UqCPlfPHykFupBF0DJjgAjMAoGCCqGSM49BAMCA0gAMEUC\nIQDNERoPNQ0pCa+mnU/q4ef6o/hgMZeOm6cwDVreH/79gwIgf9Xvl2FCIdUFdS5G\nv4D1ZnEJ9emNk6FETGC8NKnnUuc=\n-----END CERTIFICATE-----\n\032\006Admins\"1\n\007Readers\022&\022\034\010\001\022\030\022\010\022\006\010\001\022\002\010\000\032\014\022\n\n\010peerOrg0\032\006Admins\"2\n\006Admins\022(\022\036\010\001\022\032\022\010\022\006\010\001\022\002\010\000\032\016\022\014\n\010peerOrg0\020\001\032\006Admins\"1\n\007Writers\022&\022\034\010\001\022\030\022\010\022\006\010\001\022\002\010\000\032\014\022\n\n\010peerOrg0\032\006Admins\"\032\n\006Admins\022\020\022\016\010\003\022\n\n\006Admins\020\002\"\032\n\007Writers\022\017\022\r\010\003\022\t\n\007Writers\"\032\n\007Readers\022\017\022\r\010\003\022\t\n\007Readers\032\035\n\nConsortium\022\017\022\r\n\013consortium1\032K\n\020OrdererAddresses\0227\022-\n\rorderer0:7050\n\rorderer1:7050\n\rorderer2:7050\032\006Admins\032&\n\020HashingAlgorithm\022\022\022\010\n\006SHA256\032\006Admins\032-\n\031BlockDataHashingStructure\022\020\022\006\010\377\377\377\377\017\032\006Admins\"\"\n\007Readers\022\027\022\r\010\003\022\t\n\007Readers\032\006Admins\"\"\n\006Admins\022\030\022\016\010\003\022\n\n\006Admins\020\002\032\006Admins\"\"\n\007Writers\022\027\022\r\010\003\022\t\n\007Writers\032\006Admins\022\251\026\n\336\025\n\267\006\n/\010\002\020\001\032\006\010\275\372\210\310\005\"!com.acme.blockchain.jdoe.Channel1\022\203\006\n\346\005\n\010peerOrg0\022\331\005-----BEGIN CERTIFICATE-----\nMIIB7jCCAZOgAwIBAwICA+gwCgYIKoZIzj0EAwIwVTERMA8GA1UEAwwIcGVlck9y\nZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEXMBUG\nA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTQyWhcNMTgwNDI3MTg0\nOTQyWjBYMRQwEgYDVQQDDAtjb25zb3J0aXVtMTELMAkGA1UEBhMCVVMxDDAKBgNV\nBAcMA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZ\nMBMGByqGSM49AgEGCCqGSM49AwEHA0IABGz3FMovRstBK5DubTSWl4auUBNjUeMk\nmW6x0UbEXonK/sj6O5AhEN4EkrfyVJF/sA9m52AHsmEzaP2odIgYEx+jUDBOMAwG\nA1UdEwEB/wQCMAAwHQYDVR0OBBYEFAJ9LmlaPF5mnEYRzANjO816UdYaMB8GA1Ud\nIwQYMBaAFMjjW1UqCPlfPHykFupBF0DJjgAjMAoGCCqGSM49BAMCA0kAMEYCIQCV\nGtvbmUTYRzpmlju3p/cUA5kQRhXwxEf9llMUhePEEAIhAKOv+ja0WY9izP2MAdGx\nUuWd5HCHk0DT3FI2osl/qYIO\n-----END CERTIFICATE-----\n\022\030x\304\242\246\224\317w\014\0279*\355\"\246\2370\220\310\233\305k`\024l\022\241\017\n\372\001\n!com.acme.blockchain.jdoe.Channel1\022>\022\035\n\013Application\022\016\022\014\n\010peerOrg0\022\000\032\035\n\nConsortium\022\017\022\r\n\013consortium1\032\224\001\022s\n\013Application\022d\010\001\022\014\n\010peerOrg0\022\000\"\032\n\007Writers\022\017\022\r\010\003\022\t\n\007Writers\"\032\n\007Readers\022\017\022\r\010\003\022\t\n\007Readers\"\032\n\006Admins\022\020\022\016\010\003\022\n\n\006Admins\020\002\032\035\n\nConsortium\022\017\022\r\n\013consortium1\022\317\006\n\203\006\n\346\005\n\010peerOrg0\022\331\005-----BEGIN CERTIFICATE-----\nMIIB7jCCAZOgAwIBAwICA+gwCgYIKoZIzj0EAwIwVTERMA8GA1UEAwwIcGVlck9y\nZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEXMBUG\nA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTQyWhcNMTgwNDI3MTg0\nOTQyWjBYMRQwEgYDVQQDDAtjb25zb3J0aXVtMTELMAkGA1UEBhMCVVMxDDAKBgNV\nBAcMA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZ\nMBMGByqGSM49AgEGCCqGSM49AwEHA0IABGz3FMovRstBK5DubTSWl4auUBNjUeMk\nmW6x0UbEXonK/sj6O5AhEN4EkrfyVJF/sA9m52AHsmEzaP2odIgYEx+jUDBOMAwG\nA1UdEwEB/wQCMAAwHQYDVR0OBBYEFAJ9LmlaPF5mnEYRzANjO816UdYaMB8GA1Ud\nIwQYMBaAFMjjW1UqCPlfPHykFupBF0DJjgAjMAoGCCqGSM49BAMCA0kAMEYCIQCV\nGtvbmUTYRzpmlju3p/cUA5kQRhXwxEf9llMUhePEEAIhAKOv+ja0WY9izP2MAdGx\nUuWd5HCHk0DT3FI2osl/qYIO\n-----END CERTIFICATE-----\n\022\030\2771\351\243\370\256\004\261\324\262~\234\3149\232\346\240\245\016\365\362i\031\234\022G0E\002!\000\360\250\262\200~q\3175C3\233\201\342q\333i\363\324\324dwUD\325\243\017\021\273\205\007Q\"\002 ?\375\301\005\2455\362\215[\231\007\323Y\300\265{C\254\313\200\265\023_\361\365M\272\357\232R2$\022\317\006\n\203\006\n\346\005\n\010peerOrg0\022\331\005-----BEGIN CERTIFICATE-----\nMIIB7TCCAZOgAwIBAwICA+gwCgYIKoZIzj0EAwIwVTERMA8GA1UEAwwIcGVlck9y\nZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEXMBUG\nA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTQyWhcNMTgwNDI3MTg0\nOTQyWjBYMRQwEgYDVQQDDAtjb25zb3J0aXVtMTELMAkGA1UEBhMCVVMxDDAKBgNV\nBAcMA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZ\nMBMGByqGSM49AgEGCCqGSM49AwEHA0IABBamEscugFW9dJ0F1xC/by2vD0hixaRB\ntiL3xNWO5CGcKmkc73N7/6r632LJqb7jofX6uwE1Ib935mi2s+LixmWjUDBOMAwG\nA1UdEwEB/wQCMAAwHQYDVR0OBBYEFLb6oil7KHKd67G+mDqgzphpFet4MB8GA1Ud\nIwQYMBaAFMjjW1UqCPlfPHykFupBF0DJjgAjMAoGCCqGSM49BAMCA0gAMEUCIFP+\nk95YP4GWpCqayw1w+xMvrUJLap09D0kRrUgvVIHYAiEAw9ae6L0cUx62eD0HBbNy\nahPwqTJzh29i7wDevYXycho=\n-----END CERTIFICATE-----\n\022\030\357v_\007i\014\375\373\342\013\031\232\217\030;\340)^\203s\225\026;\326\022G0E\002!\000\230sr\217\312\354\350\233\2766\200\035\273\371\2543\\\212r\302-h\316\353\224\206\264c\036\223\315\002\002 N\347=\352O\302\225iX\311\364\200\220\311F}]\201\203\311\246\212*\260R[fZ\312\335\315\'\022F0D\002 ?M\324\270Fr\201\322\000\024S\002\360<cb\351boH4Z\205\216\222\225\025o\304\326\301\003\002 1{(!\376\nsrO\010E\311\275\367\361\353\342[od_\367\217:\036\207L\332c\r\t4\022F0D\002 g\374\032Q\236{\362:\204\207\230\330\205\030b\200^J]R\026\2500\300\314\244IT\321is\344\002 E\306\271s\273\2613y\021\027\222d\217\303M\320\t\374(\323\323MS\263\225\303\300\347\201\013\021\006"
- }
- metadata {
- metadata: ""
- metadata: ""
- metadata: ""
- metadata: ""
- }
- </code>
- </div>
- <div>
- <div class="scrollBox">
- <code>
- from common.common_pb2 import Block
- block = Block()
- data = None
- with open('tmp/40dc98342b7a11e79ac800163e000427/peer2admin-genesisblockformynewchannel-0000.protobuf') as f:
- data = f.read()
- block.ParseFromString(data)
- </code>
- </div>
- </div></div><div id="Step 33">
- <h2>Step 33</h2>
- <hr/>
- <h3>Given user "dev0Org1" gives "genesisBlockForMyNewChannel" to user "peer3Admin"</h3>
- </div><div id="peer3Admin-genesisBlockForMyNewChannel">
- <h4>User peer3Admin setting tag key genesisBlockForMyNewChannel to value</h4>
- </div><div>
- <a href="./peer3admin-genesisblockformynewchannel-0000.protobuf" title="peer3admin-genesisblockformynewchannel-0000.protobuf">Protobuf message in binary form</a>
- <div class="scrollBox">
- <code>
- header {
- data_hash: "y7*\252<\347\257y]15VH\320[\355t\277\207~3\204g\n\263\224\003\261A\305u\260"
- }
- data {
- data: "\n\334<\n\242\006\n-\010\001\032\006\010\306\372\210\310\005\"!com.acme.blockchain.jdoe.Channel1\022\360\005\n\323\005\n\013ordererOrg0\022\303\005-----BEGIN -----\nMIIB7TCCAZOgAwIBAwICA+gwCgYIKoZIzj0EAwIwWDEUMBIGA1UEAwwLb3JkZXJl\nck9yZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEX\nMBUGA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTMzWhcNMTgwNDI3\nMTg0OTMzWjBVMREwDwYDVQQDDAhvcmRlcmVyMDELMAkGA1UEBhMCVVMxDDAKBgNV\nBAcMA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZ\nMBMGByqGSM49AgEGCCqGSM49AwEHA0IABB8Bc1xevTEOQV7O5mIjqQP/fNpq/NMo\nIuiFnFkG+1S5Msdled7AEUMgeUaEP8U/wMfqR8Edb5cdwkeH47lPzHSjUDBOMAwG\nA1UdEwEB/wQCMAAwHQYDVR0OBBYEFMnu76tt+7C+iOtOu+UrIVCnnu5QMB8GA1Ud\nIwQYMBaAFDRTjX3QJOAHbnREWkYokhXRpzsGMAoGCCqGSM49BAMCA0gAMEUCIEBp\nCM37305NHEqxGZwOsFKncUVTISI+D8+qg1qFn/GQAiEAuohclwpctW0QtHp/sp0L\n38MGiwiA78Rt5aElon+ejTE=\n-----END -----\n\022\030{\346H\310\273\247L\022\326\005\272\202\r-\256Xj\211a\220\225#\242j\022\2646\n\205 \010\001\022\200 \022\330\017\n\007Orderer\022\314\017\022\251\r\n\013ordererOrg0\022\231\r\032\363\013\n\003MSP\022\353\013\022\340\013\022\335\013\n\013ordererOrg0\022\345\005-----BEGIN CERTIFICATE-----\nMIIB9TCCAZygAwIBAwICA+gwCgYIKoZIzj0EAwIwWDEUMBIGA1UEAwwLb3JkZXJl\nck9yZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEX\nMBUGA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTMzWhcNMTgwNDI3\nMTg0OTMzWjBYMRQwEgYDVQQDDAtvcmRlcmVyT3JnMDELMAkGA1UEBhMCVVMxDDAK\nBgNVBAcMA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGlu\nYTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABLawQik+bOgaBNS9M74sjdw4Imqt\ng64ZdUP83144uaSHQPuUq8OYMMK/apGUSWtrorOJ2Gj9PMV+0Qs8yzeOAdWjVjBU\nMBIGA1UdEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFDRTjX3QJOAHbnREWkYokhXR\npzsGMB8GA1UdIwQYMBaAFDRTjX3QJOAHbnREWkYokhXRpzsGMAoGCCqGSM49BAMC\nA0cAMEQCIBdqKO3TZ2KLWKcDErGiOc7TWIVChFfzO4Bn9AuunU6QAiAvweATe3z1\n4CISjkUeaw8SdMSKV5GgRZCjgwzF8lLvNA==\n-----END CERTIFICATE-----\n\"\345\005-----BEGIN CERTIFICATE-----\nMIIB9TCCAZygAwIBAwICA+gwCgYIKoZIzj0EAwIwWDEUMBIGA1UEAwwLb3JkZXJl\nck9yZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEX\nMBUGA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTMzWhcNMTgwNDI3\nMTg0OTMzWjBYMRQwEgYDVQQDDAtvcmRlcmVyT3JnMDELMAkGA1UEBhMCVVMxDDAK\nBgNVBAcMA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGlu\nYTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABLawQik+bOgaBNS9M74sjdw4Imqt\ng64ZdUP83144uaSHQPuUq8OYMMK/apGUSWtrorOJ2Gj9PMV+0Qs8yzeOAdWjVjBU\nMBIGA1UdEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFDRTjX3QJOAHbnREWkYokhXR\npzsGMB8GA1UdIwQYMBaAFDRTjX3QJOAHbnREWkYokhXRpzsGMAoGCCqGSM49BAMC\nA0cAMEQCIBdqKO3TZ2KLWKcDErGiOc7TWIVChFfzO4Bn9AuunU6QAiAvweATe3z1\n4CISjkUeaw8SdMSKV5GgRZCjgwzF8lLvNA==\n-----END CERTIFICATE-----\n\032\006Admins\"4\n\007Writers\022)\022\037\010\001\022\033\022\010\022\006\010\001\022\002\010\000\032\017\022\r\n\013ordererOrg0\032\006Admins\"4\n\007Readers\022)\022\037\010\001\022\033\022\010\022\006\010\001\022\002\010\000\032\017\022\r\n\013ordererOrg0\032\006Admins\"5\n\006Admins\022+\022!\010\001\022\035\022\010\022\006\010\001\022\002\010\000\032\021\022\017\n\013ordererOrg0\020\001\032\006Admins\032\037\n\023ChannelRestrictions\022\010\032\006Admins\032\036\n\014BatchTimeout\022\016\022\004\n\0021s\032\006Admins\032!\n\rConsensusType\022\020\022\006\n\004solo\032\006Admins\032\"\n\tBatchSize\022\025\022\013\010\n\020\200\302\327/\030\200\200 \032\006Admins\"*\n\017BlockValidation\022\027\022\r\010\003\022\t\n\007Writers\032\006Admins\"\"\n\007Writers\022\027\022\r\010\003\022\t\n\007Writers\032\006Admins\"\"\n\007Readers\022\027\022\r\010\003\022\t\n\007Readers\032\006Admins\"\"\n\006Admins\022\030\022\016\010\003\022\n\n\006Admins\020\002\032\006Admins\022\363\r\n\013Application\022\343\r\010\001\022\212\r\n\010peerOrg0\022\375\014\032\340\013\n\003MSP\022\330\013\022\315\013\022\312\013\n\010peerOrg0\022\335\005-----BEGIN CERTIFICATE-----\nMIIB8DCCAZagAwIBAwICA+gwCgYIKoZIzj0EAwIwVTERMA8GA1UEAwwIcGVlck9y\nZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEXMBUG\nA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTM0WhcNMTgwNDI3MTg0\nOTM0WjBVMREwDwYDVQQDDAhwZWVyT3JnMDELMAkGA1UEBhMCVVMxDDAKBgNVBAcM\nA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZMBMG\nByqGSM49AgEGCCqGSM49AwEHA0IABHoyrgAAOk5OlEGB1GCLY4eIZuhVtAy55Mea\nmoa+LzZGyA5kKfI9n5rw6pbum0ZcoWvv26bB6MJsE53eRJexOu6jVjBUMBIGA1Ud\nEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFMjjW1UqCPlfPHykFupBF0DJjgAjMB8G\nA1UdIwQYMBaAFMjjW1UqCPlfPHykFupBF0DJjgAjMAoGCCqGSM49BAMCA0gAMEUC\nIQDNERoPNQ0pCa+mnU/q4ef6o/hgMZeOm6cwDVreH/79gwIgf9Xvl2FCIdUFdS5G\nv4D1ZnEJ9emNk6FETGC8NKnnUuc=\n-----END CERTIFICATE-----\n\"\335\005-----BEGIN CERTIFICATE-----\nMIIB8DCCAZagAwIBAwICA+gwCgYIKoZIzj0EAwIwVTERMA8GA1UEAwwIcGVlck9y\nZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEXMBUG\nA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTM0WhcNMTgwNDI3MTg0\nOTM0WjBVMREwDwYDVQQDDAhwZWVyT3JnMDELMAkGA1UEBhMCVVMxDDAKBgNVBAcM\nA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZMBMG\nByqGSM49AgEGCCqGSM49AwEHA0IABHoyrgAAOk5OlEGB1GCLY4eIZuhVtAy55Mea\nmoa+LzZGyA5kKfI9n5rw6pbum0ZcoWvv26bB6MJsE53eRJexOu6jVjBUMBIGA1Ud\nEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFMjjW1UqCPlfPHykFupBF0DJjgAjMB8G\nA1UdIwQYMBaAFMjjW1UqCPlfPHykFupBF0DJjgAjMAoGCCqGSM49BAMCA0gAMEUC\nIQDNERoPNQ0pCa+mnU/q4ef6o/hgMZeOm6cwDVreH/79gwIgf9Xvl2FCIdUFdS5G\nv4D1ZnEJ9emNk6FETGC8NKnnUuc=\n-----END CERTIFICATE-----\n\032\006Admins\"1\n\007Readers\022&\022\034\010\001\022\030\022\010\022\006\010\001\022\002\010\000\032\014\022\n\n\010peerOrg0\032\006Admins\"2\n\006Admins\022(\022\036\010\001\022\032\022\010\022\006\010\001\022\002\010\000\032\016\022\014\n\010peerOrg0\020\001\032\006Admins\"1\n\007Writers\022&\022\034\010\001\022\030\022\010\022\006\010\001\022\002\010\000\032\014\022\n\n\010peerOrg0\032\006Admins\"\032\n\006Admins\022\020\022\016\010\003\022\n\n\006Admins\020\002\"\032\n\007Writers\022\017\022\r\010\003\022\t\n\007Writers\"\032\n\007Readers\022\017\022\r\010\003\022\t\n\007Readers\032\035\n\nConsortium\022\017\022\r\n\013consortium1\032K\n\020OrdererAddresses\0227\022-\n\rorderer0:7050\n\rorderer1:7050\n\rorderer2:7050\032\006Admins\032&\n\020HashingAlgorithm\022\022\022\010\n\006SHA256\032\006Admins\032-\n\031BlockDataHashingStructure\022\020\022\006\010\377\377\377\377\017\032\006Admins\"\"\n\007Readers\022\027\022\r\010\003\022\t\n\007Readers\032\006Admins\"\"\n\006Admins\022\030\022\016\010\003\022\n\n\006Admins\020\002\032\006Admins\"\"\n\007Writers\022\027\022\r\010\003\022\t\n\007Writers\032\006Admins\022\251\026\n\336\025\n\267\006\n/\010\002\020\001\032\006\010\275\372\210\310\005\"!com.acme.blockchain.jdoe.Channel1\022\203\006\n\346\005\n\010peerOrg0\022\331\005-----BEGIN CERTIFICATE-----\nMIIB7jCCAZOgAwIBAwICA+gwCgYIKoZIzj0EAwIwVTERMA8GA1UEAwwIcGVlck9y\nZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEXMBUG\nA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTQyWhcNMTgwNDI3MTg0\nOTQyWjBYMRQwEgYDVQQDDAtjb25zb3J0aXVtMTELMAkGA1UEBhMCVVMxDDAKBgNV\nBAcMA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZ\nMBMGByqGSM49AgEGCCqGSM49AwEHA0IABGz3FMovRstBK5DubTSWl4auUBNjUeMk\nmW6x0UbEXonK/sj6O5AhEN4EkrfyVJF/sA9m52AHsmEzaP2odIgYEx+jUDBOMAwG\nA1UdEwEB/wQCMAAwHQYDVR0OBBYEFAJ9LmlaPF5mnEYRzANjO816UdYaMB8GA1Ud\nIwQYMBaAFMjjW1UqCPlfPHykFupBF0DJjgAjMAoGCCqGSM49BAMCA0kAMEYCIQCV\nGtvbmUTYRzpmlju3p/cUA5kQRhXwxEf9llMUhePEEAIhAKOv+ja0WY9izP2MAdGx\nUuWd5HCHk0DT3FI2osl/qYIO\n-----END CERTIFICATE-----\n\022\030x\304\242\246\224\317w\014\0279*\355\"\246\2370\220\310\233\305k`\024l\022\241\017\n\372\001\n!com.acme.blockchain.jdoe.Channel1\022>\022\035\n\013Application\022\016\022\014\n\010peerOrg0\022\000\032\035\n\nConsortium\022\017\022\r\n\013consortium1\032\224\001\022s\n\013Application\022d\010\001\022\014\n\010peerOrg0\022\000\"\032\n\007Writers\022\017\022\r\010\003\022\t\n\007Writers\"\032\n\007Readers\022\017\022\r\010\003\022\t\n\007Readers\"\032\n\006Admins\022\020\022\016\010\003\022\n\n\006Admins\020\002\032\035\n\nConsortium\022\017\022\r\n\013consortium1\022\317\006\n\203\006\n\346\005\n\010peerOrg0\022\331\005-----BEGIN CERTIFICATE-----\nMIIB7jCCAZOgAwIBAwICA+gwCgYIKoZIzj0EAwIwVTERMA8GA1UEAwwIcGVlck9y\nZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEXMBUG\nA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTQyWhcNMTgwNDI3MTg0\nOTQyWjBYMRQwEgYDVQQDDAtjb25zb3J0aXVtMTELMAkGA1UEBhMCVVMxDDAKBgNV\nBAcMA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZ\nMBMGByqGSM49AgEGCCqGSM49AwEHA0IABGz3FMovRstBK5DubTSWl4auUBNjUeMk\nmW6x0UbEXonK/sj6O5AhEN4EkrfyVJF/sA9m52AHsmEzaP2odIgYEx+jUDBOMAwG\nA1UdEwEB/wQCMAAwHQYDVR0OBBYEFAJ9LmlaPF5mnEYRzANjO816UdYaMB8GA1Ud\nIwQYMBaAFMjjW1UqCPlfPHykFupBF0DJjgAjMAoGCCqGSM49BAMCA0kAMEYCIQCV\nGtvbmUTYRzpmlju3p/cUA5kQRhXwxEf9llMUhePEEAIhAKOv+ja0WY9izP2MAdGx\nUuWd5HCHk0DT3FI2osl/qYIO\n-----END CERTIFICATE-----\n\022\030\2771\351\243\370\256\004\261\324\262~\234\3149\232\346\240\245\016\365\362i\031\234\022G0E\002!\000\360\250\262\200~q\3175C3\233\201\342q\333i\363\324\324dwUD\325\243\017\021\273\205\007Q\"\002 ?\375\301\005\2455\362\215[\231\007\323Y\300\265{C\254\313\200\265\023_\361\365M\272\357\232R2$\022\317\006\n\203\006\n\346\005\n\010peerOrg0\022\331\005-----BEGIN CERTIFICATE-----\nMIIB7TCCAZOgAwIBAwICA+gwCgYIKoZIzj0EAwIwVTERMA8GA1UEAwwIcGVlck9y\nZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEXMBUG\nA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTQyWhcNMTgwNDI3MTg0\nOTQyWjBYMRQwEgYDVQQDDAtjb25zb3J0aXVtMTELMAkGA1UEBhMCVVMxDDAKBgNV\nBAcMA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZ\nMBMGByqGSM49AgEGCCqGSM49AwEHA0IABBamEscugFW9dJ0F1xC/by2vD0hixaRB\ntiL3xNWO5CGcKmkc73N7/6r632LJqb7jofX6uwE1Ib935mi2s+LixmWjUDBOMAwG\nA1UdEwEB/wQCMAAwHQYDVR0OBBYEFLb6oil7KHKd67G+mDqgzphpFet4MB8GA1Ud\nIwQYMBaAFMjjW1UqCPlfPHykFupBF0DJjgAjMAoGCCqGSM49BAMCA0gAMEUCIFP+\nk95YP4GWpCqayw1w+xMvrUJLap09D0kRrUgvVIHYAiEAw9ae6L0cUx62eD0HBbNy\nahPwqTJzh29i7wDevYXycho=\n-----END CERTIFICATE-----\n\022\030\357v_\007i\014\375\373\342\013\031\232\217\030;\340)^\203s\225\026;\326\022G0E\002!\000\230sr\217\312\354\350\233\2766\200\035\273\371\2543\\\212r\302-h\316\353\224\206\264c\036\223\315\002\002 N\347=\352O\302\225iX\311\364\200\220\311F}]\201\203\311\246\212*\260R[fZ\312\335\315\'\022F0D\002 ?M\324\270Fr\201\322\000\024S\002\360<cb\351boH4Z\205\216\222\225\025o\304\326\301\003\002 1{(!\376\nsrO\010E\311\275\367\361\353\342[od_\367\217:\036\207L\332c\r\t4\022F0D\002 g\374\032Q\236{\362:\204\207\230\330\205\030b\200^J]R\026\2500\300\314\244IT\321is\344\002 E\306\271s\273\2613y\021\027\222d\217\303M\320\t\374(\323\323MS\263\225\303\300\347\201\013\021\006"
- }
- metadata {
- metadata: ""
- metadata: ""
- metadata: ""
- metadata: ""
- }
- </code>
- </div>
- <div>
- <div class="scrollBox">
- <code>
- from common.common_pb2 import Block
- block = Block()
- data = None
- with open('tmp/40dc98342b7a11e79ac800163e000427/peer3admin-genesisblockformynewchannel-0000.protobuf') as f:
- data = f.read()
- block.ParseFromString(data)
- </code>
- </div>
- </div></div><div id="Step 34">
- <h2>Step 34</h2>
- <hr/>
- <h3>When user "peer2Admin" using cert alias "peer-admin-cert" requests to join channel using genesis block "genesisBlockForMyNewChannel" on peers with result "joinChannelResult"</h3>
- <table>
- <tr>
- <th>Peer</th>
- </tr>
- <tr>
- <td>peer2</td>
- </tr>
- </table>
- </div><div id="peer2Admin-joinChannelResult">
- <h4>User peer2Admin setting tag key joinChannelResult to value</h4>
- </div><div>
- <a href="./peer2admin-joinchannelresult-peer2.protobuf" title="peer2admin-joinchannelresult-peer2.protobuf">Protobuf message in binary form</a>
- <div class="scrollBox">
- <code>
- response {
- status: 200
- }
- </code>
- </div>
- <div>
- <div class="scrollBox">
- <code>
- from peer.proposal_response_pb2 import ProposalResponse
- proposalResponse = ProposalResponse()
- data = None
- with open('tmp/40dc98342b7a11e79ac800163e000427/peer2admin-joinchannelresult-peer2.protobuf') as f:
- data = f.read()
- proposalResponse.ParseFromString(data)
- </code>
- </div>
- </div></div><div id="Step 35">
- <h2>Step 35</h2>
- <hr/>
- <h3>Then user "peer2Admin" expects result code for "joinChannelResult" of "200" from peers</h3>
- <table>
- <tr>
- <th>Peer</th>
- </tr>
- <tr>
- <td>peer2</td>
- </tr>
- </table>
- </div><div id="Step 36">
- <h2>Step 36</h2>
- <hr/>
- <h3>When user "peer3Admin" using cert alias "peer-admin-cert" requests to join channel using genesis block "genesisBlockForMyNewChannel" on peers with result "joinChannelResult"</h3>
- <table>
- <tr>
- <th>Peer</th>
- </tr>
- <tr>
- <td>peer3</td>
- </tr>
- </table>
- </div><div id="peer3Admin-joinChannelResult">
- <h4>User peer3Admin setting tag key joinChannelResult to value</h4>
- </div><div>
- <a href="./peer3admin-joinchannelresult-peer3.protobuf" title="peer3admin-joinchannelresult-peer3.protobuf">Protobuf message in binary form</a>
- <div class="scrollBox">
- <code>
- response {
- status: 200
- }
- </code>
- </div>
- <div>
- <div class="scrollBox">
- <code>
- from peer.proposal_response_pb2 import ProposalResponse
- proposalResponse = ProposalResponse()
- data = None
- with open('tmp/40dc98342b7a11e79ac800163e000427/peer3admin-joinchannelresult-peer3.protobuf') as f:
- data = f.read()
- proposalResponse.ParseFromString(data)
- </code>
- </div>
- </div></div><div id="Step 37">
- <h2>Step 37</h2>
- <hr/>
- <h3>Then user "peer3Admin" expects result code for "joinChannelResult" of "200" from peers</h3>
- <table>
- <tr>
- <th>Peer</th>
- </tr>
- <tr>
- <td>peer3</td>
- </tr>
- </table>
- </div><div id="Step 38">
- <h2>Step 38</h2>
- <hr/>
- <h3>When user "peer0Admin" creates a chaincode spec "cc_spec" with name "example02" of type "GOLANG" for chaincode "github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02" with args</h3>
- <table>
- <tr>
- <th>funcName</th>
- <th>arg1</th>
- <th>arg2</th>
- <th>arg3</th>
- <th>arg4</th>
- </tr>
- <tr>
- <td>init</td>
- <td>a</td>
- <td>100</td>
- <td>b</td>
- <td>200</td>
- </tr>
- </table>
- </div><div id="peer0Admin-cc_spec">
- <h4>User peer0Admin setting tag key cc_spec to value</h4>
- </div><div>
- <a href="./peer0admin-cc-spec.protobuf" title="peer0admin-cc-spec.protobuf">Protobuf message in binary form</a>
- <div class="scrollBox">
- <code>
- type: GOLANG
- chaincode_id {
- path: "github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02"
- name: "example02"
- version: "test"
- }
- input {
- args: "init"
- args: "a"
- args: "100"
- args: "b"
- args: "200"
- }
- </code>
- </div>
- <div>
- <div class="scrollBox">
- <code>
- from peer.chaincode_pb2 import ChaincodeSpec
- chaincodeSpec = ChaincodeSpec()
- data = None
- with open('tmp/40dc98342b7a11e79ac800163e000427/peer0admin-cc-spec.protobuf') as f:
- data = f.read()
- chaincodeSpec.ParseFromString(data)
- </code>
- </div>
- </div></div><div id="Step 39">
- <h2>Step 39</h2>
- <hr/>
- <h3>And user "peer0Admin" using cert alias "peer-admin-cert" creates a install proposal "installProposal1" for channel "com.acme.blockchain.jdoe.Channel1" using chaincode spec "cc_spec"</h3>
- </div><div id="peer0Admin-installProposal1">
- <h4>User peer0Admin setting tag key installProposal1 to value</h4>
- </div><div>
- <a href="./peer0admin-installproposal1.protobuf" title="peer0admin-installproposal1.protobuf">Protobuf message in binary form</a>
- Not showing message, exceeded max lenth of 10240 byes.
- <div>
- <div class="scrollBox">
- <code>
- from peer.proposal_pb2 import SignedProposal
- signedProposal = SignedProposal()
- data = None
- with open('tmp/40dc98342b7a11e79ac800163e000427/peer0admin-installproposal1.protobuf') as f:
- data = f.read()
- signedProposal.ParseFromString(data)
- </code>
- </div>
- </div></div><div id="Step 40">
- <h2>Step 40</h2>
- <hr/>
- <h3>And user "peer0Admin" using cert alias "peer-admin-cert" sends proposal "installProposal1" to endorsers with timeout of "90" seconds with proposal responses "installProposalResponses"</h3>
- <table>
- <tr>
- <th>Endorser</th>
- </tr>
- <tr>
- <td>peer0</td>
- </tr>
- </table>
- </div><div id="peer0Admin-installProposalResponses">
- <h4>User peer0Admin setting tag key installProposalResponses to value</h4>
- </div><div>
- <a href="./peer0admin-installproposalresponses-peer0.protobuf" title="peer0admin-installproposalresponses-peer0.protobuf">Protobuf message in binary form</a>
- <div class="scrollBox">
- <code>
- version: 1
- response {
- status: 200
- message: "OK"
- payload: "OK"
- }
- payload: "\n d\317\032%/V\307\205P(\025\273\017\3579\236\225#He\301\017\351K\315\n\te\255f\302\323\022)\032\007\010\310\001\032\002OK\"\036\022\004lscc\032\0261.0.0-snapshot-ca3a1a2"
- endorsement {
- endorser: "\n\010peerOrg0\022\273\005-----BEGIN -----\nMIIB6DCCAY2gAwIBAwICA+gwCgYIKoZIzj0EAwIwVTERMA8GA1UEAwwIcGVlck9y\nZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEXMBUG\nA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTM0WhcNMTgwNDI3MTg0\nOTM0WjBSMQ4wDAYDVQQDDAVwZWVyMDELMAkGA1UEBhMCVVMxDDAKBgNVBAcMA1JU\nUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZMBMGByqG\nSM49AgEGCCqGSM49AwEHA0IABJy9UK+oXuGSbpbzgZU64aVp7LsMjk75CscMjB5I\naD2dUl2WmcLGeAtBqbHyMWGjc2JRseCKnutbgPwnkm9UCBajUDBOMAwGA1UdEwEB\n/wQCMAAwHQYDVR0OBBYEFPtBGBSCzm6QkrZH6e/mCSa2M9PrMB8GA1UdIwQYMBaA\nFMjjW1UqCPlfPHykFupBF0DJjgAjMAoGCCqGSM49BAMCA0kAMEYCIQDvOHWvdVLz\nOOOO6zVzlTlnpx7l3tnFYENIX3bPx0mMWwIhANWacbcNaErmH+AO7iSpTEG0+yOv\nricFnKdPqNrYWOOK\n-----END -----\n"
- signature: "0D\002 \014\231{\246\025L\374\243a\332\374Lc1_\346\316v\234\234\202M\314t\271)gj]\225n\340\002 d\216\035j\235hF\032\323\243\271\277\366\307\231\2542zy\353\021\242\370\260\300*\363(\351\265\211\332"
- }
- </code>
- </div>
- <div>
- <div class="scrollBox">
- <code>
- from peer.proposal_response_pb2 import ProposalResponse
- proposalResponse = ProposalResponse()
- data = None
- with open('tmp/40dc98342b7a11e79ac800163e000427/peer0admin-installproposalresponses-peer0.protobuf') as f:
- data = f.read()
- proposalResponse.ParseFromString(data)
- </code>
- </div>
- </div></div><div id="Step 41">
- <h2>Step 41</h2>
- <hr/>
- <h3>Then user "peer0Admin" expects proposal responses "installProposalResponses" with status "200" from endorsers</h3>
- <table>
- <tr>
- <th>Endorser</th>
- </tr>
- <tr>
- <td>peer0</td>
- </tr>
- </table>
- </div><div id="Step 42">
- <h2>Step 42</h2>
- <hr/>
- <h3>Given user "peer0Admin" gives "cc_spec" to user "peer2Admin"</h3>
- </div><div id="peer2Admin-cc_spec">
- <h4>User peer2Admin setting tag key cc_spec to value</h4>
- </div><div>
- <a href="./peer2admin-cc-spec.protobuf" title="peer2admin-cc-spec.protobuf">Protobuf message in binary form</a>
- <div class="scrollBox">
- <code>
- type: GOLANG
- chaincode_id {
- path: "github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02"
- name: "example02"
- version: "test"
- }
- input {
- args: "init"
- args: "a"
- args: "100"
- args: "b"
- args: "200"
- }
- </code>
- </div>
- <div>
- <div class="scrollBox">
- <code>
- from peer.chaincode_pb2 import ChaincodeSpec
- chaincodeSpec = ChaincodeSpec()
- data = None
- with open('tmp/40dc98342b7a11e79ac800163e000427/peer2admin-cc-spec.protobuf') as f:
- data = f.read()
- chaincodeSpec.ParseFromString(data)
- </code>
- </div>
- </div></div><div id="Step 43">
- <h2>Step 43</h2>
- <hr/>
- <h3>When user "peer2Admin" using cert alias "peer-admin-cert" creates a install proposal "installProposal1" for channel "com.acme.blockchain.jdoe.Channel1" using chaincode spec "cc_spec"</h3>
- </div><div id="peer2Admin-installProposal1">
- <h4>User peer2Admin setting tag key installProposal1 to value</h4>
- </div><div>
- <a href="./peer2admin-installproposal1.protobuf" title="peer2admin-installproposal1.protobuf">Protobuf message in binary form</a>
- Not showing message, exceeded max lenth of 10240 byes.
- <div>
- <div class="scrollBox">
- <code>
- from peer.proposal_pb2 import SignedProposal
- signedProposal = SignedProposal()
- data = None
- with open('tmp/40dc98342b7a11e79ac800163e000427/peer2admin-installproposal1.protobuf') as f:
- data = f.read()
- signedProposal.ParseFromString(data)
- </code>
- </div>
- </div></div><div id="Step 44">
- <h2>Step 44</h2>
- <hr/>
- <h3>And user "peer2Admin" using cert alias "peer-admin-cert" sends proposal "installProposal1" to endorsers with timeout of "90" seconds with proposal responses "installProposalResponses"</h3>
- <table>
- <tr>
- <th>Endorser</th>
- </tr>
- <tr>
- <td>peer2</td>
- </tr>
- </table>
- </div><div id="peer2Admin-installProposalResponses">
- <h4>User peer2Admin setting tag key installProposalResponses to value</h4>
- </div><div>
- <a href="./peer2admin-installproposalresponses-peer2.protobuf" title="peer2admin-installproposalresponses-peer2.protobuf">Protobuf message in binary form</a>
- <div class="scrollBox">
- <code>
- version: 1
- response {
- status: 200
- message: "OK"
- payload: "OK"
- }
- payload: "\n \2228e10)\230\373E\322\220\272fy\336\317a\205\200\033\322RW4\235\251tl\261i`|\022)\032\007\010\310\001\032\002OK\"\036\022\004lscc\032\0261.0.0-snapshot-ca3a1a2"
- endorsement {
- endorser: "\n\010peerOrg0\022\273\005-----BEGIN -----\nMIIB5zCCAY2gAwIBAwICA+gwCgYIKoZIzj0EAwIwVTERMA8GA1UEAwwIcGVlck9y\nZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEXMBUG\nA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTM1WhcNMTgwNDI3MTg0\nOTM1WjBSMQ4wDAYDVQQDDAVwZWVyMjELMAkGA1UEBhMCVVMxDDAKBgNVBAcMA1JU\nUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZMBMGByqG\nSM49AgEGCCqGSM49AwEHA0IABD0T8OXva7RUQQ5Y66BJOXhWR+fRJgI+uJcemZu8\nLxejvMPCTIe/vqOJGCgAFYBsEEu/UARICOFk688ksHElKmijUDBOMAwGA1UdEwEB\n/wQCMAAwHQYDVR0OBBYEFKin2+gnq87xKAR+ipKYcsJS3rTUMB8GA1UdIwQYMBaA\nFMjjW1UqCPlfPHykFupBF0DJjgAjMAoGCCqGSM49BAMCA0gAMEUCIBk2lroR3Q8b\nxxLGeCjwY7TIPO5rONr4KGG6mOiLHIoZAiEAy9rZZ2i5oLtkxHaScy18I+9paj2u\nMFB4/f++r6yDDi8=\n-----END -----\n"
- signature: "0D\002 t&Eh>\207\231\327F\303$\340<\301PE\001G&\007d?t:\367[k\374\367\3222\344\002 \016\025OW\205\270J\351\237\261U_K\320=\326j<\335{=5\375\020\\D\202n$h\312\255"
- }
- </code>
- </div>
- <div>
- <div class="scrollBox">
- <code>
- from peer.proposal_response_pb2 import ProposalResponse
- proposalResponse = ProposalResponse()
- data = None
- with open('tmp/40dc98342b7a11e79ac800163e000427/peer2admin-installproposalresponses-peer2.protobuf') as f:
- data = f.read()
- proposalResponse.ParseFromString(data)
- </code>
- </div>
- </div></div><div id="Step 45">
- <h2>Step 45</h2>
- <hr/>
- <h3>Then user "peer2Admin" expects proposal responses "installProposalResponses" with status "200" from endorsers</h3>
- <table>
- <tr>
- <th>Endorser</th>
- </tr>
- <tr>
- <td>peer2</td>
- </tr>
- </table>
- </div><div id="Step 46">
- <h2>Step 46</h2>
- <hr/>
- <h3>Given user "peer0Admin" gives "cc_spec" to user "dev0Org0"</h3>
- </div><div id="dev0Org0-cc_spec">
- <h4>User dev0Org0 setting tag key cc_spec to value</h4>
- </div><div>
- <a href="./dev0org0-cc-spec.protobuf" title="dev0org0-cc-spec.protobuf">Protobuf message in binary form</a>
- <div class="scrollBox">
- <code>
- type: GOLANG
- chaincode_id {
- path: "github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02"
- name: "example02"
- version: "test"
- }
- input {
- args: "init"
- args: "a"
- args: "100"
- args: "b"
- args: "200"
- }
- </code>
- </div>
- <div>
- <div class="scrollBox">
- <code>
- from peer.chaincode_pb2 import ChaincodeSpec
- chaincodeSpec = ChaincodeSpec()
- data = None
- with open('tmp/40dc98342b7a11e79ac800163e000427/dev0org0-cc-spec.protobuf') as f:
- data = f.read()
- chaincodeSpec.ParseFromString(data)
- </code>
- </div>
- </div></div><div id="Step 47">
- <h2>Step 47</h2>
- <hr/>
- <h3>When user "dev0Org0" using cert alias "dev0Org0App1" creates a instantiate proposal "instantiateProposal1" for channel "com.acme.blockchain.jdoe.Channel1" using chaincode spec "cc_spec"</h3>
- </div><div id="dev0Org0-instantiateProposal1">
- <h4>User dev0Org0 setting tag key instantiateProposal1 to value</h4>
- </div><div>
- <a href="./dev0org0-instantiateproposal1.protobuf" title="dev0org0-instantiateproposal1.protobuf">Protobuf message in binary form</a>
- <div class="scrollBox">
- <code>
- proposal_bytes: "\n\212\007\n\201\001\010\003\020\001\032\006\010\275\372\210\310\005\"!com.acme.blockchain.jdoe.Channel1*@98af23c34c27a23ccd8a5de5001ffe44a41dd9dd98ae22d3db00a7501f61dfdd:\016\022\014\022\004lscc\032\004test\022\203\006\n\346\005\n\010peerOrg0\022\331\005-----BEGIN CERTIFICATE-----\nMIIB7jCCAZOgAwIBAwICA+gwCgYIKoZIzj0EAwIwVTERMA8GA1UEAwwIcGVlck9y\nZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEXMBUG\nA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTQyWhcNMTgwNDI3MTg0\nOTQyWjBYMRQwEgYDVQQDDAtjb25zb3J0aXVtMTELMAkGA1UEBhMCVVMxDDAKBgNV\nBAcMA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZ\nMBMGByqGSM49AgEGCCqGSM49AwEHA0IABGz3FMovRstBK5DubTSWl4auUBNjUeMk\nmW6x0UbEXonK/sj6O5AhEN4EkrfyVJF/sA9m52AHsmEzaP2odIgYEx+jUDBOMAwG\nA1UdEwEB/wQCMAAwHQYDVR0OBBYEFAJ9LmlaPF5mnEYRzANjO816UdYaMB8GA1Ud\nIwQYMBaAFMjjW1UqCPlfPHykFupBF0DJjgAjMAoGCCqGSM49BAMCA0kAMEYCIQCV\nGtvbmUTYRzpmlju3p/cUA5kQRhXwxEf9llMUhePEEAIhAKOv+ja0WY9izP2MAdGx\nUuWd5HCHk0DT3FI2osl/qYIO\n-----END CERTIFICATE-----\n\022\030M=\341\006\375J{\346\003\344\001~\023\243\004\347R\204\354\347 \332K\325\022\276\001\n\273\001\n\270\001\010\001\022\014\022\004lscc\032\004test\032\245\001\n\006deploy\n!com.acme.blockchain.jdoe.Channel1\nx\nv\010\001\022Z\nGgithub.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02\022\texample02\032\004test\032\026\n\004init\n\001a\n\003100\n\001b\n\003200"
- signature: "0D\002 {=\035v;.wB\376\211\\dk\213f\304eE\230<\310X\366p\\@Z\255\247\315`\305\002 U\003=(\2428Y\320\341\222\235\006`OF\355s\303PiBOJ2W\241BUb\225\361p"
- </code>
- </div>
- <div>
- <div class="scrollBox">
- <code>
- from peer.proposal_pb2 import SignedProposal
- signedProposal = SignedProposal()
- data = None
- with open('tmp/40dc98342b7a11e79ac800163e000427/dev0org0-instantiateproposal1.protobuf') as f:
- data = f.read()
- signedProposal.ParseFromString(data)
- </code>
- </div>
- </div></div><div id="Step 48">
- <h2>Step 48</h2>
- <hr/>
- <h3>And user "dev0Org0" using cert alias "dev0Org0App1" sends proposal "instantiateProposal1" to endorsers with timeout of "90" seconds with proposal responses "instantiateProposalResponses"</h3>
- <table>
- <tr>
- <th>Endorser</th>
- </tr>
- <tr>
- <td>peer0</td>
- </tr>
- <tr>
- <td>peer2</td>
- </tr>
- </table>
- </div><div id="dev0Org0-instantiateProposalResponses">
- <h4>User dev0Org0 setting tag key instantiateProposalResponses to value</h4>
- </div><div>
- <a href="./dev0org0-instantiateproposalresponses-peer0.protobuf" title="dev0org0-instantiateproposalresponses-peer0.protobuf">Protobuf message in binary form</a>
- Not showing message, exceeded max lenth of 10240 byes.
- <div>
- <div class="scrollBox">
- <code>
- from peer.proposal_response_pb2 import ProposalResponse
- proposalResponse = ProposalResponse()
- data = None
- with open('tmp/40dc98342b7a11e79ac800163e000427/dev0org0-instantiateproposalresponses-peer0.protobuf') as f:
- data = f.read()
- proposalResponse.ParseFromString(data)
- </code>
- </div>
- </div></div><div>
- <a href="./dev0org0-instantiateproposalresponses-peer2.protobuf" title="dev0org0-instantiateproposalresponses-peer2.protobuf">Protobuf message in binary form</a>
- Not showing message, exceeded max lenth of 10240 byes.
- <div>
- <div class="scrollBox">
- <code>
- from peer.proposal_response_pb2 import ProposalResponse
- proposalResponse = ProposalResponse()
- data = None
- with open('tmp/40dc98342b7a11e79ac800163e000427/dev0org0-instantiateproposalresponses-peer2.protobuf') as f:
- data = f.read()
- proposalResponse.ParseFromString(data)
- </code>
- </div>
- </div></div><div id="Step 49">
- <h2>Step 49</h2>
- <hr/>
- <h3>Then user "dev0Org0" expects proposal responses "instantiateProposalResponses" with status "200" from endorsers</h3>
- <table>
- <tr>
- <th>Endorser</th>
- </tr>
- <tr>
- <td>peer0</td>
- </tr>
- <tr>
- <td>peer2</td>
- </tr>
- </table>
- </div><div id="Step 50">
- <h2>Step 50</h2>
- <hr/>
- <h3>And user "dev0Org0" expects proposal responses "instantiateProposalResponses" each have the same value from endorsers</h3>
- <table>
- <tr>
- <th>Endorser</th>
- </tr>
- <tr>
- <td>peer0</td>
- </tr>
- <tr>
- <td>peer2</td>
- </tr>
- </table>
- </div><div id="Step 51">
- <h2>Step 51</h2>
- <hr/>
- <h3>When the user "dev0Org0" creates transaction "instantiateTx1" from proposal "instantiateProposal1" and proposal responses "instantiateProposalResponses" for channel "com.acme.blockchain.jdoe.Channel1"</h3>
- </div><div id="dev0Org0-instantiateTx1">
- <h4>User dev0Org0 setting tag key instantiateTx1 to value</h4>
- </div><div>
- <a href="./dev0org0-instantiatetx1.protobuf" title="dev0org0-instantiatetx1.protobuf">Protobuf message in binary form</a>
- Not showing message, exceeded max lenth of 10240 byes.
- <div>
- <div class="scrollBox">
- <code>
- from common.common_pb2 import Envelope
- envelope = Envelope()
- data = None
- with open('tmp/40dc98342b7a11e79ac800163e000427/dev0org0-instantiatetx1.protobuf') as f:
- data = f.read()
- envelope.ParseFromString(data)
- </code>
- </div>
- </div></div><div id="Step 52">
- <h2>Step 52</h2>
- <hr/>
- <h3>And the user "dev0Org0" broadcasts transaction "instantiateTx1" to orderer "orderer0" on channel "com.acme.blockchain.jdoe.Channel1"</h3>
- </div><div id="Step 53">
- <h2>Step 53</h2>
- <hr/>
- <h3>And I wait "2" seconds</h3>
- </div><div id="Step 54">
- <h2>Step 54</h2>
- <hr/>
- <h3>And user "dev0Org0" sends deliver a seek request on orderer "orderer0" with properties</h3>
- <table>
- <tr>
- <th>ChainId</th>
- <th>Start</th>
- <th>End</th>
- </tr>
- <tr>
- <td>com.acme.blockchain.jdoe.Channel1</td>
- <td>1</td>
- <td>1</td>
- </tr>
- </table>
- </div><div id="Step 55">
- <h2>Step 55</h2>
- <hr/>
- <h3>Then user "dev0Org0" should get a delivery "deliveredInstantiateTx1Block" from "orderer0" of "1" blocks with "1" messages within "1" seconds</h3>
- </div><div id="dev0Org0-deliveredInstantiateTx1Block">
- <h4>User dev0Org0 setting tag key deliveredInstantiateTx1Block to value</h4>
- </div><div>
- <a href="./dev0org0-deliveredinstantiatetx1block-0000.protobuf" title="dev0org0-deliveredinstantiatetx1block-0000.protobuf">Protobuf message in binary form</a>
- Not showing message, exceeded max lenth of 10240 byes.
- <div>
- <div class="scrollBox">
- <code>
- from common.common_pb2 import Block
- block = Block()
- data = None
- with open('tmp/40dc98342b7a11e79ac800163e000427/dev0org0-deliveredinstantiatetx1block-0000.protobuf') as f:
- data = f.read()
- block.ParseFromString(data)
- </code>
- </div>
- </div></div><div id="Step 56">
- <h2>Step 56</h2>
- <hr/>
- <h3>And I wait "1" seconds</h3>
- </div><div id="Step 57">
- <h2>Step 57</h2>
- <hr/>
- <h3>When user "dev0Org0" creates a chaincode invocation spec "querySpec1" using spec "cc_spec" with input</h3>
- <table>
- <tr>
- <th>funcName</th>
- <th>arg1</th>
- </tr>
- <tr>
- <td>query</td>
- <td>a</td>
- </tr>
- </table>
- </div><div id="dev0Org0-querySpec1">
- <h4>User dev0Org0 setting tag key querySpec1 to value</h4>
- </div><div>
- <a href="./dev0org0-queryspec1.protobuf" title="dev0org0-queryspec1.protobuf">Protobuf message in binary form</a>
- <div class="scrollBox">
- <code>
- type: GOLANG
- chaincode_id {
- path: "github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02"
- name: "example02"
- version: "test"
- }
- input {
- args: "query"
- args: "a"
- }
- </code>
- </div>
- <div>
- <div class="scrollBox">
- <code>
- from peer.chaincode_pb2 import ChaincodeSpec
- chaincodeSpec = ChaincodeSpec()
- data = None
- with open('tmp/40dc98342b7a11e79ac800163e000427/dev0org0-queryspec1.protobuf') as f:
- data = f.read()
- chaincodeSpec.ParseFromString(data)
- </code>
- </div>
- </div></div><div id="Step 58">
- <h2>Step 58</h2>
- <hr/>
- <h3>And user "dev0Org0" using cert alias "dev0Org0App1" creates a proposal "queryProposal1" for channel "com.acme.blockchain.jdoe.Channel1" using chaincode spec "querySpec1"</h3>
- </div><div id="dev0Org0-queryProposal1">
- <h4>User dev0Org0 setting tag key queryProposal1 to value</h4>
- </div><div>
- <a href="./dev0org0-queryproposal1.protobuf" title="dev0org0-queryproposal1.protobuf">Protobuf message in binary form</a>
- <div class="scrollBox">
- <code>
- proposal_bytes: "\n\330\007\n\317\001\010\003\020\001\032\006\010\275\372\210\310\005\"!com.acme.blockchain.jdoe.Channel1*@17d57b8b07264d9e9c74023c2621fbe045bd112bc00520829097f3ab8893b76b:\\\022Z\nGgithub.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02\022\texample02\032\004test\022\203\006\n\346\005\n\010peerOrg0\022\331\005-----BEGIN CERTIFICATE-----\nMIIB7jCCAZOgAwIBAwICA+gwCgYIKoZIzj0EAwIwVTERMA8GA1UEAwwIcGVlck9y\nZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEXMBUG\nA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTQyWhcNMTgwNDI3MTg0\nOTQyWjBYMRQwEgYDVQQDDAtjb25zb3J0aXVtMTELMAkGA1UEBhMCVVMxDDAKBgNV\nBAcMA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZ\nMBMGByqGSM49AgEGCCqGSM49AwEHA0IABGz3FMovRstBK5DubTSWl4auUBNjUeMk\nmW6x0UbEXonK/sj6O5AhEN4EkrfyVJF/sA9m52AHsmEzaP2odIgYEx+jUDBOMAwG\nA1UdEwEB/wQCMAAwHQYDVR0OBBYEFAJ9LmlaPF5mnEYRzANjO816UdYaMB8GA1Ud\nIwQYMBaAFMjjW1UqCPlfPHykFupBF0DJjgAjMAoGCCqGSM49BAMCA0kAMEYCIQCV\nGtvbmUTYRzpmlju3p/cUA5kQRhXwxEf9llMUhePEEAIhAKOv+ja0WY9izP2MAdGx\nUuWd5HCHk0DT3FI2osl/qYIO\n-----END CERTIFICATE-----\n\022\030\325\357x\017Z\023\237\360\277\035\263\345\t\362\376{\013\305\254\240\366\203\241\014\022n\nl\nj\010\001\022Z\nGgithub.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02\022\texample02\032\004test\032\n\n\005query\n\001a"
- signature: "0D\002 \006\270G\266\027`\0259\353\312\252\'\211\256\320\264)\027\264(\260\021;\311:\300zq\203^\323\247\002 t`\037\276\2669)\245&\004s\346\243p\364\377\005\303L\265Y\360\213&\251\025\254\300\024\226\376\347"
- </code>
- </div>
- <div>
- <div class="scrollBox">
- <code>
- from peer.proposal_pb2 import SignedProposal
- signedProposal = SignedProposal()
- data = None
- with open('tmp/40dc98342b7a11e79ac800163e000427/dev0org0-queryproposal1.protobuf') as f:
- data = f.read()
- signedProposal.ParseFromString(data)
- </code>
- </div>
- </div></div><div id="Step 59">
- <h2>Step 59</h2>
- <hr/>
- <h3>And user "dev0Org0" using cert alias "dev0Org0App1" sends proposal "queryProposal1" to endorsers with timeout of "30" seconds with proposal responses "queryProposal1Responses"</h3>
- <table>
- <tr>
- <th>Endorser</th>
- </tr>
- <tr>
- <td>peer0</td>
- </tr>
- <tr>
- <td>peer2</td>
- </tr>
- </table>
- </div><div id="dev0Org0-queryProposal1Responses">
- <h4>User dev0Org0 setting tag key queryProposal1Responses to value</h4>
- </div><div>
- <a href="./dev0org0-queryproposal1responses-peer0.protobuf" title="dev0org0-queryproposal1responses-peer0.protobuf">Protobuf message in binary form</a>
- <div class="scrollBox">
- <code>
- version: 1
- response {
- status: 200
- message: "OK"
- payload: "100"
- }
- payload: "\n \310^\376\177\304\025\231\2079\343\356i\206\005]\000:\346/\244\'\304\327\222\262Q#\332\212\317\tK\022\233\001\n3\022\026\n\texample02\022\t\n\007\n\001a\022\002\010\001\022\031\n\004lscc\022\021\n\017\n\texample02\022\002\010\001\032\010\010\310\001\032\003100\"Z\nGgithub.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02\022\texample02\032\004test"
- endorsement {
- endorser: "\n\010peerOrg0\022\273\005-----BEGIN -----\nMIIB6DCCAY2gAwIBAwICA+gwCgYIKoZIzj0EAwIwVTERMA8GA1UEAwwIcGVlck9y\nZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEXMBUG\nA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTM0WhcNMTgwNDI3MTg0\nOTM0WjBSMQ4wDAYDVQQDDAVwZWVyMDELMAkGA1UEBhMCVVMxDDAKBgNVBAcMA1JU\nUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZMBMGByqG\nSM49AgEGCCqGSM49AwEHA0IABJy9UK+oXuGSbpbzgZU64aVp7LsMjk75CscMjB5I\naD2dUl2WmcLGeAtBqbHyMWGjc2JRseCKnutbgPwnkm9UCBajUDBOMAwGA1UdEwEB\n/wQCMAAwHQYDVR0OBBYEFPtBGBSCzm6QkrZH6e/mCSa2M9PrMB8GA1UdIwQYMBaA\nFMjjW1UqCPlfPHykFupBF0DJjgAjMAoGCCqGSM49BAMCA0kAMEYCIQDvOHWvdVLz\nOOOO6zVzlTlnpx7l3tnFYENIX3bPx0mMWwIhANWacbcNaErmH+AO7iSpTEG0+yOv\nricFnKdPqNrYWOOK\n-----END -----\n"
- signature: "0E\002!\000\375\265x-\303^5\337RQ\307\301Y\014\372g\370\004J\304\002;\327\007v\031(T|\372Z\270\002 \026\213\014`.\263\246\341\226X\017\234AG\0200g\375\314OxZd\010\265&\201>\355\'\031\177"
- }
- </code>
- </div>
- <div>
- <div class="scrollBox">
- <code>
- from peer.proposal_response_pb2 import ProposalResponse
- proposalResponse = ProposalResponse()
- data = None
- with open('tmp/40dc98342b7a11e79ac800163e000427/dev0org0-queryproposal1responses-peer0.protobuf') as f:
- data = f.read()
- proposalResponse.ParseFromString(data)
- </code>
- </div>
- </div></div><div>
- <a href="./dev0org0-queryproposal1responses-peer2.protobuf" title="dev0org0-queryproposal1responses-peer2.protobuf">Protobuf message in binary form</a>
- <div class="scrollBox">
- <code>
- version: 1
- response {
- status: 200
- message: "OK"
- payload: "100"
- }
- payload: "\n \310^\376\177\304\025\231\2079\343\356i\206\005]\000:\346/\244\'\304\327\222\262Q#\332\212\317\tK\022\233\001\n3\022\026\n\texample02\022\t\n\007\n\001a\022\002\010\001\022\031\n\004lscc\022\021\n\017\n\texample02\022\002\010\001\032\010\010\310\001\032\003100\"Z\nGgithub.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02\022\texample02\032\004test"
- endorsement {
- endorser: "\n\010peerOrg0\022\273\005-----BEGIN -----\nMIIB5zCCAY2gAwIBAwICA+gwCgYIKoZIzj0EAwIwVTERMA8GA1UEAwwIcGVlck9y\nZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEXMBUG\nA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTM1WhcNMTgwNDI3MTg0\nOTM1WjBSMQ4wDAYDVQQDDAVwZWVyMjELMAkGA1UEBhMCVVMxDDAKBgNVBAcMA1JU\nUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZMBMGByqG\nSM49AgEGCCqGSM49AwEHA0IABD0T8OXva7RUQQ5Y66BJOXhWR+fRJgI+uJcemZu8\nLxejvMPCTIe/vqOJGCgAFYBsEEu/UARICOFk688ksHElKmijUDBOMAwGA1UdEwEB\n/wQCMAAwHQYDVR0OBBYEFKin2+gnq87xKAR+ipKYcsJS3rTUMB8GA1UdIwQYMBaA\nFMjjW1UqCPlfPHykFupBF0DJjgAjMAoGCCqGSM49BAMCA0gAMEUCIBk2lroR3Q8b\nxxLGeCjwY7TIPO5rONr4KGG6mOiLHIoZAiEAy9rZZ2i5oLtkxHaScy18I+9paj2u\nMFB4/f++r6yDDi8=\n-----END -----\n"
- signature: "0D\002 \032\332\032\3017\261\203qa\020Q\336\311k\211\2674\1772\265\016\321\210\203T ?\227\333P\347\256\002 %^\362\364@\302B\353\356m\301\030\326t$\257\205 \374\201\3739\016W\310_\240@R\247\317\032"
- }
- </code>
- </div>
- <div>
- <div class="scrollBox">
- <code>
- from peer.proposal_response_pb2 import ProposalResponse
- proposalResponse = ProposalResponse()
- data = None
- with open('tmp/40dc98342b7a11e79ac800163e000427/dev0org0-queryproposal1responses-peer2.protobuf') as f:
- data = f.read()
- proposalResponse.ParseFromString(data)
- </code>
- </div>
- </div></div><div id="Step 60">
- <h2>Step 60</h2>
- <hr/>
- <h3>Then user "dev0Org0" expects proposal responses "queryProposal1Responses" with status "200" from endorsers</h3>
- <table>
- <tr>
- <th>Endorser</th>
- </tr>
- <tr>
- <td>peer0</td>
- </tr>
- <tr>
- <td>peer2</td>
- </tr>
- </table>
- </div><div id="Step 61">
- <h2>Step 61</h2>
- <hr/>
- <h3>And user "dev0Org0" expects proposal responses "queryProposal1Responses" each have the same value from endorsers</h3>
- <table>
- <tr>
- <th>Endorser</th>
- </tr>
- <tr>
- <td>peer0</td>
- </tr>
- <tr>
- <td>peer2</td>
- </tr>
- </table>
- </div><div id="Step 62">
- <h2>Step 62</h2>
- <hr/>
- <h3>When user "dev0Org0" creates a chaincode invocation spec "invocationSpec1" using spec "cc_spec" with input</h3>
- <table>
- <tr>
- <th>funcName</th>
- <th>arg1</th>
- <th>arg2</th>
- <th>arg3</th>
- </tr>
- <tr>
- <td>invoke</td>
- <td>a</td>
- <td>b</td>
- <td>10</td>
- </tr>
- </table>
- </div><div id="dev0Org0-invocationSpec1">
- <h4>User dev0Org0 setting tag key invocationSpec1 to value</h4>
- </div><div>
- <a href="./dev0org0-invocationspec1.protobuf" title="dev0org0-invocationspec1.protobuf">Protobuf message in binary form</a>
- <div class="scrollBox">
- <code>
- type: GOLANG
- chaincode_id {
- path: "github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02"
- name: "example02"
- version: "test"
- }
- input {
- args: "invoke"
- args: "a"
- args: "b"
- args: "10"
- }
- </code>
- </div>
- <div>
- <div class="scrollBox">
- <code>
- from peer.chaincode_pb2 import ChaincodeSpec
- chaincodeSpec = ChaincodeSpec()
- data = None
- with open('tmp/40dc98342b7a11e79ac800163e000427/dev0org0-invocationspec1.protobuf') as f:
- data = f.read()
- chaincodeSpec.ParseFromString(data)
- </code>
- </div>
- </div></div><div id="Step 63">
- <h2>Step 63</h2>
- <hr/>
- <h3>And user "dev0Org0" using cert alias "dev0Org0App1" creates a proposal "invokeProposal1" for channel "com.acme.blockchain.jdoe.Channel1" using chaincode spec "invocationSpec1"</h3>
- </div><div id="dev0Org0-invokeProposal1">
- <h4>User dev0Org0 setting tag key invokeProposal1 to value</h4>
- </div><div>
- <a href="./dev0org0-invokeproposal1.protobuf" title="dev0org0-invokeproposal1.protobuf">Protobuf message in binary form</a>
- <div class="scrollBox">
- <code>
- proposal_bytes: "\n\330\007\n\317\001\010\003\020\001\032\006\010\275\372\210\310\005\"!com.acme.blockchain.jdoe.Channel1*@9de9a6ee29a75fab1e45dc2127f95a8d71afa56610ebacbbda0d9a354f369af5:\\\022Z\nGgithub.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02\022\texample02\032\004test\022\203\006\n\346\005\n\010peerOrg0\022\331\005-----BEGIN CERTIFICATE-----\nMIIB7jCCAZOgAwIBAwICA+gwCgYIKoZIzj0EAwIwVTERMA8GA1UEAwwIcGVlck9y\nZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEXMBUG\nA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTQyWhcNMTgwNDI3MTg0\nOTQyWjBYMRQwEgYDVQQDDAtjb25zb3J0aXVtMTELMAkGA1UEBhMCVVMxDDAKBgNV\nBAcMA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZ\nMBMGByqGSM49AgEGCCqGSM49AwEHA0IABGz3FMovRstBK5DubTSWl4auUBNjUeMk\nmW6x0UbEXonK/sj6O5AhEN4EkrfyVJF/sA9m52AHsmEzaP2odIgYEx+jUDBOMAwG\nA1UdEwEB/wQCMAAwHQYDVR0OBBYEFAJ9LmlaPF5mnEYRzANjO816UdYaMB8GA1Ud\nIwQYMBaAFMjjW1UqCPlfPHykFupBF0DJjgAjMAoGCCqGSM49BAMCA0kAMEYCIQCV\nGtvbmUTYRzpmlju3p/cUA5kQRhXwxEf9llMUhePEEAIhAKOv+ja0WY9izP2MAdGx\nUuWd5HCHk0DT3FI2osl/qYIO\n-----END CERTIFICATE-----\n\022\030Y\325\"\260\375\037\366\305\251\300\"\337\301\303\370F\022\313\241\311\263\360\210\300\022v\nt\nr\010\001\022Z\nGgithub.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02\022\texample02\032\004test\032\022\n\006invoke\n\001a\n\001b\n\00210"
- signature: "0E\002!\000\274\335\ni\025\027&\335%\371\220\257\226^\007\033\212\251~\202\324x\021#\300\245\023z\232\000O+\002 \026\343\000%P\030\242\354\323K\255Q\255\350\3462\315\277\223s\315\025a\214\216\2105\353/)z\272"
- </code>
- </div>
- <div>
- <div class="scrollBox">
- <code>
- from peer.proposal_pb2 import SignedProposal
- signedProposal = SignedProposal()
- data = None
- with open('tmp/40dc98342b7a11e79ac800163e000427/dev0org0-invokeproposal1.protobuf') as f:
- data = f.read()
- signedProposal.ParseFromString(data)
- </code>
- </div>
- </div></div><div id="Step 64">
- <h2>Step 64</h2>
- <hr/>
- <h3>And user "dev0Org0" using cert alias "dev0Org0App1" sends proposal "invokeProposal1" to endorsers with timeout of "30" seconds with proposal responses "invokeProposal1Responses"</h3>
- <table>
- <tr>
- <th>Endorser</th>
- </tr>
- <tr>
- <td>peer0</td>
- </tr>
- <tr>
- <td>peer2</td>
- </tr>
- </table>
- </div><div id="dev0Org0-invokeProposal1Responses">
- <h4>User dev0Org0 setting tag key invokeProposal1Responses to value</h4>
- </div><div>
- <a href="./dev0org0-invokeproposal1responses-peer0.protobuf" title="dev0org0-invokeproposal1responses-peer0.protobuf">Protobuf message in binary form</a>
- <div class="scrollBox">
- <code>
- version: 1
- response {
- status: 200
- message: "OK"
- }
- payload: "\n g^0\244Kot@\254\030\247\214#\3526.`\262<\315`\314C\340\367\222\266\271G\313\320_\022\262\001\nO\0222\n\texample02\022%\n\007\n\001a\022\002\010\001\n\007\n\001b\022\002\010\001\032\007\n\001a\032\00290\032\010\n\001b\032\003210\022\031\n\004lscc\022\021\n\017\n\texample02\022\002\010\001\032\003\010\310\001\"Z\nGgithub.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02\022\texample02\032\004test"
- endorsement {
- endorser: "\n\010peerOrg0\022\273\005-----BEGIN -----\nMIIB6DCCAY2gAwIBAwICA+gwCgYIKoZIzj0EAwIwVTERMA8GA1UEAwwIcGVlck9y\nZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEXMBUG\nA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTM0WhcNMTgwNDI3MTg0\nOTM0WjBSMQ4wDAYDVQQDDAVwZWVyMDELMAkGA1UEBhMCVVMxDDAKBgNVBAcMA1JU\nUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZMBMGByqG\nSM49AgEGCCqGSM49AwEHA0IABJy9UK+oXuGSbpbzgZU64aVp7LsMjk75CscMjB5I\naD2dUl2WmcLGeAtBqbHyMWGjc2JRseCKnutbgPwnkm9UCBajUDBOMAwGA1UdEwEB\n/wQCMAAwHQYDVR0OBBYEFPtBGBSCzm6QkrZH6e/mCSa2M9PrMB8GA1UdIwQYMBaA\nFMjjW1UqCPlfPHykFupBF0DJjgAjMAoGCCqGSM49BAMCA0kAMEYCIQDvOHWvdVLz\nOOOO6zVzlTlnpx7l3tnFYENIX3bPx0mMWwIhANWacbcNaErmH+AO7iSpTEG0+yOv\nricFnKdPqNrYWOOK\n-----END -----\n"
- signature: "0D\002 q\027\270!b\177\330\341V\234\300\331}r\343\236L\r\334\214\201\256\t\3311\211<\031\345-\205\003\002 %\325\300\272D\342\375^\264\256\240\263\020k\010K\"\034RGE=\007\027\332_\037\277\3500\223\267"
- }
- </code>
- </div>
- <div>
- <div class="scrollBox">
- <code>
- from peer.proposal_response_pb2 import ProposalResponse
- proposalResponse = ProposalResponse()
- data = None
- with open('tmp/40dc98342b7a11e79ac800163e000427/dev0org0-invokeproposal1responses-peer0.protobuf') as f:
- data = f.read()
- proposalResponse.ParseFromString(data)
- </code>
- </div>
- </div></div><div>
- <a href="./dev0org0-invokeproposal1responses-peer2.protobuf" title="dev0org0-invokeproposal1responses-peer2.protobuf">Protobuf message in binary form</a>
- <div class="scrollBox">
- <code>
- version: 1
- response {
- status: 200
- message: "OK"
- }
- payload: "\n g^0\244Kot@\254\030\247\214#\3526.`\262<\315`\314C\340\367\222\266\271G\313\320_\022\262\001\nO\0222\n\texample02\022%\n\007\n\001a\022\002\010\001\n\007\n\001b\022\002\010\001\032\007\n\001a\032\00290\032\010\n\001b\032\003210\022\031\n\004lscc\022\021\n\017\n\texample02\022\002\010\001\032\003\010\310\001\"Z\nGgithub.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02\022\texample02\032\004test"
- endorsement {
- endorser: "\n\010peerOrg0\022\273\005-----BEGIN -----\nMIIB5zCCAY2gAwIBAwICA+gwCgYIKoZIzj0EAwIwVTERMA8GA1UEAwwIcGVlck9y\nZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEXMBUG\nA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTM1WhcNMTgwNDI3MTg0\nOTM1WjBSMQ4wDAYDVQQDDAVwZWVyMjELMAkGA1UEBhMCVVMxDDAKBgNVBAcMA1JU\nUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZMBMGByqG\nSM49AgEGCCqGSM49AwEHA0IABD0T8OXva7RUQQ5Y66BJOXhWR+fRJgI+uJcemZu8\nLxejvMPCTIe/vqOJGCgAFYBsEEu/UARICOFk688ksHElKmijUDBOMAwGA1UdEwEB\n/wQCMAAwHQYDVR0OBBYEFKin2+gnq87xKAR+ipKYcsJS3rTUMB8GA1UdIwQYMBaA\nFMjjW1UqCPlfPHykFupBF0DJjgAjMAoGCCqGSM49BAMCA0gAMEUCIBk2lroR3Q8b\nxxLGeCjwY7TIPO5rONr4KGG6mOiLHIoZAiEAy9rZZ2i5oLtkxHaScy18I+9paj2u\nMFB4/f++r6yDDi8=\n-----END -----\n"
- signature: "0D\002 [\217\204\376\'\2255s;[\360l\367lAN\350\243\023\261\322\006\177O\345^\264\217?\352\357\260\002 1\332k\021i\024h\310\227\214-\350\202\001u\025\032\265u\034\035N\302W\361\335\330\312\371S\323\023"
- }
- </code>
- </div>
- <div>
- <div class="scrollBox">
- <code>
- from peer.proposal_response_pb2 import ProposalResponse
- proposalResponse = ProposalResponse()
- data = None
- with open('tmp/40dc98342b7a11e79ac800163e000427/dev0org0-invokeproposal1responses-peer2.protobuf') as f:
- data = f.read()
- proposalResponse.ParseFromString(data)
- </code>
- </div>
- </div></div><div id="Step 65">
- <h2>Step 65</h2>
- <hr/>
- <h3>Then user "dev0Org0" expects proposal responses "invokeProposal1Responses" with status "200" from endorsers</h3>
- <table>
- <tr>
- <th>Endorser</th>
- </tr>
- <tr>
- <td>peer0</td>
- </tr>
- <tr>
- <td>peer2</td>
- </tr>
- </table>
- </div><div id="Step 66">
- <h2>Step 66</h2>
- <hr/>
- <h3>And user "dev0Org0" expects proposal responses "invokeProposal1Responses" each have the same value from endorsers</h3>
- <table>
- <tr>
- <th>Endorser</th>
- </tr>
- <tr>
- <td>peer0</td>
- </tr>
- <tr>
- <td>peer2</td>
- </tr>
- </table>
- </div><div id="Step 67">
- <h2>Step 67</h2>
- <hr/>
- <h3>When the user "dev0Org0" creates transaction "invokeTx1" from proposal "invokeProposal1" and proposal responses "invokeProposal1Responses" for channel "com.acme.blockchain.jdoe.Channel1"</h3>
- </div><div id="dev0Org0-invokeTx1">
- <h4>User dev0Org0 setting tag key invokeTx1 to value</h4>
- </div><div>
- <a href="./dev0org0-invoketx1.protobuf" title="dev0org0-invoketx1.protobuf">Protobuf message in binary form</a>
- <div class="scrollBox">
- <code>
- payload: "\n\330\007\n\317\001\010\003\020\001\032\006\010\275\372\210\310\005\"!com.acme.blockchain.jdoe.Channel1*@9de9a6ee29a75fab1e45dc2127f95a8d71afa56610ebacbbda0d9a354f369af5:\\\022Z\nGgithub.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02\022\texample02\032\004test\022\203\006\n\346\005\n\010peerOrg0\022\331\005-----BEGIN CERTIFICATE-----\nMIIB7jCCAZOgAwIBAwICA+gwCgYIKoZIzj0EAwIwVTERMA8GA1UEAwwIcGVlck9y\nZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEXMBUG\nA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTQyWhcNMTgwNDI3MTg0\nOTQyWjBYMRQwEgYDVQQDDAtjb25zb3J0aXVtMTELMAkGA1UEBhMCVVMxDDAKBgNV\nBAcMA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZ\nMBMGByqGSM49AgEGCCqGSM49AwEHA0IABGz3FMovRstBK5DubTSWl4auUBNjUeMk\nmW6x0UbEXonK/sj6O5AhEN4EkrfyVJF/sA9m52AHsmEzaP2odIgYEx+jUDBOMAwG\nA1UdEwEB/wQCMAAwHQYDVR0OBBYEFAJ9LmlaPF5mnEYRzANjO816UdYaMB8GA1Ud\nIwQYMBaAFMjjW1UqCPlfPHykFupBF0DJjgAjMAoGCCqGSM49BAMCA0kAMEYCIQCV\nGtvbmUTYRzpmlju3p/cUA5kQRhXwxEf9llMUhePEEAIhAKOv+ja0WY9izP2MAdGx\nUuWd5HCHk0DT3FI2osl/qYIO\n-----END CERTIFICATE-----\n\022\030Y\325\"\260\375\037\366\305\251\300\"\337\301\303\370F\022\313\241\311\263\360\210\300\022\215\025\n\212\025\n\203\006\n\346\005\n\010peerOrg0\022\331\005-----BEGIN CERTIFICATE-----\nMIIB7jCCAZOgAwIBAwICA+gwCgYIKoZIzj0EAwIwVTERMA8GA1UEAwwIcGVlck9y\nZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEXMBUG\nA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTQyWhcNMTgwNDI3MTg0\nOTQyWjBYMRQwEgYDVQQDDAtjb25zb3J0aXVtMTELMAkGA1UEBhMCVVMxDDAKBgNV\nBAcMA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZ\nMBMGByqGSM49AgEGCCqGSM49AwEHA0IABGz3FMovRstBK5DubTSWl4auUBNjUeMk\nmW6x0UbEXonK/sj6O5AhEN4EkrfyVJF/sA9m52AHsmEzaP2odIgYEx+jUDBOMAwG\nA1UdEwEB/wQCMAAwHQYDVR0OBBYEFAJ9LmlaPF5mnEYRzANjO816UdYaMB8GA1Ud\nIwQYMBaAFMjjW1UqCPlfPHykFupBF0DJjgAjMAoGCCqGSM49BAMCA0kAMEYCIQCV\nGtvbmUTYRzpmlju3p/cUA5kQRhXwxEf9llMUhePEEAIhAKOv+ja0WY9izP2MAdGx\nUuWd5HCHk0DT3FI2osl/qYIO\n-----END CERTIFICATE-----\n\022\030Y\325\"\260\375\037\366\305\251\300\"\337\301\303\370F\022\313\241\311\263\360\210\300\022\201\017\nv\nt\nr\010\001\022Z\nGgithub.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02\022\texample02\032\004test\032\022\n\006invoke\n\001a\n\001b\n\00210\022\206\016\n\327\001\n g^0\244Kot@\254\030\247\214#\3526.`\262<\315`\314C\340\367\222\266\271G\313\320_\022\262\001\nO\0222\n\texample02\022%\n\007\n\001a\022\002\010\001\n\007\n\001b\022\002\010\001\032\007\n\001a\032\00290\032\010\n\001b\032\003210\022\031\n\004lscc\022\021\n\017\n\texample02\022\002\010\001\032\003\010\310\001\"Z\nGgithub.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02\022\texample02\032\004test\022\223\006\n\310\005\n\010peerOrg0\022\273\005-----BEGIN -----\nMIIB6DCCAY2gAwIBAwICA+gwCgYIKoZIzj0EAwIwVTERMA8GA1UEAwwIcGVlck9y\nZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEXMBUG\nA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTM0WhcNMTgwNDI3MTg0\nOTM0WjBSMQ4wDAYDVQQDDAVwZWVyMDELMAkGA1UEBhMCVVMxDDAKBgNVBAcMA1JU\nUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZMBMGByqG\nSM49AgEGCCqGSM49AwEHA0IABJy9UK+oXuGSbpbzgZU64aVp7LsMjk75CscMjB5I\naD2dUl2WmcLGeAtBqbHyMWGjc2JRseCKnutbgPwnkm9UCBajUDBOMAwGA1UdEwEB\n/wQCMAAwHQYDVR0OBBYEFPtBGBSCzm6QkrZH6e/mCSa2M9PrMB8GA1UdIwQYMBaA\nFMjjW1UqCPlfPHykFupBF0DJjgAjMAoGCCqGSM49BAMCA0kAMEYCIQDvOHWvdVLz\nOOOO6zVzlTlnpx7l3tnFYENIX3bPx0mMWwIhANWacbcNaErmH+AO7iSpTEG0+yOv\nricFnKdPqNrYWOOK\n-----END -----\n\022F0D\002 q\027\270!b\177\330\341V\234\300\331}r\343\236L\r\334\214\201\256\t\3311\211<\031\345-\205\003\002 %\325\300\272D\342\375^\264\256\240\263\020k\010K\"\034RGE=\007\027\332_\037\277\3500\223\267\022\223\006\n\310\005\n\010peerOrg0\022\273\005-----BEGIN -----\nMIIB5zCCAY2gAwIBAwICA+gwCgYIKoZIzj0EAwIwVTERMA8GA1UEAwwIcGVlck9y\nZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEXMBUG\nA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTM1WhcNMTgwNDI3MTg0\nOTM1WjBSMQ4wDAYDVQQDDAVwZWVyMjELMAkGA1UEBhMCVVMxDDAKBgNVBAcMA1JU\nUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZMBMGByqG\nSM49AgEGCCqGSM49AwEHA0IABD0T8OXva7RUQQ5Y66BJOXhWR+fRJgI+uJcemZu8\nLxejvMPCTIe/vqOJGCgAFYBsEEu/UARICOFk688ksHElKmijUDBOMAwGA1UdEwEB\n/wQCMAAwHQYDVR0OBBYEFKin2+gnq87xKAR+ipKYcsJS3rTUMB8GA1UdIwQYMBaA\nFMjjW1UqCPlfPHykFupBF0DJjgAjMAoGCCqGSM49BAMCA0gAMEUCIBk2lroR3Q8b\nxxLGeCjwY7TIPO5rONr4KGG6mOiLHIoZAiEAy9rZZ2i5oLtkxHaScy18I+9paj2u\nMFB4/f++r6yDDi8=\n-----END -----\n\022F0D\002 [\217\204\376\'\2255s;[\360l\367lAN\350\243\023\261\322\006\177O\345^\264\217?\352\357\260\002 1\332k\021i\024h\310\227\214-\350\202\001u\025\032\265u\034\035N\302W\361\335\330\312\371S\323\023"
- signature: "0D\002 _\214\344\205\007\\\263\374\331\313\250\352\204\311y\210V\270\376\342\221\252r\204\216\260\230\325!\357+t\002 \016\030\000G\352j\213\205\251I\351\243G\217\361\030\r\236\264\242\243ga=\217\\I0P\217d\004"
- </code>
- </div>
- <div>
- <div class="scrollBox">
- <code>
- from common.common_pb2 import Envelope
- envelope = Envelope()
- data = None
- with open('tmp/40dc98342b7a11e79ac800163e000427/dev0org0-invoketx1.protobuf') as f:
- data = f.read()
- envelope.ParseFromString(data)
- </code>
- </div>
- </div></div><div id="Step 68">
- <h2>Step 68</h2>
- <hr/>
- <h3>And the user "dev0Org0" broadcasts transaction "invokeTx1" to orderer "orderer0" on channel "com.acme.blockchain.jdoe.Channel1"</h3>
- </div><div id="Step 69">
- <h2>Step 69</h2>
- <hr/>
- <h3>And I wait "2" seconds</h3>
- </div><div id="Step 70">
- <h2>Step 70</h2>
- <hr/>
- <h3>And user "dev0Org0" sends deliver a seek request on orderer "orderer0" with properties</h3>
- <table>
- <tr>
- <th>ChainId</th>
- <th>Start</th>
- <th>End</th>
- </tr>
- <tr>
- <td>com.acme.blockchain.jdoe.Channel1</td>
- <td>2</td>
- <td>2</td>
- </tr>
- </table>
- </div><div id="Step 71">
- <h2>Step 71</h2>
- <hr/>
- <h3>Then user "dev0Org0" should get a delivery "deliveredInvokeTx1Block" from "orderer0" of "1" blocks with "1" messages within "1" seconds</h3>
- </div><div id="dev0Org0-deliveredInvokeTx1Block">
- <h4>User dev0Org0 setting tag key deliveredInvokeTx1Block to value</h4>
- </div><div>
- <a href="./dev0org0-deliveredinvoketx1block-0000.protobuf" title="dev0org0-deliveredinvoketx1block-0000.protobuf">Protobuf message in binary form</a>
- <div class="scrollBox">
- <code>
- header {
- number: 2
- previous_hash: "+\337C\317j\250\230b\240\320Q\347\234\020\336\005\t;O\003Da4^r\213\366^\033F*/"
- data_hash: "\320]\337\t\177\242\257x_\241\266HN\245\354\3231:S6\032h\317`+\304,\027\374\242\214/"
- }
- data {
- data: "\n\353\034\n\330\007\n\317\001\010\003\020\001\032\006\010\275\372\210\310\005\"!com.acme.blockchain.jdoe.Channel1*@9de9a6ee29a75fab1e45dc2127f95a8d71afa56610ebacbbda0d9a354f369af5:\\\022Z\nGgithub.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02\022\texample02\032\004test\022\203\006\n\346\005\n\010peerOrg0\022\331\005-----BEGIN CERTIFICATE-----\nMIIB7jCCAZOgAwIBAwICA+gwCgYIKoZIzj0EAwIwVTERMA8GA1UEAwwIcGVlck9y\nZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEXMBUG\nA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTQyWhcNMTgwNDI3MTg0\nOTQyWjBYMRQwEgYDVQQDDAtjb25zb3J0aXVtMTELMAkGA1UEBhMCVVMxDDAKBgNV\nBAcMA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZ\nMBMGByqGSM49AgEGCCqGSM49AwEHA0IABGz3FMovRstBK5DubTSWl4auUBNjUeMk\nmW6x0UbEXonK/sj6O5AhEN4EkrfyVJF/sA9m52AHsmEzaP2odIgYEx+jUDBOMAwG\nA1UdEwEB/wQCMAAwHQYDVR0OBBYEFAJ9LmlaPF5mnEYRzANjO816UdYaMB8GA1Ud\nIwQYMBaAFMjjW1UqCPlfPHykFupBF0DJjgAjMAoGCCqGSM49BAMCA0kAMEYCIQCV\nGtvbmUTYRzpmlju3p/cUA5kQRhXwxEf9llMUhePEEAIhAKOv+ja0WY9izP2MAdGx\nUuWd5HCHk0DT3FI2osl/qYIO\n-----END CERTIFICATE-----\n\022\030Y\325\"\260\375\037\366\305\251\300\"\337\301\303\370F\022\313\241\311\263\360\210\300\022\215\025\n\212\025\n\203\006\n\346\005\n\010peerOrg0\022\331\005-----BEGIN CERTIFICATE-----\nMIIB7jCCAZOgAwIBAwICA+gwCgYIKoZIzj0EAwIwVTERMA8GA1UEAwwIcGVlck9y\nZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEXMBUG\nA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTQyWhcNMTgwNDI3MTg0\nOTQyWjBYMRQwEgYDVQQDDAtjb25zb3J0aXVtMTELMAkGA1UEBhMCVVMxDDAKBgNV\nBAcMA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZ\nMBMGByqGSM49AgEGCCqGSM49AwEHA0IABGz3FMovRstBK5DubTSWl4auUBNjUeMk\nmW6x0UbEXonK/sj6O5AhEN4EkrfyVJF/sA9m52AHsmEzaP2odIgYEx+jUDBOMAwG\nA1UdEwEB/wQCMAAwHQYDVR0OBBYEFAJ9LmlaPF5mnEYRzANjO816UdYaMB8GA1Ud\nIwQYMBaAFMjjW1UqCPlfPHykFupBF0DJjgAjMAoGCCqGSM49BAMCA0kAMEYCIQCV\nGtvbmUTYRzpmlju3p/cUA5kQRhXwxEf9llMUhePEEAIhAKOv+ja0WY9izP2MAdGx\nUuWd5HCHk0DT3FI2osl/qYIO\n-----END CERTIFICATE-----\n\022\030Y\325\"\260\375\037\366\305\251\300\"\337\301\303\370F\022\313\241\311\263\360\210\300\022\201\017\nv\nt\nr\010\001\022Z\nGgithub.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02\022\texample02\032\004test\032\022\n\006invoke\n\001a\n\001b\n\00210\022\206\016\n\327\001\n g^0\244Kot@\254\030\247\214#\3526.`\262<\315`\314C\340\367\222\266\271G\313\320_\022\262\001\nO\0222\n\texample02\022%\n\007\n\001a\022\002\010\001\n\007\n\001b\022\002\010\001\032\007\n\001a\032\00290\032\010\n\001b\032\003210\022\031\n\004lscc\022\021\n\017\n\texample02\022\002\010\001\032\003\010\310\001\"Z\nGgithub.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02\022\texample02\032\004test\022\223\006\n\310\005\n\010peerOrg0\022\273\005-----BEGIN -----\nMIIB6DCCAY2gAwIBAwICA+gwCgYIKoZIzj0EAwIwVTERMA8GA1UEAwwIcGVlck9y\nZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEXMBUG\nA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTM0WhcNMTgwNDI3MTg0\nOTM0WjBSMQ4wDAYDVQQDDAVwZWVyMDELMAkGA1UEBhMCVVMxDDAKBgNVBAcMA1JU\nUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZMBMGByqG\nSM49AgEGCCqGSM49AwEHA0IABJy9UK+oXuGSbpbzgZU64aVp7LsMjk75CscMjB5I\naD2dUl2WmcLGeAtBqbHyMWGjc2JRseCKnutbgPwnkm9UCBajUDBOMAwGA1UdEwEB\n/wQCMAAwHQYDVR0OBBYEFPtBGBSCzm6QkrZH6e/mCSa2M9PrMB8GA1UdIwQYMBaA\nFMjjW1UqCPlfPHykFupBF0DJjgAjMAoGCCqGSM49BAMCA0kAMEYCIQDvOHWvdVLz\nOOOO6zVzlTlnpx7l3tnFYENIX3bPx0mMWwIhANWacbcNaErmH+AO7iSpTEG0+yOv\nricFnKdPqNrYWOOK\n-----END -----\n\022F0D\002 q\027\270!b\177\330\341V\234\300\331}r\343\236L\r\334\214\201\256\t\3311\211<\031\345-\205\003\002 %\325\300\272D\342\375^\264\256\240\263\020k\010K\"\034RGE=\007\027\332_\037\277\3500\223\267\022\223\006\n\310\005\n\010peerOrg0\022\273\005-----BEGIN -----\nMIIB5zCCAY2gAwIBAwICA+gwCgYIKoZIzj0EAwIwVTERMA8GA1UEAwwIcGVlck9y\nZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEXMBUG\nA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTM1WhcNMTgwNDI3MTg0\nOTM1WjBSMQ4wDAYDVQQDDAVwZWVyMjELMAkGA1UEBhMCVVMxDDAKBgNVBAcMA1JU\nUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZMBMGByqG\nSM49AgEGCCqGSM49AwEHA0IABD0T8OXva7RUQQ5Y66BJOXhWR+fRJgI+uJcemZu8\nLxejvMPCTIe/vqOJGCgAFYBsEEu/UARICOFk688ksHElKmijUDBOMAwGA1UdEwEB\n/wQCMAAwHQYDVR0OBBYEFKin2+gnq87xKAR+ipKYcsJS3rTUMB8GA1UdIwQYMBaA\nFMjjW1UqCPlfPHykFupBF0DJjgAjMAoGCCqGSM49BAMCA0gAMEUCIBk2lroR3Q8b\nxxLGeCjwY7TIPO5rONr4KGG6mOiLHIoZAiEAy9rZZ2i5oLtkxHaScy18I+9paj2u\nMFB4/f++r6yDDi8=\n-----END -----\n\022F0D\002 [\217\204\376\'\2255s;[\360l\367lAN\350\243\023\261\322\006\177O\345^\264\217?\352\357\260\002 1\332k\021i\024h\310\227\214-\350\202\001u\025\032\265u\034\035N\302W\361\335\330\312\371S\323\023\022F0D\002 _\214\344\205\007\\\263\374\331\313\250\352\204\311y\210V\270\376\342\221\252r\204\216\260\230\325!\357+t\002 \016\030\000G\352j\213\205\251I\351\243G\217\361\030\r\236\264\242\243ga=\217\\I0P\217d\004"
- }
- metadata {
- metadata: "\022\274\006\n\360\005\n\323\005\n\013ordererOrg0\022\303\005-----BEGIN -----\nMIIB7TCCAZOgAwIBAwICA+gwCgYIKoZIzj0EAwIwWDEUMBIGA1UEAwwLb3JkZXJl\nck9yZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEX\nMBUGA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTMzWhcNMTgwNDI3\nMTg0OTMzWjBVMREwDwYDVQQDDAhvcmRlcmVyMDELMAkGA1UEBhMCVVMxDDAKBgNV\nBAcMA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZ\nMBMGByqGSM49AgEGCCqGSM49AwEHA0IABB8Bc1xevTEOQV7O5mIjqQP/fNpq/NMo\nIuiFnFkG+1S5Msdled7AEUMgeUaEP8U/wMfqR8Edb5cdwkeH47lPzHSjUDBOMAwG\nA1UdEwEB/wQCMAAwHQYDVR0OBBYEFMnu76tt+7C+iOtOu+UrIVCnnu5QMB8GA1Ud\nIwQYMBaAFDRTjX3QJOAHbnREWkYokhXRpzsGMAoGCCqGSM49BAMCA0gAMEUCIEBp\nCM37305NHEqxGZwOsFKncUVTISI+D8+qg1qFn/GQAiEAuohclwpctW0QtHp/sp0L\n38MGiwiA78Rt5aElon+ejTE=\n-----END -----\n\022\030?\210\035\260\026BE\3650\316\257_\304dM\3360\232\237:>\200v\026\022G0E\002!\000\366\220\276(\320G\327\007\006N\027w\305\336\204\327V\231\264\347\026q\231^\235\340\344N \234\236/\002 w*\016\232\344\240x\376\2478\007\235%f\356\220\235{\365\372\354\325x\330Q\327\'\320\243\305\306M"
- metadata: "\n\002\010\001\022\273\006\n\360\005\n\323\005\n\013ordererOrg0\022\303\005-----BEGIN -----\nMIIB7TCCAZOgAwIBAwICA+gwCgYIKoZIzj0EAwIwWDEUMBIGA1UEAwwLb3JkZXJl\nck9yZzAxCzAJBgNVBAYTAlVTMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA0lCTTEX\nMBUGA1UECAwOTm9ydGggQ2Fyb2xpbmEwHhcNMTcwNDI3MTg0OTMzWhcNMTgwNDI3\nMTg0OTMzWjBVMREwDwYDVQQDDAhvcmRlcmVyMDELMAkGA1UEBhMCVVMxDDAKBgNV\nBAcMA1JUUDEMMAoGA1UECgwDSUJNMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTBZ\nMBMGByqGSM49AgEGCCqGSM49AwEHA0IABB8Bc1xevTEOQV7O5mIjqQP/fNpq/NMo\nIuiFnFkG+1S5Msdled7AEUMgeUaEP8U/wMfqR8Edb5cdwkeH47lPzHSjUDBOMAwG\nA1UdEwEB/wQCMAAwHQYDVR0OBBYEFMnu76tt+7C+iOtOu+UrIVCnnu5QMB8GA1Ud\nIwQYMBaAFDRTjX3QJOAHbnREWkYokhXRpzsGMAoGCCqGSM49BAMCA0gAMEUCIEBp\nCM37305NHEqxGZwOsFKncUVTISI+D8+qg1qFn/GQAiEAuohclwpctW0QtHp/sp0L\n38MGiwiA78Rt5aElon+ejTE=\n-----END -----\n\022\030\032pd\310{\205\235\206\306K\330H\'\2349:\317j\271s\365\340\331\237\022F0D\002 TF\265\237\247\3412\031\000(\276\330\233[\262\371$\375\021\274\270\251S\243\227\223\205\225\341\010t\'\002 +\267\360\225Wv\237W\214\263w\211<n\331\222J\246|\347\336\375\245\351*\037\256sJ\264f>"
- metadata: ""
- metadata: ""
- }
- </code>
- </div>
- <div>
- <div class="scrollBox">
- <code>
- from common.common_pb2 import Block
- block = Block()
- data = None
- with open('tmp/40dc98342b7a11e79ac800163e000427/dev0org0-deliveredinvoketx1block-0000.protobuf') as f:
- data = f.read()
- block.ParseFromString(data)
- </code>
- </div>
- </div></div>
- <div id="footer">
- © Copyright IBM Corp. 2017 All Rights Reserved.
- </div>
- </body>
- </html>
|