hyphanet / pyFreenet

Python FCPv2 library and utilities
https://freenetproject.org/
Other
60 stars 24 forks source link

Difficult to acquire uri from job ticket prior to completion #18

Closed xloem closed 2 years ago

xloem commented 8 years ago

There is no way to query if a ticket has an associated URI yet. It is set on receipt by URIGenerated, but the only way to check for it would by catch the exception raised by uri = job.uri if it hasn't been set yet.

ArneBab commented 8 years ago

If you need that for a CHK uri, you can run a separate job to create the uri (look for chkOnly). However sharing an URI before the upload is complete makes it much easier for attackers to track down your identity (since they can use it to calculate the chunks you will upload). This is why normally the uri is only provided once an upload is finished.

ArneBab commented 2 years ago

See fcpupload to get the uri early.