Look, I know things are a bit messy right now.. but we should be using
ComputeCHKRequest and ComputeSVKRequest exclusively for calculating CHKs
and making new keypairs. The fact that SimplifiedClient and Insert/Request-
Client don't do that is a historical carryover that will sooner or later
be zapped.
Since the *Request classes deal exclusively with URIs, you shouldn't ever
need to create a ClientKey object, at all.
The only code right now that gives an example of how to use ComputeCHKRequest
and ComputeSVKRequest is Freenet.contrib.fcp.FCPHandler.
On Mon, Apr 09, 2001 at 06:38:46PM +0200, Stefan Reich wrote:
> Ok, then I might as well use SimplifiedClient... but I already have the
> retrieval running without SimplifiedClient.
>
> What I didn't find in SimplifiedClient is a method to turn a FreenetURI into
> a ClientKey. I modified a similar method from SimplifiedClient like this:
>
> private static ClientKey makeClientKey(FreenetURI uri) throws
> KeyException, IOException
> {
> if (uri.getKeyType().equals("CHK")) {
> return new ClientCHK(uri);