[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #33675 [Core Tor/Chutney]: Search microdescriptor files for relay ed25519 keys
#33675: Search microdescriptor files for relay ed25519 keys
-------------------------------------------+-------------------------------
Reporter: teor | Owner: anuradha1904
Type: enhancement | Status: assigned
Priority: Medium | Milestone:
Component: Core Tor/Chutney | Version:
Severity: Normal | Resolution:
Keywords: ipv6, prop311, outreachy-ipv6 | Actual Points: 0.1
Parent ID: #33428 | Points: 0.5
Reviewer: teor | Sponsor: Sponsor55-can
-------------------------------------------+-------------------------------
Comment (by teor):
Replying to [comment:8 anuradha1904]:
> Great, so for "md", all the code that I have to add is:-
>
> {{{
> elif md:
> return r'^id ed25519 ' + " "
> }}}
Can you explain why you wrote this code?
Why do you think you need to use the nickname?
The code in the ticket description is:
{{{
elif md:
# Not yet implemented, see #33428
# r'^id ed25519 " + ed25519_identity (end of line)
# needs ed25519-identity from #30642
# or the existing keys/ed25519_master_id_public_key
}}}
At
https://github.com/torproject/chutney/blob/master/lib/chutney/TorNet.py#L1325
> Am I following the right way, because I checked in the cached-
microdescs.new file, and the ed25519 key was just after the string "id
ed25519" and there was no nickname like for ''desc'' and ''cons'' in the
file ''cached-microdesc-consensus'' and ''cached-microdescs.new''. teor,
nickm , can you confirm ? If not, where am I wrong? Kindly guide me and
Thank you.
Regular expressions are patterns that are matched against each line. You
can read a short introduction here:
https://docs.python.org/3/howto/regex.html
Remember how we just loaded ed25519-id in #33428 ?
https://github.com/torproject/chutney/pull/61/files#diff-
5fe4ecd0da6560d24d20e8ce90281abfR792
Maybe it could be useful here.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/33675#comment:9>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs