perl library Steemit::WsClient - update 0.11 - posting and deleting comments

in #utopian-io7 years ago (edited)

<h1>New Features <h5>Comment/Delete Comment methods <p dir="auto">its now possible to add and remove comments.<br /> the usage is fairly convenient. <pre><code>my $steem = Steemit::WsClient->new( posting_key => 'copy this one from the steemit site', ); $steem->comment( "parent_author" => $parent_author, "parent_permlink" => $parent_permlink, "author" => $author, "permlink" => $permlink, "title" => $title, "body" => $body, "json_metadata" => $json_metadata, ); $steem->delete_comment( author => $author, permlink => $permlink ) <p dir="auto">To support this some things from the state of my latest post had to be cleaned up. There is now a new module <a href="https://github.com/snkoehn/perlSteemit/blob/master/lib/Steemit/OperationSerializer.pm" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">Steemit::OperationSerializer that woll hold all the serialisation methods of the operations that Steemit transaction allow. <h5>Deterministic DSA implementation <ul> <li>the dependency to Bytes::Random::Secure wes removed and instead the deterministic "K" generation as described in <a href="https://tools.ietf.org/html/rfc6979#section-3.2" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">rfc6979#section-3.2 was implemented in this <a href="https://github.com/snkoehn/perlSteemit/commit/ce056fc8d810fd4fc623e2d865739b8c61aa6a94" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">commit <ul> <li>why is this a feature you might ask? ;) it results in you being able to perform more actions on one system in the same time frame. The reason for this is, as with so many things in life, Entropy <li>The secure random generator needs entropy in your system to generate secure enough random numbers <li>When not enough entropy is thereby, for example, moving your mouse or doing a lot of IO operations it will just hang and wait for more "randomness" in your system to build up. <li>For ECDSA we don't really need randomness to generate our "K" which we use in the signature. We just need to be sure to not use the same "K" with different messages ever. So the implemented algorithm creates K based on your private key + the message itself and thus ensures that while still saving we no longer rely on entropy to sign messages. <h5>More documentation <p dir="auto">in the <a href="https://metacpan.org/pod/Steemit::WsClient" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">Documentation on cpan there are now all methods explained and examples for use cases like <ul> <li>searching posts with different sorting and pagination <li>voting on discussions <li>posting and deleting comments <h1>Roadmap <p dir="auto">Currently the basic functionality is there but now comes the time for further improvements. <ul> <li>include more functionalities of steem <li>more tests have to be written <li>making some of the submodules into their own distributions may help kickstart more development in the perl crypto space since in my research i noticed that a lot of concepts in various crypto projects are based on the same basics used in bitcoin originally <h1>How to contribute? <ul> <li>the whole procent is up on <a href="https://github.com/snkoehn/perlSteemit" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">githup and im happy for issue reports or pull requests <li>you can contact me on steem or via my cpan mail address snkoehn@cpan.org <p dir="auto"><br /><hr /><em>Posted on <a href="https://utopian.io/utopian-io/@hoffmann/perl-library-steemit-wsclient-update-0-11-posting-and-deleting-comments" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">Utopian.io - Rewarding Open Source Contributors<hr /><p>
Sort:  

Thank you for the contribution. It has been approved.

You can contact us on Discord.

[utopian-moderator]

Hey @hoffmann I am @utopian-io. I have just upvoted you!

Achievements

  • You have less than 500 followers. Just gave you a gift to help you succeed!
  • Seems like you contribute quite often. AMAZING!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x

this is nice post and good job sir.....

Please Stop - @kingparvez

You just said "good job","nice post" and in your your last 100 comments you used 45 phrases considered to be spam and you made this exact same comment 1 times. You've received 0 flags and you may see more on comments like these. These comments are the reason why your Steem Sincerity API classification scores are Spam: 84.20% and Bot: 2.00%

Please stop making comments like this and read the ways to avoid @pleasestop and earn the support of the community.

Hey bro, good post, I invite you to www.Yours.org a new social network like steemit, you will love it, see you there!

Awesome :) thanks for sharing !

Congratulations @hoffmann! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

<p dir="auto"><a href="http://steemitboard.com/@hoffmann" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link"><img src="https://images.hive.blog/768x0/https://steemitimages.com/70x80/http://steemitboard.com/notifications/votes.png" srcset="https://images.hive.blog/768x0/https://steemitimages.com/70x80/http://steemitboard.com/notifications/votes.png 1x, https://images.hive.blog/1536x0/https://steemitimages.com/70x80/http://steemitboard.com/notifications/votes.png 2x" /> Award for the number of upvotes <p dir="auto"><sub><em>Click on the badge to view your Board of Honor.<br /> <sub><em>If you no longer want to receive notifications, reply to this comment with the word <code>STOP <p dir="auto"><strong>Do not miss the <a href="https://steemit.com/steemitboard/@steemitboard/7mkfjh-steemitboard-world-cup-contest-results-of-day-14" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">last post<span> from <a href="/@steemitboard">@steemitboard! <hr /> <p dir="auto"><strong>Participate in the <a href="https://steemit.com/steemitboard/@steemitboard/steemitboard-world-cup-contest-collect-badges-and-win-free-sbd" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">SteemitBoard World Cup Contest!<br /> Collect World Cup badges and win free SBD<br /> Support the Gold Sponsors of the contest: <a href="https://v2.steemconnect.com/sign/account-witness-vote?witness=good-karma&approve=1" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">@good-karma and <a href="https://v2.steemconnect.com/sign/account-witness-vote?witness=lukestokes.mhth&approve=1" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">@lukestokes <hr /> <blockquote> <p dir="auto">Do you like <a href="https://steemit.com/@steemitboard" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">SteemitBoard's project? Then <strong><a href="https://v2.steemconnect.com/sign/account-witness-vote?witness=steemitboard&approve=1" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">Vote for its witness and <strong>get one more award!

