[{"data":1,"prerenderedAt":229},["ShallowReactive",2],{"docs-\u002Fdocs\u002Fcore-tech\u002Fbeam-news-channels":3,"docs-surround-\u002Fdocs\u002Fcore-tech\u002Fbeam-news-channels":219},{"id":4,"title":5,"body":6,"description":12,"extension":211,"image":212,"meta":213,"navTitle":212,"navigation":214,"path":215,"seo":216,"stem":217,"__hash__":218},"docs\u002Fdocs\u002Fcore-tech\u002FBeam-news-channels.md","Beam News Channels",{"type":7,"value":8,"toc":200},"minimark",[9,13,18,21,25,32,38,44,53,57,60,65,71,77,91,101,104,108,111,117,122,132,138,146,151,156,162,168,174,183,192],[10,11,12],"p",{},"Beam able to provide actual news and exchange rates to wallet users.\nThis implemented using signed messages of different types transmitted over the Bulletin Board System (BBS).\nSuch messages make possible for instance to notify wallet user with popup on new wallet application version release.\nEach message is broadcasted over the network to wallet applications.\nBroadcasted messages has to be signed with apropriate key to verify publisher. Wallet applications have publisher key to check if messages are valid.",[14,15,17],"h2",{"id":16},"broadcaster-utility","Broadcaster utility",[10,19,20],{},"The utility is used for news message dispatching.\nAlso utility has ability to generate new random publisher key pair. Private key should be keept in secret and used to sign broadcasted messages. Public key has to be embedded to the wallet application and can be shared to anyone who want to listen broadcast messages.",[14,22,24],{"id":23},"commands","Commands",[10,26,27,31],{},[28,29,30],"code",{},"--command"," - option used to specify command:",[10,33,34,37],{},[28,35,36],{},"generate_keys"," - used to generate new random publisher key pair",[10,39,40,43],{},[28,41,42],{},"transmit"," - used to send broadcast message",[10,45,46,47,49,50,52],{},"Option ",[28,48,30],{}," can be omitted. In such case ",[28,51,42],{}," is considered as default action.",[14,54,56],{"id":55},"transmit-command","Transmit command",[10,58,59],{},"The utility needs the address of a node (to serve as an entry point for the message) and the publisher private key specified in hex-format (to sign the message) always to be specified.",[61,62,64],"h3",{"id":63},"mandatory-options","Mandatory options",[10,66,67,70],{},[28,68,69],{},"-n"," - address of node",[10,72,73,76],{},[28,74,75],{},"--key"," - 64 characters long private key in HEX format",[10,78,79,82,83,86,87,90],{},[28,80,81],{},"--msg_type"," - message type (",[28,84,85],{},"'update'",", ",[28,88,89],{},"'exchange'",")",[10,92,93,97,98],{},[94,95,96],"em",{},"Example:"," ",[28,99,100],{},"-n \"eu-node02.masternet.beam.mw:8100\" --key \"f70c36f2d8342b66e3081ea4d87543566d6ad242c6e61dbf926d57ff42de0c59\" --msg_type 'exchange'",[10,102,103],{},"Only messages signed with valid publisher keys are processed by wallet applications.",[61,105,107],{"id":106},"options-for-specific-message-types","Options for specific message types",[10,109,110],{},"Specific options have to be passed for each message type.",[10,112,113],{},[114,115,116],"strong",{},"In case of the message notifying about new wallet application release:",[10,118,119],{},[28,120,121],{},"--msg_type 'update'",[10,123,124,127,128],{},[28,125,126],{},"--upd_ver"," - new application version in format ",[129,130,131],"span",{},"x.y.z",[10,133,134,137],{},[28,135,136],{},"--upd_type"," - released application type ('desktop', 'android' or 'ios')",[10,139,140,97,142,145],{},[94,141,96],{},[28,143,144],{},"--msg_type 'update' --upd_ver '1.8.9' --upd_type 'desktop'"," will say new desktop wallet release v1.8.9 is available",[10,147,148],{},[114,149,150],{},"In case of message distributing some currency exchange rate:",[10,152,153],{},[28,154,155],{},"--msg_type 'exchange'",[10,157,158,161],{},[28,159,160],{},"--exch_curr"," - currency name ('beam', 'btc', 'ltc', 'qtum')",[10,163,164,167],{},[28,165,166],{},"--exch_rate"," - exchange rate value in fixed point format (100,000,000 = 1 unit)",[10,169,170,173],{},[28,171,172],{},"--exch_unit"," - second currency name which states unit of exchange rate value ('btc', 'usd' - default)",[10,175,176,97,179,182],{},[94,177,178],{},"Example 1:",[28,180,181],{},"--msg_type 'exchange' --exch_curr 'beam' --exch_rate '789654123'"," will say 1 Beam = 7.89654123 USD",[10,184,185,97,188,191],{},[94,186,187],{},"Example 2:",[28,189,190],{},"--msg_type 'exchange' --exch_curr 'beam' --exch_rate '123456789' --exch_unit 'btc'"," will say 1 Beam = 1.23456789 BTC",[10,193,194,197],{},[94,195,196],{},"Common example:",[28,198,199],{},".\u002Fbroadcaster.exe -n \"eu-node02.masternet.beam.mw:8100\" --key \"f70c36f2d8342b66e3081ea4d87543566d6ad242c6e61dbf926d57ff42de0c59\" --msg_type 'update' --upd_ver '1.8.9' --upd_type 'desktop'",{"title":201,"searchDepth":202,"depth":202,"links":203},"",2,[204,205,206],{"id":16,"depth":202,"text":17},{"id":23,"depth":202,"text":24},{"id":55,"depth":202,"text":56,"children":207},[208,210],{"id":63,"depth":209,"text":64},3,{"id":106,"depth":209,"text":107},"md",null,{},true,"\u002Fdocs\u002Fcore-tech\u002Fbeam-news-channels",{"description":12},"docs\u002Fcore-tech\u002FBeam-news-channels","owgwxCshd9M2gi5iu6Ufyn8oFgTjkAzN-IOa5bB12Pk",[220,225],{"title":221,"path":222,"stem":223,"description":224,"children":-1},"Beam mining protocol API (draft)","\u002Fdocs\u002Fcore-tech\u002Fbeam-mining-protocol-api-(stratum)","docs\u002Fcore-tech\u002FBeam-mining-protocol-API-(Stratum)","The protocol is based on JSON RPC and uses Long Polling to have a conversation between Miner and Node. It describes only mining behavior without payouts at the moment.",{"title":226,"path":227,"stem":228,"description":201,"children":-1},"Beam Signature Schemes","\u002Fdocs\u002Fcore-tech\u002Fbeam-signature-schemes","docs\u002Fcore-tech\u002FBeam-signature-schemes",1783006063063]