Jump to content

Elliptic Curve Digital Signature Algorithm: Difference between revisions

→‎{{header|Raku}}: Fix up some internal links
(Rename Perl 6 -> Raku, alphabetize, minor clean-up)
(→‎{{header|Raku}}: Fix up some internal links)
Line 1,436:
=={{header|Raku}}==
(formerly Perl 6)
 
Reference: Many routines are translated from this [https://github.com/sblackstone/toy-ecdsa Ruby repository], by Stephen Blackstone. The rest are taken here and there from RC.
<lang perl6>#!/usr/bin/env perl6
Line 1,481 ⟶ 1,482:
}
 
sub mult_inv($n, :$modulo) { # rosettacode.org/wiki/Modular_inverse#Perl_6Raku
my ($c, $d, $uc, $vd, $vc, $ud, $q) = $n % $modulo, $modulo, 1, 1, 0, 0, 0;
while $c != 0 {
10,333

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.