Congratulations @hoffmann! You have completed the following achievement on Steemit and have been rewarded with new badge(s) :

<p dir="auto"><a href="http://steemitboard.com/@hoffmann" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link"><img src="https://images.hive.blog/768x0/https://steemitimages.com/70x80/http://steemitboard.com/notifications/votes.png" srcset="https://images.hive.blog/768x0/https://steemitimages.com/70x80/http://steemitboard.com/notifications/votes.png 1x, https://images.hive.blog/1536x0/https://steemitimages.com/70x80/http://steemitboard.com/notifications/votes.png 2x" /> Award for the number of upvotes <p dir="auto"><sub><em>Click on the badge to view your Board of Honor.<br /> <sub><em>If you no longer want to receive notifications, reply to this comment with the word <code>STOP <blockquote> <p dir="auto">Do you like <a href="https://steemit.com/@steemitboard" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">SteemitBoard's project? Then <strong><a href="https://v2.steemconnect.com/sign/account-witness-vote?witness=steemitboard&approve=1" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">Vote for its witness and <strong>get one more award!

Congratulations @hoffmann! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

<p dir="auto"><a href="http://steemitboard.com/@hoffmann" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link"><img src="https://images.hive.blog/768x0/https://steemitimages.com/70x80/http://steemitboard.com/notifications/votes.png" srcset="https://images.hive.blog/768x0/https://steemitimages.com/70x80/http://steemitboard.com/notifications/votes.png 1x, https://images.hive.blog/1536x0/https://steemitimages.com/70x80/http://steemitboard.com/notifications/votes.png 2x" /> Award for the number of upvotes <p dir="auto"><sub><em>Click on the badge to view your Board of Honor.<br /> <sub><em>If you no longer want to receive notifications, reply to this comment with the word <code>STOP <p dir="auto"><strong><span>Do not miss the last post from <a href="/@steemitboard">@steemitboard: <table><tr><td><a href="https://steemit.com/steemitboard/@steemitboard/steemitboard-witness-update-2018-09-07" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link"><img src="https://images.hive.blog/768x0/https://steemitimages.com/64x128/http://i.cubeupload.com/7CiQEO.png" srcset="https://images.hive.blog/768x0/https://steemitimages.com/64x128/http://i.cubeupload.com/7CiQEO.png 1x, https://images.hive.blog/1536x0/https://steemitimages.com/64x128/http://i.cubeupload.com/7CiQEO.png 2x" /><td><a href="https://steemit.com/steemitboard/@steemitboard/steemitboard-witness-update-2018-09-07" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">SteemitBoard - Witness Update<tr><td><a href="https://steemit.com/steemfest/@steemitboard/steemfest-steemitboard-support-the-travel-reimbursement-fund" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link"><img src="https://images.hive.blog/768x0/https://steemitimages.com/64x128/https://cdn.steemitimages.com/DQmawPYDAwfrQM8YU6ejD1f87g64cvsmEFn8RQKHJMs4zxg/image.png" srcset="https://images.hive.blog/768x0/https://steemitimages.com/64x128/https://cdn.steemitimages.com/DQmawPYDAwfrQM8YU6ejD1f87g64cvsmEFn8RQKHJMs4zxg/image.png 1x, https://images.hive.blog/1536x0/https://steemitimages.com/64x128/https://cdn.steemitimages.com/DQmawPYDAwfrQM8YU6ejD1f87g64cvsmEFn8RQKHJMs4zxg/image.png 2x" /><td><a href="https://steemit.com/steemfest/@steemitboard/steemfest-steemitboard-support-the-travel-reimbursement-fund" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">SteemFest³ - SteemitBoard support the Travel Reimbursement Fund. <blockquote> <p dir="auto">Support <a href="https://steemit.com/@steemitboard" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">SteemitBoard's project! <strong><a href="https://v2.steemconnect.com/sign/account-witness-vote?witness=steemitboard&approve=1" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">Vote for its witness and <strong>get one more award!

Congratulations @hoffmann! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 1 year!

Click here to view your Board

Support SteemitBoard's project! Vote for its witness and get one more award!

Congratulations @hoffmann! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 2 years!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Vote for @Steemitboard as a witness to get one more award and increased upvotes!