Waivio

Recommended Posts

2024-06-11 - Supporting different Sign in methods including HiveSigner

33 comments

sagarkothari886.2 K3 months ago8 min read

https://images.ecency.com/DQmQj8TJF3ui3cZx5BsrH29HgmtKKQiku5ftPHt2yhcJ229/screenshot_2024_06_12_at_9.29.53_pm.png

Hello Hive Community Members,

Welcome to daily updates from @sagarkothari88 - a Hive Witness & mobile-app-developer. I daily invest my time with my skillset in #Hive & I daily hive-power-up.

https://images.ecency.com/DQme1eL9v9d8qiTY2KdjUACLN5oMFzUQZP9Rpf8uvDhAnhH/hive_divider.png

My contributions on projects on Hive Blockchain

https://images.ecency.com/DQme1eL9v9d8qiTY2KdjUACLN5oMFzUQZP9Rpf8uvDhAnhH/hive_divider.png

Hive Distriator App - Supporting different sign-in methods

  • Hive Distriator supports 2 different methods to sign-in
  • It includes Hive Keychain based log-in & HiveAuth based login.
  • There are other types of log-in which can be added.
  • We can add 2 more - Posting Key based log in. The other one is HiveSigner.

HiveSigner Log in method

  • So far, in the apps which I've worked, I didn't integrate HiveSigner.
  • Due to this, I had to check docs first.
  • For any tech person, integrating HiveSigner, after reading docs, shouldn't take long
  • With documentation, everything seems clear & easy to implement.

Integrating HiveSigner in Flutter based project

https://images.ecency.com/DQmdCyxT2gdynwUxQ5iVWhGRCjbbj1ecPv9WNwUqcsnpiWR/screenshot_2024_06_12_at_9.41.04_pm.png

  • I created a sample project to experiment with new things.
  • Overall goal was to achieve following 2 things
        - Open an in-app-browser & load a link
        - Handle any URL redirection / Detect URL redirections
  • To achieve it, I used this tutorial
  • https://codelabs.developers.google.com/codelabs/flutter-webview#0
  • Both goals, with this tutorials, I was able to achieve

Debugging HiveSigner

https://images.ecency.com/DQmaMuSEyBxsF8UcbQYvz1CHHg9ps5KSTWXUzbikRbocfpj/image_2.png

  • When you are running first time hive-signer, you don't have anything on your device.
  • So, you are required to add your keys to your device.
  • HiveSigner saves it & encryptes it with a password.

https://images.ecency.com/DQmetGc7qAzRHvgJacUv26EgFvVjEcLGvSUvP9a97tszkuq/image_1.png

  • Once your keys are saved, HiveSigner does the redirection.
  • Your app is supposed to handle this URL redirection & grab the values from URL query parameters
  • You can find all details about it over here - https://docs.hivesigner.com/
  • So, we did add the code for grabbing the query parameters

https://images.ecency.com/DQmQj8TJF3ui3cZx5BsrH29HgmtKKQiku5ftPHt2yhcJ229/screenshot_2024_06_12_at_9.29.53_pm.png

  • Now, we have the token.
  • With token, you can call the broadcast API to broadcast the operations on blockchain.
  • So, after integrating that broadcast API, I gave it a trial

https://images.ecency.com/DQmXcS3btcbhJzu9HxznyMYjtMRhr5ouUNPJSQgcQBqTeFf/image.png

  • For some reason, it didn't work.
  • We kept wondering what went wrong here.
  • Debug & debug - good amont of time spent here to find out the root cause
  • Really couldn't figure out why it isn't working

https://images.ecency.com/DQmbuSZmmxCUkida4hJqLj2Yq9BMYPqFAVCWJGxQ2sAcX4j/screenshot_2024_06_12_at_9.48.57_pm.png

  • So, at one point, we decided to log the redirected the URL & copy token from log.
  • After copying the token, we tried it in the postman

https://images.ecency.com/DQmV1Vx2wfSicL2WBktFYQifeHWtxJFZ3CuqKxsbyVxWyei/screenshot_2024_06_12_at_7.00.34_pm.webp

  • And everything worked just fine in postman
  • After that, I checked notifications of my account
  • It was all there, I did get the upvote as expected.
  • This helped us point to the code which needs to be corrected.
  • The code to grab the token from redirection-url had a small typo.
  • This small typo led to hours of debugging.
  • Some days are just bad & sometimes small mistake takes whole day
  • Today was one of that day & luck wasn't with us.
  • HiveSigner, in my opinion, is one of the simplest login mechanism
  • We will discuss & decide on what login methods we should be adding on Distriator
  • Once we've a decision, we'll integrate it & deploy.

https://images.ecency.com/DQme1eL9v9d8qiTY2KdjUACLN5oMFzUQZP9Rpf8uvDhAnhH/hive_divider.png

