-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(ipns-infra): IPNS publishing #2731
Conversation
4b606a0
to
63c3535
Compare
Codecov ReportBase: 52.28% // Head: 52.12% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## develop #2731 +/- ##
===========================================
- Coverage 52.28% 52.12% -0.17%
===========================================
Files 431 432 +1
Lines 11183 11249 +66
Branches 2390 2401 +11
===========================================
+ Hits 5847 5863 +16
- Misses 5332 5382 +50
Partials 4 4
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
65bba99
to
90a44a0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
method: 'POST', | ||
body: formData, | ||
}) | ||
console.log(new Date(), 'key/import res:', res) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any sensitive data that needs to be masked?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no; the sample looks like this:
2022-09-12T18:42:59.223Z key/import fetch res: {
Name: 'ed-gen-test23-4-1663008179217',
Id: 'k51qzi5uqu5dhdb6i7umgq6xcu5wt4appzz1c1kyqgh8folsecogs56j11if8n'
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
many console log lines for debugging in the beginning days when running on dev; but eventually (in 2 ~ 4 weeks range) will be cleaned up
24148c7
to
a608d06
Compare
const imported = await res.json() | ||
console.log(new Date(), 'key/import res json:', imported) | ||
// return res.json() | ||
return imported |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there is ipfs.key.import
method, accept password
https://github.com/ipfs/js-ipfs/blob/master/docs/core-api/KEY.md#ipfskeyimportname-pem-password-options
but the problem is only for js-ipfs implementation, different than go-ipfs
In a bit more detail, js-IPFS accepts the key as a query string argument, go-IPFS accepts it in the body of the POST request.
2aa3138
to
7dbc7ca
Compare
partI for #2631 each author's json feed is like: <any-ipfs-gateway>/ipns/{key}/feed.json
partI for #2631