mirror of
https://github.com/ilyakooo0/urbit.git
synced 2025-01-05 22:03:50 +03:00
Make ++ecdsa-raw-recover accept unmodified signature
Continuation of b2365dbd4
This commit is contained in:
parent
96e5dd4600
commit
b7681cf73c
@ -4209,7 +4209,7 @@
|
|||||||
++ ecdsa-raw-recover :: get pubkey from sig
|
++ ecdsa-raw-recover :: get pubkey from sig
|
||||||
|= [has=@uvI sig=[v=@ r=@ s=@]]
|
|= [has=@uvI sig=[v=@ r=@ s=@]]
|
||||||
^- pont
|
^- pont
|
||||||
?> ?&((lte 27 v.sig) (lte v.sig 34))
|
?> (lte v.sig 7)
|
||||||
=/ x r.sig
|
=/ x r.sig
|
||||||
=/ ysq (sum.p b (exp.p 3 x)) :: omits A=0
|
=/ ysq (sum.p b (exp.p 3 x)) :: omits A=0
|
||||||
=/ bet (exp.p (div +(^p) 4) ysq)
|
=/ bet (exp.p (div +(^p) 4) ysq)
|
||||||
|
Loading…
Reference in New Issue
Block a user