Rewarding Hive Content Creators

  • I support several contests hosted by different communities.
  • I reward them with Hive-Power-up for the contribution that they have made on communities on Hive.
  • We keep transferring portion of hive power to different users on Hive for encouraging them for their contribution on Hive.
  • Those who respond to our replies, we also reward them with different tokens like ALIVE, PIZZA, BEER, LUV
  • No power ups were sent today.

https://images.ecency.com/DQme1eL9v9d8qiTY2KdjUACLN5oMFzUQZP9Rpf8uvDhAnhH/hive_divider.png

Dedicated Resources for Hive Eco-System

Resource NameResource DescriptionApprox Cost of ResourceStatus
Hive WitnessHive Witness Node$50
DluxRunning Dlux Witness Node$5
LarynxRunning a LARYNX node$5
DuatRunning a DUAT node$5
VSCRunning a VSC witness node$5
Discord BotHive Curators Discord Bot Node$5
HP RewardsHive Curators HP reward Bot Node$5
12 NodesPowerful video encoder nodes for 3Speak $20 on average$240
Bandwidth3 internet connections$50
DistriatorHive-Distriator Backend node$50
Community ContributorsRewarding community contributors in INR$60
Additional DevelopersAdditional Contributing Developers$1500
--------
TotalApprox$1980--
  • DLUX, LARYNX, DUAT nodes are down.
  • I'm thinking of moving them to different systems.
  • Hopefully by tomorrow, I'll have it working. Wish me luck.
  • We've added one more developer in our team recently to speed up work in Distriator.

https://images.ecency.com/DQme1eL9v9d8qiTY2KdjUACLN5oMFzUQZP9Rpf8uvDhAnhH/hive_divider.png
 
  

Updates: Video Encoder Nodes

  • I'm running 12 powerful video encoder nodes for 3Speak Community Members.
  • Monthly internet bandwidth usage which exceeds 15 TB, Maintenance cost, Electricity backup, Internet backup, Depreciation cost - it's all on me.
  • On 2024-06-11, 3Speak published total 126 videos.
  • My video encoder nodes encoded 105 videos from 126 videos published.
  • It means, my encoder nodes encoded 83.33 % of total videos published on 2024-06-11
  • Here is visual representation of above data.

https://image-charts.com/chart.js/2.8.0?backgroundcolor=%23000000&bkg=%23000000&c=%7B%0A%20%20%22type%22%3A%20%22pie%22%2C%0A%20%20%22data%22%3A%20%7B%0A%20%20%20%20%22datasets%22%3A%20%5B%0A%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%22data%22%3A%20%5B105%2C%2021%5D%2C%0A%20%20%20%20%20%20%20%20%22backgroundColor%22%3A%20%5B%0A%20%20%20%20%20%20%20%20%20%20%22rgba%28255%2C99%2C132%2C0.5%29%22%2C%0A%20%20%20%20%20%20%20%20%20%20%22rgba%28255%2C159%2C64%2C0.5%29%22%2C%0A%20%20%20%20%20%20%20%20%5D%2C%0A%20%20%20%20%20%20%20%20%22label%22%3A%20%22Total%20Published%20Videos%20by%203Speak%22%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%5D%2C%0A%20%20%20%20%22labels%22%3A%20%5B%22Sagar%22%2C%20%22Others%22%5D%2C%0A%20%20%7D%0A%7D

https://images.ecency.com/DQme1eL9v9d8qiTY2KdjUACLN5oMFzUQZP9Rpf8uvDhAnhH/hive_divider.png
 

  ## My Daily Hive Investment Report for 2024-06-11

  - 0.70 Hive Power Up
  - 21.17 Witness Rewards in Hive Power
  - 70.55 Curation Rewards as Hive Power
  - 9.16 Benefactor Rewards as Hive Power
  - 101.58 Total Hive Power Invested

  https://images.ecency.com/DQme1eL9v9d8qiTY2KdjUACLN5oMFzUQZP9Rpf8uvDhAnhH/hive_divider.png

  ## Curation Report for 2024-06-11

  NOTE:

  • If you don't like tagging you under curation report, let me know in comment section & I'll exclude you from the curation report.
  • If you think that I should not attach curation report in the post, let me know in the comment section.

We've curated total 37 & motivated content creators for their contributions on Hive.

