Anonymous user
Bitcoin/address validation: Difference between revisions
→{{header|Factor}}: use map-reduce instead of map and reduce
(add Factor) |
(→{{header|Factor}}: use map-reduce instead of map and reduce) |
||
Line 448:
CONSTANT: ALPHABET "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"
: base58
[ ALPHABET index ]
[ [ 58 * ] [ + ] bi* ] map-reduce ;
:
: btc-checksum ( bytes -- checksum-bytes )
Line 466:
"1ANNa15ZQXAZUgFiqJ2i7Z2DPU2J6hW62i" btc-valid? . ! f, data changed, original checksum.
</pre>
=={{header|FreeBASIC}}==
<lang freebasic>' version 05-04-2017
|