{"id":80122,"date":"2020-05-03T13:42:34","date_gmt":"2020-05-03T11:42:34","guid":{"rendered":"https:\/\/prohoster.info\/blog\/administrirovanie\/kak-ya-proektiroval-bloki-i-tranzakczii-v-svoem-blokchejne-na-go"},"modified":"2020-05-03T13:42:34","modified_gmt":"2020-05-03T11:42:34","slug":"kak-ya-proektiroval-bloki-i-tranzakczii-v-svoem-blokchejne-na-go","status":"publish","type":"post","link":"https:\/\/prohoster.info\/sq\/blog\/administrirovanie\/kak-ya-proektiroval-bloki-i-tranzakczii-v-svoem-blokchejne-na-go","title":{"rendered":"Si si projektova blloqet dhe transaksionet n\u00eb blockchainin tim n\u00eb Go","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p>P\u00ebr t\u00eb arritur n\u00eb fund t\u00eb fundit nj\u00eb blok\u00e7ain dhe jo thjesht nj\u00eb baz\u00eb t\u00eb dh\u00ebnash, na nevojiten tre element\u00eb t\u00eb r\u00ebnd\u00ebsish\u00ebm n\u00eb projektin ton\u00eb: <\/p>\n<ul>\n<li> P\u00ebrshkrimi i struktur\u00ebs s\u00eb t\u00eb dh\u00ebnave dhe metodave t\u00eb bllokut<\/li>\n<li> P\u00ebrshkrimi i struktur\u00ebs s\u00eb t\u00eb dh\u00ebnave dhe metodave t\u00eb transaksionit<\/li>\n<li> Funksionet e blok\u00e7ainit q\u00eb ruajn\u00eb blloqet n\u00eb baz\u00ebn e t\u00eb dh\u00ebnave dhe i gjejn\u00eb atje n\u00ebp\u00ebrmjet hash-it t\u00eb tyre ose lart\u00ebsis\u00eb (apo ndonj\u00eb forme tjet\u00ebr).<\/li>\n<\/ul>\n<p>\n<img decoding=\"async\" alt=\"Si si projektova blloqet dhe transaksionet n\u00eb blockchainin tim n\u00eb Go\" src=\"\/wp-content\/uploads\/2020\/05\/75099a735419b5c2bfbffa82865d1d4a.jpg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<noindex><a rel=\"nofollow\" name=\"habracut\"><\/a><\/noindex><br \/>\nKy \u00ebsht\u00eb artikulli i dyt\u00eb p\u00ebr blok\u00e7ainin p\u00ebr industrin\u00eb, i pari <noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/post\/499732\/\">k\u00ebtu<\/a><\/noindex>.<\/p>\n<p>Duke u rikujtuar pyetjet q\u00eb m\u00eb b\u00ebn\u00eb lexuesit n\u00eb artikullin e m\u00ebparsh\u00ebm t\u00eb k\u00ebtij cikli, duhet t\u00eb theksoj: p\u00ebr ruajtjen e t\u00eb dh\u00ebnave t\u00eb blok\u00e7ainit n\u00eb k\u00ebt\u00eb rast p\u00ebrdoret nj\u00eb baz\u00eb t\u00eb dh\u00ebnash LevelDB, por asgj\u00eb nuk e ndalon p\u00ebrdorimin e nj\u00eb t\u00eb tjer\u00ebs, le t\u00eb themi MySQL-n\u00eb e nj\u00ebjt\u00eb. Tani le t\u00eb shqyrtojm\u00eb struktur\u00ebn e k\u00ebtyre t\u00eb dh\u00ebnave.<\/p>\n<p>Le t\u00eb fillojm\u00eb me transaksionet: <noindex><a rel=\"nofollow\" href=\"https:\/\/github.com\/Rusldv\/bcstartup\/blob\/master\/transaction\/builder.go\">github.com\/Rusldv\/bcstartup\/blob\/master\/transaction\/builder.go<\/a><\/noindex><\/p>\n<p>K\u00ebtu \u00ebsht\u00eb struktura e saj e t\u00eb dh\u00ebnave:<\/p>\n<pre><code class=\"go\">type TX struct {\n\tDataType byte\t\t\n\tTxHash string \n\tTxType byte\t\n\tTimestamp int64\t\t\n\tINs []TxIn\n\tOUTs []TxOut\n}\n\ntype TxIn struct {\n\tThatTxHash string\n\tTxOutN int\n\tByteCode string\n}\n\ntype TxOut struct {\n\tValue int\n\tByteCode string\n}<\/code><\/pre>\n<p>\nN\u00eb TX ruhen tipin e t\u00eb dh\u00ebnave (p\u00ebr transaksionin 2), hash-i i k\u00ebtij transaksioni, tipi i vet\u00eb transaksionit, timestamp-i, si dhe hyrjet dhe daljet. Hyrjet TxIn ruajn\u00eb hash-in e transaksionit, n\u00eb daljen e t\u00eb cilit referohen, numrin e k\u00ebsaj daljeje dhe bytecode, nd\u00ebrsa daljet TxOut ruajn\u00eb nj\u00eb vler\u00eb dhe gjithashtu bytecode.<\/p>\n<p>Tani le t\u00eb shohim cilat veprime mund t\u00eb kryejn\u00eb transaksionet mbi t\u00eb dh\u00ebnat e tyre, pra t'i shqyrtojm\u00eb metodat.<\/p>\n<p>Funksioni transaction.NewTransaction(txtype byte) *TX sh\u00ebrben p\u00ebr krijimin e nj\u00eb transaksioni.<\/p>\n<p>Metoda AddTxIn(thattxhash []byte, txoutn int, code []byte) (*TxIn, error) shton nj\u00eb hyrje n\u00eb transaksion.<\/p>\n<p>Metoda AddTxOut(value int, data []byte) (*TxOut, error) shton nj\u00eb dalje n\u00eb transaksion.<\/p>\n<p>Metoda ToBytes() []byte e kthen transaksionin n\u00eb nj\u00eb slice bajt\u00ebsh.<\/p>\n<p>Funksioni i brendsh\u00ebm preByteHash(bytes []byte) string aplikohet n\u00eb Build() dhe Check() p\u00ebr t'u siguruar q\u00eb hash-i i krijuar i transaksioneve t\u00eb jet\u00eb n\u00eb p\u00ebrputhje me hash-et e transaksioneve t\u00eb gjeneruara nga aplikacionet n\u00eb JavaScript.<\/p>\n<p>Metoda Build() p\u00ebrcakton hash-in e transaksionit k\u00ebshtu: tx.TxHash = preByteHash(tx.ToBytes()).<\/p>\n<p>Metoda ToJSON() string e kthen transaksionin n\u00eb nj\u00eb varg JSON.<\/p>\n<p>Metoda FromJSON(data []byte) error ngarkon transaksionin nga formati JSON, i d\u00ebrguar si nj\u00eb slice bajt\u00ebsh.<\/p>\n<p>Metoda Check() bool krahasohet hash-i i marr\u00ebs nga fusha e hash-it t\u00eb transaksionit me hash-in e marr\u00eb si rezultat i hash-it t\u00eb k\u00ebtij transaksioni (pa marr\u00eb parasysh fush\u00ebn e hash-it).<\/p>\n<p>Transaksionet shtohen n\u00eb bllok: <noindex><a rel=\"nofollow\" href=\"https:\/\/github.com\/Rusldv\/bcstartup\/blob\/master\/block\/builder.go\">github.com\/Rusldv\/bcstartup\/blob\/master\/block\/builder.go<\/a><\/noindex><\/p>\n<p>Struktura e t\u00eb dh\u00ebnave t\u00eb bllokut \u00ebsht\u00eb m\u00eb e gjer\u00eb:<\/p>\n<pre><code class=\"go\">tip Block struct {\n\tDataType byte\t\t\t\t\n\tBlockHeight int\t\t\t\t\t\n        Timestamp int64\t\t\t\t \n        HeaderSize int\t\t\t\t\t\n        PrevBlockHash string\t\t\t\t \n        SelfBlockHash string\t\t\t\n\tTxsHash string\t\t\t\n\tMerkleRoot string\n\tCreatorPublicKey string\t\t\t\n\tCreatorSig string\n\tVersion int\n\tTxsN int\n\tTxs []transaction.TX\n}<\/code><\/pre>\n<p>\nDataType ruan tipin e dh\u00ebnave, me t\u00eb cilin nodi dallon blokun nga transaksionet ose t\u00eb dh\u00ebna t\u00eb tjera. P\u00ebr blokun, kjo vler\u00eb \u00ebsht\u00eb e barabart\u00eb me 1.<\/p>\n<p>BlockHeight ruan lart\u00ebsin\u00eb e blokut.<br \/>\nTimestamp \u00ebsht\u00eb stamp\u00eb e koh\u00ebs.<br \/>\nHeaderSize \u00ebsht\u00eb madh\u00ebsia e blokut n\u00eb byte.<br \/>\nPrevBlockHash \u00ebsht\u00eb hash-i i blokut t\u00eb m\u00ebparsh\u00ebm, nd\u00ebrsa SelfBlockHash \u00ebsht\u00eb aktuali.<br \/>\nTxsHash \u00ebsht\u00eb hash-i total i transaksioneve.<br \/>\nMerkleRoot \u00ebsht\u00eb rr\u00ebnj\u00ebs i pem\u00ebs Merkle.<\/p>\n<p>M\u00eb posht\u00eb n\u00eb fushat ndodhet \u00e7el\u00ebsi publik i krijuesit t\u00eb blokut, n\u00ebnshkrimi i krijuesit, versioni i blokut, numri i transaksioneve n\u00eb bllok dhe vet\u00eb k\u00ebto transaksione.<\/p>\n<p>Le t\u00eb shqyrtojm\u00eb metodat e tij:<br \/>\nP\u00ebr t\u00eb krijuar nj\u00eb blok, p\u00ebrdoret funksioni block.NewBlock(): NewBlock(prevBlockHash string, height int) *Block, i cili pranon hash-in e blokut t\u00eb m\u00ebparsh\u00ebm dhe lart\u00ebsin\u00eb e vendosur p\u00ebr blokun e krijuar n\u00eb blockchain. Gjithashtu, vendoset tipi i blokut nga konstanta e paket\u00ebs types: <\/p>\n<pre><code class=\"go\">b.DataType = types.BLOCK_TYPE.<\/code><\/pre>\n<p>Metoda AddTx(tx *transaction.TX) shton nj\u00eb transaksion n\u00eb bllok.<\/p>\n<p>Metoda Build() ngarkon vlerat n\u00eb fushat e blokut dhe gjeneron dhe vendos hash-in e tij aktual.<\/p>\n<p>Metoda ToBytesHeader() []byte shnd\u00ebrron header-in e blokut (pa transaksionet) n\u00eb nj\u00eb slice byte.<\/p>\n<p>Metoda ToJSON() string shnd\u00ebrron blokun n\u00eb formatin JSON n\u00eb nj\u00eb p\u00ebrfaq\u00ebsim string t\u00eb t\u00eb dh\u00ebnave.<\/p>\n<p>Metoda FromJSON(data []byte) error ngarkon t\u00eb dh\u00ebnat nga JSON n\u00eb struktur\u00ebn e blokut.<\/p>\n<p>Metoda Check() bool gjeneron hash-in e blokut dhe e krahason me at\u00eb t\u00eb caktuar n\u00eb fush\u00ebn e hash-it t\u00eb blokut.<\/p>\n<p>Metoda GetTxsHash() string kthen hash-in total t\u00eb t\u00eb gjitha transaksioneve n\u00eb bllok.<\/p>\n<p>Metoda GetMerkleRoot() vendos rr\u00ebnj\u00ebn e pem\u00ebs Merkle p\u00ebr transaksionet n\u00eb bllok.<\/p>\n<p>Metoda Sign(privk string) n\u00ebnshkruan bllokun me \u00e7el\u00ebsin privat t\u00eb krijuesit t\u00eb bllokut.<\/p>\n<p>Metoda SetHeight(height int) shkruan lart\u00ebsin\u00eb e bllokut n\u00eb fush\u00ebn e struktur\u00ebs s\u00eb bllokut.<\/p>\n<p>Metoda GetHeight() int kthen lart\u00ebsin\u00eb e bllokut ashtu si\u00e7 tregohet n\u00eb fush\u00ebn p\u00ebrkat\u00ebse t\u00eb struktur\u00ebs s\u00eb bllokut.<\/p>\n<p>Metoda ToGOBBytes() []byte kodon bllokun n\u00eb formatin GOB dhe e kthen at\u00eb si nj\u00eb slice byte.<\/p>\n<p>Metoda FromGOBBytes(data []byte) error shkruan t\u00eb dh\u00ebnat e bllokut n\u00eb struktur\u00ebn e bllokut nga slice byte i d\u00ebrguar n\u00eb formatin GOB.<\/p>\n<p>Metoda GetHash() string kthen hash-in e k\u00ebtij blloku.<\/p>\n<p>Metoda GetPrevHash() string kthen hash-in e bllokut t\u00eb m\u00ebparsh\u00ebm.<\/p>\n<p>Metoda SetPublicKey(pubk string) shkruan n\u00eb bllok \u00e7el\u00ebsin publik t\u00eb krijuesit t\u00eb bllokut.<\/p>\n<p>K\u00ebshtu, me metodat e objektit Block, ne mund t\u00eb konvertojm\u00eb leht\u00ebsisht at\u00eb n\u00eb nj\u00eb format p\u00ebr transferim rrjeti dhe ruajtje n\u00eb baz\u00ebn e t\u00eb dh\u00ebnave LevelDB.<\/p>\n<p>Funksionet e paket\u00ebs blockchain jan\u00eb p\u00ebrgjegj\u00ebse p\u00ebr ruajtjen n\u00eb blockchain: <noindex><a rel=\"nofollow\" href=\"https:\/\/github.com\/Rusldv\/bcstartup\/tree\/master\/blockchain\">github.com\/Rusldv\/bcstartup\/tree\/master\/blockchain<\/a><\/noindex><\/p>\n<p>P\u00ebr k\u00ebt\u00eb, blloku duhet t\u00eb implementoj\u00eb nd\u00ebrfaqen IBlock:<\/p>\n<pre><code class=\"go\">type IGOBBytes interface {\n\tToGOBBytes() []byte\n\tFromGOBBytes(data []byte) error\n}\n\ntype IBlock interface {\n\tIGOBBytes\n\tGetHash() string\n\tGetPrevHash() string\n\tGetHeight() int\n\tCheck() bool\n\n}<\/code><\/pre>\n<p>\nKconnection to the database is created once during the initialization of the package in the function init(): <\/p>\n<pre><code class=\"go\">db, err = leveldb.OpenFile(BLOCKCHAIN_DB_DEBUG, nil).<\/code><\/pre>\n<p>\nCloseDB() \u00ebsht\u00eb nj\u00eb mb\u00ebshtjell\u00ebs p\u00ebr db.Close() \u2014 thirret pas pun\u00ebs me funksionet e paket\u00ebs p\u00ebr t\u00eb mbyllur lidhjen me DB.<\/p>\n<p>Funksioni SetTargetBlockHash(hash string) error shkruan n\u00eb DB hash-in e bllokut aktual me \u00e7el\u00ebsin e caktuar nga konstanta BLOCK_HASH.<\/p>\n<p>Funksioni GetTargetBlockHash() (string, error) kthen hash-in e bllokut aktual, i cili ruhet n\u00eb DB.<\/p>\n<p>Funksioni SetTargetBlockHeight(height int) error shkruan n\u00eb DB vler\u00ebn e lart\u00ebsis\u00eb s\u00eb blockchain p\u00ebr noden me \u00e7el\u00ebsin e caktuar nga konstanta BLOCK_HEIGHT.<\/p>\n<p>Funksioni GetTargetBlockHeight() (int, error) kthen lart\u00ebsin\u00eb e blockchain p\u00ebr k\u00ebt\u00eb nod\u00eb, e ruajtur n\u00eb DB.<\/p>\n<p>Funksioni CheckBlock(block IBlock) bool kryen verifikimin e bllokut p\u00ebr korrekt\u00ebsin\u00eb para se ta shtojm\u00eb k\u00ebt\u00eb bllok n\u00eb blockchain.<\/p>\n<p>Funksioni AddBlock(block IBlock) error shton nj\u00eb bllok n\u00eb blockchain.<\/p>\n<p>Funksionet p\u00ebr marrjen dhe shikimin e bllok\u00ebve ndodhen n\u00eb skedarin explore.go t\u00eb paket\u00ebs blockchain:<\/p>\n<p>Funksioni GetBlockByHash(hash string) (*block.Block, error) krijon nj\u00eb objekt bosh blloku, ngarkon bllokun e tij nga DB me hash-in e dh\u00ebn\u00eb dhe kthen nj\u00eb pointer ndaj tij.<\/p>\n<p>Krijimi i bllokut t\u00eb gjenesis kryhet nga funksioni Genesis() error nga skedari genesis.go i paket\u00ebs blockchain.<\/p>\n<p>N\u00eb artikullin e ardhsh\u00ebm do t\u00eb flasim p\u00ebr lidhjen me nodin e klient\u00ebve duke p\u00ebrdorur mekanizmin WebSocket.<br \/>\n<br \/>Burimi: <a content=\"nofollow\" rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/post\/499930\/\">habr.com<\/a> <\/p>","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>\u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0432 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u043c \u0441\u0447\u0435\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u044f\u0441\u044f \u0431\u043b\u043e\u043a\u0447\u0435\u0439\u043d, \u0430 \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0431\u0430\u0437\u0430 \u0434\u0430\u043d\u043d\u044b\u0445, \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u0441\u0432\u043e\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 3 \u0432\u0430\u0436\u043d\u044b\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430: \u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u0431\u043b\u043e\u043a\u0430 \u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438 \u0424\u0443\u043d\u043a\u0446\u0438\u0438 \u0431\u043b\u043e\u043a\u0447\u0435\u0439\u043d\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u044e\u0442 \u0431\u043b\u043e\u043a\u0438 \u0432 \u0411\u0414 \u0438 \u043d\u0430\u0445\u043e\u0434\u044f\u0442 \u0438\u0445 \u0442\u0430\u043c \u043f\u043e \u0438\u0445 \u0445\u0435\u0448\u0443 \u0438\u043b\u0438 \u0432\u044b\u0441\u043e\u0442\u0435 (\u0438\u043b\u0438 \u0435\u0449\u0435 \u043a\u0430\u043a \u043d\u0438\u0431\u0443\u0434\u044c). \u042d\u0442\u043e [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":1,"featured_media":80123,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[688],"tags":[],"class_list":["post-80122","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-administrirovanie"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.2 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0432 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u043c \u0441\u0447\u0435\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u044f\u0441\u044f \u0431\u043b\u043e\u043a\u0447\u0435\u0439\u043d, \u0430 \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0431\u0430\u0437\u0430 \u0434\u0430\u043d\u043d\u044b\u0445, \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u0441\u0432\u043e\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 3 \u0432\u0430\u0436\u043d\u044b\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430: \u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u0431\u043b\u043e\u043a\u0430 \u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Yuri Gagarin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/prohoster.info\/sq\/blog\/administrirovanie\/kak-ya-proektiroval-bloki-i-tranzakczii-v-svoem-blokchejne-na-go\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.2\" \/>\n\t\t<meta property=\"og:locale\" content=\"sq_AL\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\ud83e\udd47\u041a\u0430\u043a \u044f \u043f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043b \u0431\u043b\u043e\u043a\u0438 \u0438 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438 \u0432 \u0441\u0432\u043e\u0435\u043c \u0431\u043b\u043e\u043a\u0447\u0435\u0439\u043d\u0435 \u043d\u0430 Go | ProHoster\" \/>\n\t\t<meta property=\"og:description\" content=\"\u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0432 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u043c \u0441\u0447\u0435\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u044f\u0441\u044f \u0431\u043b\u043e\u043a\u0447\u0435\u0439\u043d, \u0430 \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0431\u0430\u0437\u0430 \u0434\u0430\u043d\u043d\u044b\u0445, \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u0441\u0432\u043e\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 3 \u0432\u0430\u0436\u043d\u044b\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430: \u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u0431\u043b\u043e\u043a\u0430 \u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/sq\/blog\/administrirovanie\/kak-ya-proektiroval-bloki-i-tranzakczii-v-svoem-blokchejne-na-go\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2020-05-03T11:42:34+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2020-05-03T11:42:34+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\ud83e\udd47Si i projektova blloket dhe transaksionet n\u00eb blockchain-in tim n\u00eb Go | ProHoster","description":"P\u00ebr t\u00eb arritur n\u00eb fund rezultatin e bllokad\u00ebs dhe jo thjesht n\u00eb nj\u00eb baz\u00eb t\u00eb dh\u00ebnash, na nevojitet t\u00eb shtojm\u00eb n\u00eb projektin ton\u00eb 3 element\u00eb t\u00eb r\u00ebnd\u00ebsish\u00ebm: P\u00ebrshkrimi i struktur\u00ebs s\u00eb t\u00eb dh\u00ebnave dhe metodave t\u00eb bllokut.","canonical_url":"https:\/\/prohoster.info\/sq\/blog\/administrirovanie\/kak-ya-proektiroval-bloki-i-tranzakczii-v-svoem-blokchejne-na-go","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"sq_AL","og:site_name":"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b","og:type":"article","og:title":"\ud83e\udd47\u041a\u0430\u043a \u044f \u043f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043b \u0431\u043b\u043e\u043a\u0438 \u0438 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438 \u0432 \u0441\u0432\u043e\u0435\u043c \u0431\u043b\u043e\u043a\u0447\u0435\u0439\u043d\u0435 \u043d\u0430 Go | ProHoster","og:description":"\u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0432 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u043c \u0441\u0447\u0435\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u044f\u0441\u044f \u0431\u043b\u043e\u043a\u0447\u0435\u0439\u043d, \u0430 \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0431\u0430\u0437\u0430 \u0434\u0430\u043d\u043d\u044b\u0445, \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u0441\u0432\u043e\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 3 \u0432\u0430\u0436\u043d\u044b\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430: \u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u0431\u043b\u043e\u043a\u0430 \u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435.","og:url":"https:\/\/prohoster.info\/sq\/blog\/administrirovanie\/kak-ya-proektiroval-bloki-i-tranzakczii-v-svoem-blokchejne-na-go","og:image":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:secure_url":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:width":350,"og:image:height":350,"article:published_time":"2020-05-03T11:42:34+00:00","article:modified_time":"2020-05-03T11:42:34+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster","article:author":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":{"post_id":"80122","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"seo_analyzer_scan_date":null,"breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"ai":null,"created":"2021-02-28 16:23:29","updated":"2022-09-30 17:12:23","focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/posts\/80122","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/comments?post=80122"}],"version-history":[{"count":0,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/posts\/80122\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/media\/80123"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/media?parent=80122"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/categories?post=80122"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/tags?post=80122"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}