-
Notifications
You must be signed in to change notification settings - Fork 177
Any way to provide the key to use when publishing to IPNS? #95
Comments
I believe one was supposed to put the key's name/id in the "node" field. However, that won't work as implemented. This method looks a bit buggy. |
I see... If I'm right I tracked it down to this location: https://github.com/ipfs/go-ipfs-cmds/blob/master/http/parse.go#L18 where the http request is parsed, matched against (sub)commands and arguments/options are set. What I don't get is how exactly this mapping is done. If you could clarify this a bit that would be great |
ok I just figured that this would be solved when #91 is merged if I don't overlook something |
agree @magik6k |
#91 Should fix your issue. Before the PR is merged if you are in dire need of this functionality I have a forked |
@postables thanks for the hint |
I'm looking at https://github.com/ipfs/go-ipfs-api/blob/master/ipns.go#L9 and try to figure out how to specify the key to use for publishing the record?
I can see that on the api side the value can be red in theory: https://github.com/ipfs/go-ipfs/blob/master/core/coreapi/name.go#L42
I can implement that myself but I currently struggle to find the the point where https://github.com/ipfs/go-ipfs/blob/master/core/coreapi/name.go#L41 is invoked to see how the parameter needs to be formatted/named etc.
If someone can explain what I'm doing wrong or point me to the point where the http request is mapped to the
coreapi
function that would be awesomeThe text was updated successfully, but these errors were encountered: