diff --git a/_services/steemit.md b/_services/hive.blog.md similarity index 62% rename from _services/steemit.md rename to _services/hive.blog.md index 2689ff34f8c3c425a546b69c0b19864d0bf3cac2..c0856222568ed383fc3e9aeef8915de98c5cf53d 100644 --- a/_services/steemit.md +++ b/_services/hive.blog.md @@ -1,17 +1,17 @@ --- -title: Steemit.com +title: hive.blog position: 1 --- #### steemit.com endpoints -Steemit.com offers a few endpoints for getting common data. User profile and post JSON data is very convenient and simple by appending .json +Hive.blog offers a few endpoints for getting common data. User profile and post JSON data is very convenient and simple by appending .json to your request. Getting a particular user profile JSON: ``` -https://steemit.com/@curie.json +https://hive.blog/@curie.json ``` User object @@ -112,51 +112,76 @@ User object Getting a particular post JSON: ``` -https://steemit.com/curation/@curie/the-daily-curie-12-13-feb-2017.json +https://hive.blog/curation/@curie/the-daily-curie-12-13-feb-2017.json ``` Post object ```json { - "post":{ - "id":1720643, - "author":"curie", - "permlink":"the-daily-curie-08-09-jan-2017", - "category":"curation", - "parent_author":"", - "parent_permlink":"curation", - "title":"The Daily Curie (08-09 Jan 2017)", - "body":"<center>https://s29.postimg.org/dgtsfe7if/curie2.png</center>\n## Introduction\n[Curie](https://steemit.com/steemit/@donkeypong/announcing-project-curie-bringing-rewards-and-recognition-to-steemit-s-undiscovered-and-emerging-authors) is a commu ...", - "last_update":"2017-01-09T12:20:15", - "created":"2017-01-09T12:20:15", - "active":"2017-01-11T22:44:57", - "last_payout":"2017-02-09T14:40:54", - "depth":0, - "children":36, - "children_rshares2":"0", - "net_rshares":0, - "abs_rshares":0, - "vote_rshares":0, - "children_abs_rshares":0, - "cashout_time":"1969-12-31T23:59:59", - "max_cashout_time":"1969-12-31T23:59:59", - "total_vote_weight":0, - "reward_weight":10000, - "total_payout_value":"0.000 SBD", - "curator_payout_value":"0.000 SBD", - "author_rewards":0, - "net_votes":519, - "root_comment":1720643, - "mode":"archived", - "max_accepted_payout":"0.000 SBD", - "percent_steem_dollars":10000, - "allow_replies":true, - "allow_votes":true, - "allow_curation_rewards":true, - "url":"/curation/@curie/the-daily-curie-08-09-jan-2017", - "root_title":"The Daily Curie (08-09 Jan 2017)", - "pending_payout_value":"0.000 SBD", - "total_pending_payout_value":"0.000 SBD" - } + "post": { + "id": 1965592, + "author": "curie", + "permlink": "the-daily-curie-12-13-feb-2017", + "category": "curation", + "parent_author": "", + "parent_permlink": "curation", + "title": "The Daily Curie (12-13 Feb 2017)", + "body": "...", + "json_metadata": { + "tags": ["curation", "curie"], + "users": [ + "nextgencrypto", + "berniesanders", + "val", + "silversteem", + "clayop", + "hendrikdegrote", + "proskynneo", + "kushed", + "curie" + ], + "image": [], + "links": [], + "app": "steemit/0.1", + "format": "markdown" + }, + "last_update": "2017-02-13T18:00:51", + "created": "2017-02-13T18:00:51", + "active": "2017-02-14T16:19:24", + "last_payout": "2017-03-16T19:08:27", + "depth": 0, + "children": 9, + "net_rshares": 0, + "abs_rshares": 0, + "vote_rshares": 0, + "children_abs_rshares": 0, + "cashout_time": "1969-12-31T23:59:59", + "max_cashout_time": "1969-12-31T23:59:59", + "total_vote_weight": 0, + "reward_weight": 10000, + "total_payout_value": "23.678 HBD", + "curator_payout_value": "1.196 HBD", + "author_rewards": 167726, + "net_votes": 465, + "root_author": "curie", + "root_permlink": "the-daily-curie-12-13-feb-2017", + "max_accepted_payout": "1000000.000 HBD", + "percent_steem_dollars": 0, + "allow_replies": true, + "allow_votes": true, + "allow_curation_rewards": true, + "beneficiaries": [], + "url": "/curation/@curie/the-daily-curie-12-13-feb-2017", + "root_title": "The Daily Curie (12-13 Feb 2017)", + "pending_payout_value": "0.000 HBD", + "total_pending_payout_value": "0.000 HBD", + "active_votes": [], + "replies": [], + "author_reputation": "545477526857484", + "promoted": "0.000 HBD", + "body_length": 0, + "reblogged_by": [] + }, + "status": "200" } ``` diff --git a/_services/imageHoster.md b/_services/imageHoster.md index 0b9413e6b58c4fc112ed1e8b4abf394db0b94b06..38127c0f48eb9094eb72afe361b9f5ec5c1ebba1 100644 --- a/_services/imageHoster.md +++ b/_services/imageHoster.md @@ -4,15 +4,15 @@ position: 4 --- # Definition -Imagehoster is a Steem-powered image hosting and proxying service. Any image uploaded to, or proxied through, your Imagehoster has a copy stored within it. This means that the image continues to be available even if 3rd party sites go down or change their URLs. For as long as your instance of imagehoster is running the image will be available, anytime you need it. +Imagehoster is a Hive-powered image hosting and proxying service. Any image uploaded to, or proxied through, your Imagehoster has a copy stored within it. This means that the image continues to be available even if 3rd party sites go down or change their URLs. For as long as your instance of imagehoster is running the image will be available, anytime you need it. -The purpose of this tool is to provide a way to host and proxy images used by [condenser](https://github.com/steemit/condenser#condenser) to help maintain the privacy of the authors and general users accessing the images. +The purpose of this tool is to provide a way to host and proxy images used by [condenser](https://gitlab.syncad.com/hive/condenser#condenser) to help maintain the privacy of the authors and general users accessing the images. Using ImageHoster will help limit access to IP addresses of the general user. It will also strip [image metadata](https://en.wikipedia.org/wiki/Exif) related to the author's geographical location. It also helps to verify that the original author uploaded the image they intended. The ability to upload images on steemit.com was originally added in January, 2017. Please note that this tool **does not** store any image data on the blockchain. -Detaied information on Imagehoster can be found in its [repository](https://github.com/steemit/imagehoster/blob/master/README.md) +Detaied information on Imagehoster can be found in its [repository](https://gitlab.syncad.com/hive/imagehoster/-/blob/master/README.md#imagehoster) ## The API @@ -37,7 +37,7 @@ This returns a JSON object container the URL to the uploaded image, ex: } ``` -For this to succeed it requires a signature from a Steem account in good standing. +For this to succeed it requires a signature from a Hive account in good standing. #### 2. Fetch an uploaded image <a name="fetch-upload"></a> @@ -70,12 +70,12 @@ The avatars follow the same sizing rules as proxied images, so you not guarantee #### 5. Signing uploads <a name="signing"></a> -Uploads also require a signature made by a Steem account's posting authority. The account has to also be above a certain (service configurable) reputation threshold. +Uploads also require a signature made by a Hive account's posting authority. The account has to also be above a certain (service configurable) reputation threshold. -Creating a signature for `node.js` and with `dsteem`: +Creating a signature for `node.js` and with `dhive`: ```javascript -const dsteem = require('dsteem') +const dhive = require('dhive') const crypto = require('crypto') const fs = require('fs') @@ -87,7 +87,7 @@ if (!wif || !file) { } const data = fs.readFileSync(file) -const key = dsteem.PrivateKey.fromString(wif) +const key = dhive.PrivateKey.fromString(wif) const imageHash = crypto.createHash('sha256') .update('ImageSigningChallenge') .update(data) @@ -101,7 +101,7 @@ process.stdout.write(key.sign(imageHash).toString() + '\n') This imagehoster demo must be run through linux due to a dependency on the `make` commandline. You will also require `node.js` and `yarn` to run -* git clone https://github.com/steemit/imagehoster +* git clone https://gitlab.syncad.com/hive/imagehoster * Run `make devserver` diff --git a/images/honey-comb-icon.png b/images/honey-comb-icon.png new file mode 100644 index 0000000000000000000000000000000000000000..7f5770619cffeec1a5ae039228565c38def0060c Binary files /dev/null and b/images/honey-comb-icon.png differ diff --git a/tutorials/devportal-tutorials-js/README.md b/tutorials/devportal-tutorials-js/README.md index 38b196ac7c995f194ac5efb86ac6391e32383051..845b783f103d54224a94733d7072924b01e20091 100755 --- a/tutorials/devportal-tutorials-js/README.md +++ b/tutorials/devportal-tutorials-js/README.md @@ -73,7 +73,7 @@ spam on a blockchain, like everything else on a blockchain, is forever. Eww. So for those tutorials we use a [testnet](https://testnet.steem.vc/) setup and maintained by user [@almost-digital](https://steemit.com/@almost-digital). You can see its current status, and learn how to easily create accounts and connect to it at [https://testnet.steem.vc/](https://testnet.steem.vc/). And depending on the day, you can -even use an outdated version of [condenser](https://github.com/steemit/condenser) to crawl it at +even use an outdated version of [condenser](https://gitlab.syncad.com/hive/condenser#condenser) to crawl it at [https://condenser.steem.vc/](https://condenser.steem.vc/) Credentials for demo accounts on the testnet are in [tutorials/configuration.js](tutorials/configuration.js)`.