Nothing very special today. I worked from 3:00 am till a bit later than 7:00 am! I was sleepy the whole session lol. Then slept at 8 am but bloody woke up at 12 for some odd reasons. I could not go back to sleep until 4:30 pm to wake up again at 8:30 pm to get ready for another shift from 9:00 pm until 01:00 am.
This afternoon, while not being able to sleep, I decided I'd resume the development for my Javascript version of the POCKET's Confirmer Python code.
What is POCKET?
POCKET stands for Proof Of Concept Electronic Token (the K is silent).
It is a sub-token designed to operate on the Steem blockchain and interact with its users through a simple set of commands which users can invoke via interfaces such as Steemit.com and Busy.org. Please see the POCKET announcement on Steemit and the POCKET Genesis Post.
POCKET is a project by @biophil. In a nutshell, it is a cryptocurrency that uses the STEEM blockchain as a base. It uses STEEM comments to execute commands such as sending tokens and confirming them.
The distribution of POCKET tokens has already stopped but many people still own some tokens and distributing them as tips via the comments. Here is an example:
pocketsend:11@ninegagbot, play around with the token of fun - POCKET!
In the screenshot above, @pode has decided to send 11 POCKET tokens to @ninegagbot. To do this he just wrote this in a comment on any post:
That command means is formatted as followed
pocketsend:amount@recipient,MEMO
Easy isn't it?
Now, POCKET still needs some kind of witnesses to verify transactions like this, they are called Confirmers. From the screenshot above, you could see a reply by @pocket-node confirming that the transfer of 11 POCKET tokens has been successful and that 1 POCKET token has been retained by @pocket-node as a confirmation fee.
POCKET-JS
I've been interested in this Proof Of Concept since I discovered it when I spotted a pocketsend
command on one of @livvu's amazing art posts. After several discussion with @biophil, I decided I would port his Confirmer code from Python to Javascript (NodeJS). I've started working on it a while ago but got busy with other stuffs. Today, I managed to get some time and resume it a little bit. It is still not running yet, so far those have been ported:
- the database
- the constants
- the validator
- the voter class
I still need to complete these:
- the confirmer class
- sending comments and upvotes to the STEEM blockchain
- linking all the classes together
There are also unit tests on the database and validator codes.
![](https://images.hive.blog/0x0/https://steemitimages.com/0x0/https://cdn.steemitimages.com/DQmZyMQMEuGUpBQxcuqVYNTM1hG2n7De2vix7SGee6xrM7N/quochuy-ulog.gif)
Related content
Do more on Steem | |
---|---|
![]() | On Steem, Witnesses are playing the important role of providing a performant and safe network for all of us. You have the power to choose 30 trusty witnesses to package transactions and sign the blocks that will go in the Steem blockchain. Vote for me via SteemConnect to help me do more useful projects for the community. |
![]() | Join me on Homesteaders Online's Discord |
![]() | If you are Australian (even abroad), join #teamaustralia! |
Credits
- The image at the top has been generated with the Canva app using my own photo.
Protect your money against Phishing Scam!
Cryptos accounts are the target of international scammers because they want your hard earned money!
Those people are very clever and in a moment of inattention, you've given them your login and password!
I've created a Chrome extension that can help you detecting scam links!
Install Steemed Phish Chrome desktop browser extension now!
Password and Private Keys security
You all know that your Steem password is the access to all your STEEM, SBD, posting, transferring, everything... right?
So, please, follow these simple steps and keep yourself safe:
- Apart from the initial setup of your account, NEVER use your password ANYWHERE, if stolen, it will give full control to your Steem account.
- Backup your password and keep it somewhere safe. Use a password manager like Lastpass, print it on paper and put it in a safe (no kidding). If you forget your password, no one can help you out.
- To login for creating content and curating, use your Private Posting Key
- To make transfers and account operations, use your Private Active Key
- To encrypt and decrypt memos, use your Private Memo Key
Cảm ơn anh @quochuy về thông tin POCKET
But if the K is silent then I'd be inclined to pronounce the C softly and what the hell is a pocet XD Are the pocket tokens still being thrown around. I remember seeing a lot of pocket commands being thrown around various posts a few months ago but haven't seen any for a while.
Are you porting for educational purposes or because it will work better?
🤣
POCKET tokens are still being distributed as you can see from the activity log from my confirmer:
https://steemd.com/@steemulant And @pode is being very busy distributing them lately hehe
The port is mainly educational and I will also make it open source. I like the concept and wanted to understand more about how it works in the background. How to use Steem comments/custom_json to transport other commands that can be use by another platform. One other example of system using a text in a post or comment on Steem is the https://www.steemitworldmap.com/ where you insert a special Markdown code in a post body, the code renders as an invisible element that can be read by a bot querying the blockchain.
There are limitations to such use such as multiple Confirmers posting comments at the same time, but it is interesting to understand the concept.
pocketsend:1@steemulant,test pocketjs
Successful Send of 1
Sending Account: quochuy
Receiving Account: steemulant
New sending account balance: 1086
New receiving account balance: 267
Fee: 1
Steem trxid: 2dcfa1da62bf4957c20a1105f37723803fe60ef8
Thanks for using POCKET! I am running this confirmer code.
pocketsend:2@steemulant,test pocketjs2
Successful Send of 2
Sending Account: quochuy
Receiving Account: steemulant
New sending account balance: 1084
New receiving account balance: 269
Fee: 1
Steem trxid: e1b5f985cab53cf37df659cdb3b6866ade288b9a
Thanks for using POCKET! I am running this confirmer code.
pocketsend:2@steemulant,test3
Successful Send of 2
Sending Account: quochuy
Receiving Account: steemulant
New sending account balance: 1082
New receiving account balance: 270
Fee: 1
Steem trxid: 84f555d04426c8cc0300eb3708a4fe523a320b99
Thanks for using POCKET! I am running this confirmer code.
pocketsend:2@steemulant,test4
Successful Send of 2
Sending Account: quochuy
Receiving Account: steemulant
New sending account balance: 1080
New receiving account balance: 273
Fee: 1
Steem trxid: f8343141df3a3568c415c19a33f85469da6be884
Thanks for using POCKET! I am running this confirmer code.
pocketsend:2@steemulant,test5
Successful Send of 2
Sending Account: quochuy
Receiving Account: steemulant
New sending account balance: 1078
New receiving account balance: 274
Fee: 1
Steem trxid: bfc5c8fc02462240fc10d4b686b0b42a8bef4b5f
Thanks for using POCKET! I am running this confirmer code.
pocketsend:2@steemulant,test6
Successful Send of 2
Sending Account: quochuy
Receiving Account: steemulant
New sending account balance: 1076
New receiving account balance: 275
Fee: 1
Steem trxid: 3489abc348c84280a9c21d272acbd25420332e25
Thanks for using POCKET! I am running this confirmer code.
test
pocketsend:2@steemulant,test7
Successful Send of 2
Sending Account: quochuy
Receiving Account: steemulant
New sending account balance: 1074
New receiving account balance: 276
Fee: 1
Steem trxid: a705cdd3548a05b1c6c8986f2fff24d6ff44b9b2
Thanks for using POCKET! I am running this confirmer code.
Successful Send of 2
Sending Account: quochuy
Receiving Account: steemulant
New sending account balance: 1074
New receiving account balance: 276
Fee: 1
Steem trxid: a705cdd3548a05b1c6c8986f2fff24d6ff44b9b2
Thanks for using POCKET! I am running Pocket-JS confirmer code.
pocketsend:2@steemulant,test8
Successful Send of 2
Sending Account: quochuy
Receiving Account: steemulant
New sending account balance: 1072
New receiving account balance: 277
Fee: 1
Steem trxid: 48ac02cc6ceb9ecced720ba6bffbd5482ea476f9
Thanks for using POCKET! I am running this confirmer code.
pocketsend:2@steemulant,test9
Successful Send of 2
Sending Account: quochuy
Receiving Account: steemulant
New sending account balance: 1070
New receiving account balance: 278
Fee: 1
Steem trxid: b227eda56a5a62e24aefa6794b063c6562bf1be9
Thanks for using POCKET! I am running this confirmer code.
Successful Send of 2
Sending Account: quochuy
Receiving Account: steemulant
New sending account balance: 1070
New receiving account balance: 278
Fee: 1
Steem trxid: b227eda56a5a62e24aefa6794b063c6562bf1be9
Thanks for using POCKET! I am running Pocket-JS confirmer code.
Successful Send of 2
Sending Account: quochuy
Receiving Account: steemulant
New sending account balance: 1070
New receiving account balance: 278
Fee: 1
Steem trxid: b227eda56a5a62e24aefa6794b063c6562bf1be9
Thanks for using POCKET! I am running this confirmer code.
pocketsend:2@steemulant,test10
Successful Send of 2
Sending Account: quochuy
Receiving Account: steemulant
New sending account balance: 1068
New receiving account balance: 279
Fee: 1
Steem trxid: b8155a30a62edcbebc9567e226ef6b1a46ca2a9f
Thanks for using POCKET! I am running this confirmer code.
Successful Send of 2
Sending Account: quochuy
Receiving Account: steemulant
New sending account balance: 1068
New receiving account balance: 279
Fee: 1
Steem trxid: b8155a30a62edcbebc9567e226ef6b1a46ca2a9f
Thanks for using POCKET! I am running Pocket-JS confirmer code.
@biophil 👆
pocketsend:2@steemulant,test11
Successful Send of 2
Sending Account: quochuy
Receiving Account: steemulant
New sending account balance: 1066
New receiving account balance: 280
Fee: 1
Steem trxid: 816b7116fbea043b8eacf8204a012c66a42833d8
Thanks for using POCKET! I am running this confirmer code.
Successful Send of 2
Sending Account: quochuy
Receiving Account: steemulant
New sending account balance: 1066
New receiving account balance: 280
Fee: 1
Steem trxid: 816b7116fbea043b8eacf8204a012c66a42833d8
Thanks for using POCKET! I am running Pocket-JS confirmer code.
pocketsend:1@steemulant,test pocketjs1
Successful Send of 1
Sending Account: vicrew12
Receiving Account: steemulant
New sending account balance: 9
New receiving account balance: 405
Fee: 1
Steem trxid: 9fa04402bfabc9941c938e752829f9c2683db663
Thanks for using POCKET! I am running this confirmer code.
Right so you did have some tokens but pocket bots were running out of RC and could not comment
pocketsend:20@vicrew12,you need to have pocket tokens in order to send some
Successful Send of 20
Sending Account: quochuy
Receiving Account: vicrew12
New sending account balance: 1046
New receiving account balance: 28
Fee: 1
Steem trxid: 62df1589a64b091fe7662db1ce4fb72dba5162b8
Someone sent you some POCKET tokens. POCKET is an experimental sub-token system which operates on the Steem blockchain. It's like having a custom token without SMT. You can also send some to someone else by just commenting on a post with the following command:
pocketsend:number_of_token@recipient_name,memo
pocketsend:10@pocketjs,This is a gift
for example to send 10 tokens to @pocketjs, make a comment starting with:I am running Pocket-JS confirmer code.