mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-15 18:12:47 +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
|
||||
|= [has=@uvI sig=[v=@ r=@ s=@]]
|
||||
^- pont
|
||||
?> ?&((lte 27 v.sig) (lte v.sig 34))
|
||||
?> (lte v.sig 7)
|
||||
=/ x r.sig
|
||||
=/ ysq (sum.p b (exp.p 3 x)) :: omits A=0
|
||||
=/ bet (exp.p (div +(^p) 4) ysq)
|
||||
|
Loading…
Reference in New Issue
Block a user