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

post-thumbnail

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.

My contributions on projects on Hive Blockchain

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

add webview to your flutter project

  • 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

first run

  • 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.

redirections

  • 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

broadcast ops

  • 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

something went wrong

  • 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

postman API call

  • 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

got notifications

  • 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.

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.

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.

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.

2024-06-11-encoder-data

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

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

Support @sagarkothari88

Vote sagarkothari88 as Hive Witness

Support @threespeak

Vote for 3Speak as Witness

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.

image by noakmilo

banner of distriator by josegrech

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



0
0
0.000
34 comments
avatar

I appreciate your curation. Thank you

0
0
0.000
avatar

Keep up your good work! I remember in my coding days having that tiny mistake taking forever to fix, I know that feeling well.

Thanks for pumping all those resources into Hive, I know we all really appreciate it!
!PIZZA
!LOL
!BBH (it it's working again yet!)

0
0
0.000
avatar

Hello @thebighigg

Thank you.
Today also, google maps-places-api took good amount of time.
The resources are very very expensive. I don't know for how long I'll keep it up.

Thank you for dropping by & commenting

!GIF You are most welcome

Here are some additional gifts for you.

  • Here is !LUV token gift for you
  • Here is !PIZZA token gift for you
0
0
0.000
avatar
(Edited)

PIZZA!

$PIZZA slices delivered:
sagarkothari88 tipped thebighigg
sagarkothari88 tipped coinjoe
@sagarkothari88(2/10) tipped @kungfukid
thebighigg tipped sagarkothari88
sagarkothari88 tipped apanamamama

0
0
0.000
avatar

Every skill in this post is a key to Hive through extraordinary skill and creativity. Excellent mobile app information with outstanding skills. Along with this, the awardees have been nominated exceptionally well. May God bless you always with all abilities. Your skills are immense for running activities on this platform with a very wonderful feel.
Best regards @mdakash62

0
0
0.000
avatar

Hello @mdakash62

Thank you for your kind words

Thank you for dropping by & commenting

!GIF thank you so much

Here are some additional gifts for you.

  • Here is !LUV token gift for you
0
0
0.000
avatar
(Edited)

you are most welcome sir may God bless you with my heart.thanks for your gift

0
0
0.000
avatar

It’s always a pleasure to be in this list! Thank you for your support. 🤗

0
0
0.000
avatar

Hello @palomap3

You are most welcome.
Happy to see you on the list.
Looks like hive-curators love seeing your post.

Thank you for dropping by & commenting

!GIF Cheers

Here are some additional gifts for you.

  • Here is !LUV token gift for you
0
0
0.000
avatar

Thank you ever so much, @sagarkothari88, for a great update, for the post curation and spotlight, and for everything that you do to contribute to Hive! You're a Hive badass! 😁 🙏 💚 ✨ 🤙

0
0
0.000
avatar

Hello @tydynrain

Thank you for motivating words.
I'll keep up the best.

Thank you for dropping by & commenting

!GIF You are most welcome

Here are some additional gifts for you.

  • Here is !LUV token gift for you
  • Here is !ALIVE token gift for you
0
0
0.000
avatar

Warm greetings again! You're ever so welcome, of course! Excellent! Thanks much again! 😁 🙏 💚 ✨ 🤙

0
0
0.000
avatar

I always struggled with hivesigner and just use keychain instead thanks for all the work you do my friend have the best weekend @sagarkothari88 😎

Made in Canva
!ALIVE

- @benthomaswwd - Moderator


This post has been curated by the Alive And Thriving Team, we curate good content in the We Are Alive Tribe that is on topic for #aliveandthriving, and it's included in our daily curation report on @aliveandthriving, plus @youarealive is following our Curation Trail.

0
0
0.000
avatar

@aliveandthriving

Thank you so much for dropping by.

Yes. It requires a little bit of learning curve. HiveKeychain is fast compare to that.
Happy week ahead.

0
0
0.000