Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.programming > #11999
| From | Richard Kettlewell <invalid@invalid.invalid> |
|---|---|
| Newsgroups | comp.programming |
| Subject | Re: an ethereum ECDSA-difficulty |
| Date | 2021-01-29 13:31 +0000 |
| Organization | terraraq NNTP server |
| Message-ID | <87im7fooo6.fsf@LkoBDZeT.terraraq.uk> (permalink) |
| References | <868s8c4zyu.fsf@example.com> |
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