Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.programming > #11999
| Path | csiph.com!weretis.net!feeder8.news.weretis.net!usenet.goja.nl.eu.org!nntp.terraraq.uk!.POSTED.nntp.terraraq.uk!not-for-mail |
|---|---|
| From | Richard Kettlewell <invalid@invalid.invalid> |
| Newsgroups | comp.programming |
| Subject | Re: an ethereum ECDSA-difficulty |
| Date | Fri, 29 Jan 2021 13:31:05 +0000 |
| Organization | terraraq NNTP server |
| Message-ID | <87im7fooo6.fsf@LkoBDZeT.terraraq.uk> (permalink) |
| References | <868s8c4zyu.fsf@example.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Transfer-Encoding | 8bit |
| Injection-Info | mantic.terraraq.uk; posting-host="nntp.terraraq.uk:2a00:1098:0:86:1000:3f:0:2"; logging-data="31423"; mail-complaints-to="usenet@mantic.terraraq.uk" |
| User-Agent | Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) |
| Cancel-Lock | sha1:l35fkImXCJJLkc+doyKUk+VP+no= |
| X-Face | h[Hh-7npe<<b4/eW[]sat,I3O`t8A`(ej.H!F4\8|;ih)`7{@:A~/j1}gTt4e7-n*F?.Rl^ F<\{jehn7.KrO{!7=:(@J~]<.[{>v9!1<qZY,{EJxg6?Er4Y7Ng2\Ft>Z&W?r\c.!4DXH5PWpga"ha +r0NzP?vnz:e/knOY)PI- |
| X-Boydie | NO |
| Xref | csiph.com comp.programming:11999 |
Show key headers only | View raw
Boris Dorestand <bdorestand@example.com> writes:
> The nonce is 1, the gas price is 20 gwei, the maximum gas units is
> 21000, the to-address is correct, the amount is 1 ether = 10^18 wei, the
> data payload is empty, the v value of the signature is 46, as I intended
> and the r, s values of the signature are precisely those I intended to
> encode. Everything looks perfectly as it should.
>
> --8<---------------cut here---------------start------------->8---
> out.rkt> r
> 30190652438768558380735263684943397541547868147655542157485309011183437025247
> out.rkt> s
> 93620689063899170013813414230496747665687050654128603934107115817203536307811
> --8<---------------cut here---------------end--------------->8---
That does not meet Ethereum’s signature canonicalization requirements.
$ python3
Python 3.7.3 (default, Jul 25 2020, 13:03:44)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> n=115792089237316195423570985008687907852837564279074904382605163141518161494337
>>> r=30190652438768558380735263684943397541547868147655542157485309011183437025247
>>> s=93620689063899170013813414230496747665687050654128603934107115817203536307811
>>> s<(n//2)+1
False
>>>
See https://files.gitter.im/ethereum/yellowpaper/VIyt/Paper.pdf (212), p21.
--
https://www.greenend.org.uk/rjk/
Back to comp.programming | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
an ethereum ECDSA-difficulty Boris Dorestand <bdorestand@example.com> - 2021-01-28 16:35 -0300
Re: an ethereum ECDSA-difficulty Richard Kettlewell <invalid@invalid.invalid> - 2021-01-29 13:31 +0000
Re: an ethereum ECDSA-difficulty Boris Dorestand <bdorestand@example.com> - 2021-01-29 13:06 -0300
Re: an ethereum ECDSA-difficulty "Dirk T. Verbeek" <dverbeek@xs4all.nl> - 2021-01-30 18:10 +0100
csiph-web