[{"data":1,"prerenderedAt":101},["Reactive",2],{"content-query-mS6gvHueUu":3},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":7,"body":9,"_type":96,"_id":97,"_source":98,"_file":99,"_extension":100},"/docs/core-tech/beam-equihash-specification","core-tech",false,"","Beam Equihash specification",{"type":10,"children":11,"toc":90},"root",[12,20,27,44,50,71,77],{"type":13,"tag":14,"props":15,"children":17},"element","h1",{"id":16},"beam-equihash-specification",[18],{"type":19,"value":8},"text",{"type":13,"tag":21,"props":22,"children":24},"h2",{"id":23},"chosen-parameters",[25],{"type":19,"value":26},"Chosen parameters",{"type":13,"tag":28,"props":29,"children":30},"p",{},[31,38],{"type":13,"tag":32,"props":33,"children":35},"code",{"className":34},[],[36],{"type":19,"value":37},"N = 150",{"type":13,"tag":32,"props":39,"children":41},{"className":40},[],[42],{"type":19,"value":43},"K = 5",{"type":13,"tag":21,"props":45,"children":47},{"id":46},"hash-generation-convention",[48],{"type":19,"value":49},"Hash generation convention",{"type":13,"tag":28,"props":51,"children":52},{},[53,55,61,63,69],{"type":19,"value":54},"Since 150 in not a multiple of 8 we pick 19 full bytes and clear lower 2 bits of 18th byte.\nWe can get only 3 hashes from 512-bit ",{"type":13,"tag":56,"props":57,"children":58},"strong",{},[59],{"type":19,"value":60},"blake2",{"type":19,"value":62}," output.\nExpected blake2 hash output size is ",{"type":13,"tag":32,"props":64,"children":66},{"className":65},[],[67],{"type":19,"value":68},"3 * 19 = 57",{"type":19,"value":70}," bytes",{"type":13,"tag":21,"props":72,"children":74},{"id":73},"implementation-for-cpu",[75],{"type":19,"value":76},"Implementation for CPU",{"type":13,"tag":28,"props":78,"children":79},{},[80,82],{"type":19,"value":81},"Beam’s Equihash implementation for CPU is based on zcash’s version.\n",{"type":13,"tag":83,"props":84,"children":88},"a",{"href":85,"rel":86},"https://github.com/BeamMW/beam/blob/master/3rdparty/crypto/equihash_impl.cpp",[87],"nofollow",[89],{"type":19,"value":85},{"title":7,"searchDepth":91,"depth":91,"links":92},2,[93,94,95],{"id":23,"depth":91,"text":26},{"id":46,"depth":91,"text":49},{"id":73,"depth":91,"text":76},"markdown","docs:docs:core-tech:Beam-Equihash-specification.md","docs","docs/core-tech/Beam-Equihash-specification.md","md",1777630736686]