Skip to main content
. 2023 Feb 1;25(2):270. doi: 10.3390/e25020270
Algorithm 1 Custom Proof-of-Work Algorithm cPoW
  • Input: 

    the new block header bh:=(ph,mt,sl), the target value tv, the voting weight function F, the key binding identification lid, and the ring member set R

  • Output: 

    weight w and proof info

  •    1:

    parse w:=0, info:=, the current timestamp is tm;

  •    2:

    while  tm<sl+q+Δ do

  •    3:

      if find ne to make H(tm,ph,ne,mt,H(lid||R))<tv then

  •    4:

        w=w+F(tv), info=info(ph,tm,ne,mt,tv,lid,R);

  •    5:

    return(w,info);