AuthorPost
@libertycrypto27https://ecency.com/@libertycrypto27/illuvium-overworld-open-beta-the-exploration-of-the-sanctum-mesa-region-engita-hxa
@thetimetravelerzhttps://ecency.com/@thetimetravelerz/would-a-16-discount-make-you-love-the-inleo-premium-subscription-even-more-88f
@hylene74https://ecency.com/@hylene74/delicious-zucchini-burgers-eng-esp
@sacra97https://ecency.com/@sacra97/mensaje-diario-de-5-minutos-677d983326f38
@evagavilan2https://ecency.com/@evagavilan2/a-pesar-del-tiempo-despite-the-time
@tydynrainhttps://ecency.com/@tydynrain/my-106th-sunday-weekly-hive-goals-and-progress-update-23-weekly-goals-exceeded-dieselliquidity-pool-changes-and-an-analysis-of-
@certainhttps://ecency.com/@certain/splinterlands-weekly-battle-mage-secrets-submission-with-the-theme-little-league--l6
@abenadhttps://ecency.com/@abenad/lets-crochet-a-backless-dress-with-different-shades-of-yellow-amh
@coinjoehttps://ecency.com/@coinjoe/got-my-shit-together
@honeyduehttps://ecency.com/@honeydue/the-wishing-tree
@plantpoweronhivehttps://ecency.com/@plantpoweronhive/your-veggie-shopping-29-basil-albahaca-jkd
@koto-arthttps://ecency.com/@koto-art/eating-aspen-oyster-mushrooms-english
@apnigrichhttps://ecency.com/@apnigrich/tula-kremlin-11-pics
@lanzjoseghttps://ecency.com/@lanzjoseg/un-poema-una-sorpresa-a-poem-a-surprise
@mdakash62https://ecency.com/@mdakash62/nutrientrich-feeling-of-choice-dewa-fruit-artocarpus-lacucha-easy-recipe-tutorial-6od
@marianarshttps://ecency.com/@marianars/espeng-the-witch-princess-and-the-knight-digital-drawing-of-my-ocs
@yennysferm71https://ecency.com/@yennysferm71/diy-scrunchies-and-crunchie-holders-engesp-c9u
@eliezerfloydhttps://ecency.com/@eliezerfloyd/fobia-or-relato
@iamraincrystalhttps://ecency.com/@iamraincrystal/alive-and-thriving-chooseday--gotta-find-my-cool-oror-aatyr5-oror-larryisalive
@nainaztengrahttps://ecency.com/@nainaztengra/strengthening-muscles-at-a-younger
@hopestylisthttps://ecency.com/@hopestylist/rediscovering-fun
@gadrianhttps://ecency.com/@gadrian/do-you-notice-details-on-profile-pages-9es
@wiseagenthttps://ecency.com/@wiseagent/meritocracy-between-power-and-merit-bxv
@bertrayohttps://ecency.com/@bertrayo/erixfklm
@joseq1570https://ecency.com/@joseq1570/ing-esp-the-bitter-cherry
@melbourneswesthttps://ecency.com/@melbourneswest/animal-farms-to-petting-zoos
@x-rainhttps://ecency.com/@x-rain/street-portrait-potpourri-from-amazing-saigon
@kungfukidhttps://ecency.com/@kungfukid/weekend-getaway-in-balsa
@apanamamamahttps://ecency.com/@apanamamama/day-8-our-first-cruise
@junebridehttps://ecency.com/@junebride/minimalist-korean-coffee-shop-in-panglao-must-checkout
@jfang003https://ecency.com/@jfang003/my-hive-goals-for-2024-week-23-7w9
@palomap3https://ecency.com/@palomap3/arte-urbano-en-vinaroz-espana
@reeta0119https://ecency.com/@reeta0119/sps-price-below-1-cent-which-is-the-lowest-ever-5s1
@untilwelearnhttps://ecency.com/@untilwelearn/young-curlycup-gumweed
@lunaticantohttps://ecency.com/@lunaticanto/a-portuguese-culinary-delight
@stellamartinezhttps://ecency.com/@stellamartinez/lets-go-eat-cachapas-with-maltin-in-colombia-eng-esp
@mafalda2018https://ecency.com/@mafalda2018/tertulias-y-amores-bajo-la-mata-de-manga-or-mi-vida-universitaria-es-en

 

https://images.ecency.com/DQme1eL9v9d8qiTY2KdjUACLN5oMFzUQZP9Rpf8uvDhAnhH/hive_divider.png

https://images.hive.blog/u/sagarkothari88/avatar

Vote sagarkothari88 as Hive Witness

https://images.hive.blog/u/threespeak/avatar

Vote for 3Speak as Witness

https://images.ecency.com/DQme1eL9v9d8qiTY2KdjUACLN5oMFzUQZP9Rpf8uvDhAnhH/hive_divider.png

Don't forget to pay using HBD/Hive

https://distriator.com

  • banners & images if you wish to use.
  • Don't forget to give credits to designers.

https://images.ecency.com/DQmNM1ahigCcZowJYjJRsdCeLXu5vykGa64cmiCPK5mbRZU/photo_2024_04_26_21.08.09.jpeg

https://images.ecency.com/DQmdNqPB61oSdqMf3x2xcX9qNXimd6iMKccwM8nGEUgjUsa/abnner.png

Don't forget to swap your HBD/Hive using @ecency

https://images.ecency.com/DQmQkeawijcZVajC14KdSK2KP9vV4NSBTM1hRFpnCaa47Nr/swap_feature_banner.gif

Comments

Sort byBest
AI
Waivio AI Assistant
How can I help you today?