bech32-polymod ( values -- n )


Vocabulary
bech32.private

Inputs
valuesan object


Outputs
nan object


Definition


: bech32-polymod ( values -- n )
1 [
over
[ 33554431 bitand 5 shift ] [ bitxor ] [ -25 shift ]
tri*
{ 996825010 642813549 513874426 1027748829 705979059 }
[ bit? [ bitxor ] [ drop ] if ] with each-index
] reduce ;