create account

TIL: NEM cryptotoken consensus algorithm and blockchain features by ontofractal

View this thread on: hive.blogpeakd.comecency.com
· @ontofractal · (edited)
$39.71
TIL: NEM cryptotoken consensus algorithm and blockchain features
![](http://i.imgur.com/vDqN8UY.png)

This post is a compilation of concepts, facts and links I've researched to understand NEM better. 

# Context: history
NEM (New Economy Movement) was announced on  BitcoinTalk forum by user [utopianfuture](https://bitcointalk.org/index.php?topic=426303.0). While the initial plan was to create a fork of NXT payment network, NEM codebase was built from the ground up.

NEM's "100% original code" is often used in the promotional materials and has some important implications: 

* developers are competent enough to produce a new blockchain consensus 
* NEM's consensus algorithm wasn't battletested by years of running in production

NEM is built by developers based in Japan and is popular within the country.

### NEM capabilities

* XEM public chain token
* Vesting and Harvesting (mining)
* Namespaces and mosaics (assets)
* Encrypted messaging 

>“NEM was started to rectify some of the problems with not only the world economy, but also with other cryptocurrencies. One of the problems is of course distribution of wealth”, - [Makoto, Lead developer, NEM](https://cointelegraph.com/news/nem-launches-targets-old-economy-with-proof-of-importance)

>"Yes, we are certainly a Blockchain solution that can have multiple vertical applications. We have converts from Ethereum and Bitcoin that were amazed at how easy it is to develop in NEM. For example, we put together a land title registry solution in less than five days, whereas we can see a competition who’d have an army of programmers to do similar things in months using the Bitcoin core technology. We also heard that this similar project would take 1 month to do in Ethereum. This bodes well for the future of NEM," [says](https://cointelegraph.com/news/top-10-crypto-reshuffle-nem-pushes-back-augur-and-steem) NEM.io Foundation’s President Lon Wong.


# Context: XEM price

![](http://i.imgur.com/WUxgn0r.png)

I've found several possible reasons for price increase (apart of the general altcoin growth):
* [NEM.io Foundation establishment in December 2016](https://blog.nem.io/nem-foundation-inauguration/)
* [NEM and Mijin was tested by more than 300 companies and institutions](https://medium.com/nem-distributed-ledger-technology-blockchain/nem-mijin-blockchain-technology-briefing-january-2017-388fe766cb58)
* [XEM token was added to Coincheck, one of Japan’s largest cryptocurrency exchanges](http://www.livebitcoinnews.com/japans-coincheck-exchange-adds-litecoin-xem-dash-trading-markets/)
* [NEM’s iOS app release](http://www.econotimes.com/Blockchain-platform-NEMs-iOS-app-now-available-on-Apple-App-Store-665736) 
* [Chronobank partnership](https://blog.nem.io/the-chronobank-project/)


# NEM blockchain concept map

[![](http://i.imgur.com/hnX9DJs.png)](http://i.imgur.com/hnX9DJs.png)

# PoI or Proof-of-Importance

The main distinguishing feature of PoI algorithm is that block rewards are determinted by user level of participation in the NEM economy. Participation is defined as a combination of account vested balance and its' graph of inbound and outbound transactions.

> This is where NEM comes in. Its POI system not only rewards those with a large account balance, but also takes into account how much they transact to others and who they transact with.
This means that those who actively help the economy and therefore NEM benefit, meaning the right people, are rewarded. Each user is given a trust score, the higher it is, the more chance they have of being rewarded.
Source: [NEM official blog post](https://blog.nem.io/what-are-poi-and-vesting/)

> Each account is assigned an importance score that proxies its aggregate importance to the NEM economy. Accounts with higher
importance scores have higher probabilities of harvesting a block (see section 5: Blocks and the block chain). Because all transactions are publicly available in NEM, the transaction graph of the NEM economy can be calculated exactly. The topology of the transaction graph can be used as an input into the importance of an account. The insight that the transaction graph can be used for elucidating the importance of an account is the key innovation of Proof-of-Importance. 
Source: [NEM technical reference](https://www.nem.io/NEM_techRef.pdf#section.7)

NEM founders claim that ["the main aim [of PoI] is to empower regular people."](https://blog.nem.io/what-are-poi-and-vesting/). I'm not yet sure about that. If "importance" is defined by transaction graph of a node(vertex) in a network, most "important" will be hubs. By definition hubs are not regular uses.

# EigenTrust and EigentTrust++ 

NEM PoI is based on [EigenTrust++](http://ieeexplore.ieee.org/document/6450932/?reload=true) algorithm, a modified version of EigenTrust. [EigenTrust](http://ilpubs.stanford.edu:8090/562/1/2002-56.pdf) is a reputation system originally designed to reduce the number of downloads of inauthentic files in a P2P network. It measures how well different computers on the network interact with each other based on the peer's history of uploads and directs network traffic to the most trusted sources.  Eigentrust was developed by Sep Kamvar, Mario Schlosser and Hector Garcia-Molina from Standford university.  Eigentrust++ is supposed to have a stronger resilience against Sybil attacks.


# Mijin 

Mijin is a private blockchain solution that uses NEM sofware. 

> The name Mijin comes from a ninja weapon made from 3 chains that would tear an enemy apart into tiny piece. Mijin similarly destroys the cost of conventional infrastructure.
Source: http://mijin.io/en/.

>"A key difference compared to Bitcoin is that Mijin will allow private blockchains. This is profoundly interesting because of the potential to completely change financial, logistics, and governance systems," - [Mori Hamada & Matsumoto Legal Office, Tech Bureau Legal Adviser.](https://bravenewcoin.com/news/japanese-company-tech-bureau-launches-private-blockchain-project/)

>“Essentially, instead of having a fully public and uncontrolled network and state machine secured by cryptoeconomics (eg. proof of work, proof of stake), it is also possible to create a system where access permissions are more tightly controlled, with rights to modify or even read the blockchain state restricted to a few users, while still maintaining many kinds of partial guarantees of authenticity and decentralization that blockchains provide” - Vitalik Buterin [about generic permissioned chains](https://blog.ethereum.org/2015/08/07/on-public-and-private-blockchains/).

Some articles about Mijin use:
* [Mijin + Hitachin](https://cointelegraph.com/news/japan-supports-hitachis-150-mln-member-blockchain-project)
* [Mijin + Japan Municipal government](https://cointelegraph.com/news/how-japanese-blockchain-technology-revolutionizes-municipal-government-in-belgium)

# Harvesting

> Harvesting in NEM is the process of generating blocks and earning the transaction fees in that block as a reward for the contributed work. The POI (Proof-of-Importance) algorithm determines who is allowed to generate a block (or more precisely: which generated block is considered as valid). To be able to harvest, the account needs a vested(!) balance of at least 10,000 XEM. 

There are two types of harvesting: [local and delegated](https://blog.nem.io/how-local-and-delegated-harvesting-works/). Local mode requires a private key and always-on computer/server while delegated setup can be done remotely without exposing a private key. Remote harvesting requires a simple ceremony to initiate.

# Vesting

User deposits tokens into an account and after 24 hours 10% of the balance becomes vested. Then  after 24 hours 10% of the **unvested** remainder XEM is converted to the vested balance. 

> To be eligible for entering the importance calculation, an account must have at least 10,000 vested XEM. All accounts owning more than 10,000 vested XEM have a non-zero importance score.

[NEM forum "what is vesting" thread](https://forum.nem.io/t/what-is-vesting/1339/2)

# Mosaics and namespaces
![](https://forum.nem.io/uploads/default/original/1X/cf581565552e68aef79c8b8ec2c39a06eeca4956.png)

[Mosaics](https://blog.nem.io/mosaics-and-namespaces-2/) are a NEM's solution for providing user issued tokens for public and private blockchains.

To create an asset, a user is requred to register a root namespace, like a website domain or a folder. Namespaces are:

* namespace creation has a defined XEM price
* limited to 16 alphanumeric characters
* user can create as many sub-namespaces as wanted

User defined mosaic [properties](http://wiki.nem.io/index.php/Mosaic):
* name of the mosaic, up to a size limit of 32 characters; must be unique
* description, a free-text description of the mosaic up to 128 characters
* namespace
* divisibility (like satoshis in bitcoin)
* transferable/not transferable
* possible transaction levy (tax)


# Other useful links

* [Nikkei Was Wrong to Claim Takemiya Was Founder of NEM, Leading Japanese Blockchain](https://cointelegraph.com/news/nikkei-was-wrong-to-claim-takemiya-was-founder-of-nem-leading-japanese-blockchain)
* [Makoto Takemiya - Our Clarification](https://blog.nem.io/makoto-takemiya-our-clarification/)
* [Xhai Studios Integrates NEM Blockchain To Ditch Middlemen, Payment Processor](https://cointelegraph.com/news/xhai-studios-integrates-nem-blockchain-to-ditch-middlemen-payment-processor)
* [NEM Blockchain Platform Doubles the Rewards for its Supernode Program](http://www.newsbtc.com/2016/09/22/nem-blockchain-platform-doubles-rewards-supernode-program/)
* [How Japanese Blockchain Technology Revolutionizes Municipal Government in Belgium](https://cointelegraph.com/news/how-japanese-blockchain-technology-revolutionizes-municipal-government-in-belgium)
* [Radicalizing the Equity Market Landscape](https://cointelegraph.com/press-releases/radicalizing-the-equity-market-landscape)
* [Top Ten Cryptocurrency NEM Catches on in Japan](https://www.cryptocoinsnews.com/nem-japan-growth/)
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 25 others
properties (23)
authorontofractal
permlinktil-about-nem-cryptotoken-consensus-algorithm-and-blockchain-features
categorytil
json_metadata{"tags":["til","cryptocurrency","blockchain","nem"],"image":["http://i.imgur.com/vDqN8UY.png","http://i.imgur.com/WUxgn0r.png","http://i.imgur.com/hnX9DJs.png","https://forum.nem.io/uploads/default/original/1X/cf581565552e68aef79c8b8ec2c39a06eeca4956.png"],"links":["https://bitcointalk.org/index.php?topic=426303.0","https://cointelegraph.com/news/nem-launches-targets-old-economy-with-proof-of-importance","https://cointelegraph.com/news/top-10-crypto-reshuffle-nem-pushes-back-augur-and-steem","https://blog.nem.io/nem-foundation-inauguration/","https://medium.com/nem-distributed-ledger-technology-blockchain/nem-mijin-blockchain-technology-briefing-january-2017-388fe766cb58","http://www.livebitcoinnews.com/japans-coincheck-exchange-adds-litecoin-xem-dash-trading-markets/","http://www.econotimes.com/Blockchain-platform-NEMs-iOS-app-now-available-on-Apple-App-Store-665736","https://blog.nem.io/the-chronobank-project/","http://i.imgur.com/hnX9DJs.png","https://blog.nem.io/what-are-poi-and-vesting/","https://www.nem.io/NEM_techRef.pdf#section.7","http://ieeexplore.ieee.org/document/6450932/?reload=true","http://ilpubs.stanford.edu:8090/562/1/2002-56.pdf","http://mijin.io/en/","https://bravenewcoin.com/news/japanese-company-tech-bureau-launches-private-blockchain-project/","https://blog.ethereum.org/2015/08/07/on-public-and-private-blockchains/","https://cointelegraph.com/news/japan-supports-hitachis-150-mln-member-blockchain-project","https://cointelegraph.com/news/how-japanese-blockchain-technology-revolutionizes-municipal-government-in-belgium","https://blog.nem.io/how-local-and-delegated-harvesting-works/","https://forum.nem.io/t/what-is-vesting/1339/2","https://blog.nem.io/mosaics-and-namespaces-2/","http://wiki.nem.io/index.php/Mosaic","https://cointelegraph.com/news/nikkei-was-wrong-to-claim-takemiya-was-founder-of-nem-leading-japanese-blockchain","https://blog.nem.io/makoto-takemiya-our-clarification/","https://cointelegraph.com/news/xhai-studios-integrates-nem-blockchain-to-ditch-middlemen-payment-processor","http://www.newsbtc.com/2016/09/22/nem-blockchain-platform-doubles-rewards-supernode-program/","https://cointelegraph.com/press-releases/radicalizing-the-equity-market-landscape","https://www.cryptocoinsnews.com/nem-japan-growth/"],"app":"steemit/0.1","format":"markdown"}
created2017-05-12 13:51:21
last_update2017-05-12 15:09:36
depth0
children10
last_payout2017-05-19 13:51:21
cashout_time1969-12-31 23:59:59
total_payout_value32.731 HBD
curator_payout_value6.981 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length9,978
author_reputation61,670,850,962,884
root_title"TIL: NEM cryptotoken consensus algorithm and blockchain features"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id3,354,576
net_rshares10,099,590,253,953
author_curate_reward""
vote details (89)
@aashishkandel ·
This post is so useful and I have always liked NEM cryptocurrency :)
Upvoted and resteemed, thank you for sharing !
👍  
properties (23)
authoraashishkandel
permlinkre-ontofractal-til-about-nem-cryptotoken-consensus-algorithm-and-blockchain-features-20170512t154134297z
categorytil
json_metadata{"tags":["til"],"app":"steemit/0.1"}
created2017-05-12 15:41:39
last_update2017-05-12 15:41:39
depth1
children1
last_payout2017-05-19 15:41:39
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length115
author_reputation4,731,147,170,715
root_title"TIL: NEM cryptotoken consensus algorithm and blockchain features"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id3,356,959
net_rshares602,089,878
author_curate_reward""
vote details (1)
@ontofractal ·
You're welcome :)
properties (22)
authorontofractal
permlinkre-aashishkandel-re-ontofractal-til-about-nem-cryptotoken-consensus-algorithm-and-blockchain-features-20170512t161659238z
categorytil
json_metadata{"tags":["til"],"app":"steemit/0.1"}
created2017-05-12 16:17:00
last_update2017-05-12 16:17:00
depth2
children0
last_payout2017-05-19 16:17:00
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length17
author_reputation61,670,850,962,884
root_title"TIL: NEM cryptotoken consensus algorithm and blockchain features"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id3,357,747
net_rshares0
@dwcp ·
$1.87
Thanks. It was very helpful post for me about NEM.
👍  
properties (23)
authordwcp
permlinkre-ontofractal-til-about-nem-cryptotoken-consensus-algorithm-and-blockchain-features-20180207t011416641z
categorytil
json_metadata{"tags":["til"],"app":"steemit/0.1"}
created2018-02-07 01:14:15
last_update2018-02-07 01:14:15
depth1
children0
last_payout2018-02-14 01:14:15
cashout_time1969-12-31 23:59:59
total_payout_value1.870 HBD
curator_payout_value0.003 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length50
author_reputation3,801,649,065,222
root_title"TIL: NEM cryptotoken consensus algorithm and blockchain features"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id35,536,526
net_rshares277,472,173,566
author_curate_reward""
vote details (1)
@harpooninvestor ·
We wrote about a coming catalysts for NEM, check it out...

https://steemit.com/cryptocurrency/@harpooninvestor/bitlicense-new-york-state-s-typical-business-as-usual-crony-capitalism-ripple-xem-nem
properties (22)
authorharpooninvestor
permlinkre-ontofractal-til-about-nem-cryptotoken-consensus-algorithm-and-blockchain-features-20171219t153227676z
categorytil
json_metadata{"tags":["til"],"links":["https://steemit.com/cryptocurrency/@harpooninvestor/bitlicense-new-york-state-s-typical-business-as-usual-crony-capitalism-ripple-xem-nem"],"app":"steemit/0.1"}
created2017-12-19 15:32:27
last_update2017-12-19 15:32:27
depth1
children0
last_payout2017-12-26 15:32:27
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length197
author_reputation298,350,956,233
root_title"TIL: NEM cryptotoken consensus algorithm and blockchain features"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id24,203,440
net_rshares0
@jocra ·
Excellent research!

I own XEM, looking for make delegated harvesting. Until i read this post was i understand this: 
>Then after 24 hours 10% of the unvested remainder XEM is converted to the vested balance

And always i was questioning me, Why my funds don´t are vesting yet?...
properties (22)
authorjocra
permlinkre-ontofractal-til-about-nem-cryptotoken-consensus-algorithm-and-blockchain-features-20170512t140439558z
categorytil
json_metadata{"tags":["til"],"app":"steemit/0.1"}
created2017-05-12 14:04:39
last_update2017-05-12 14:04:39
depth1
children1
last_payout2017-05-19 14:04:39
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length280
author_reputation4,331,785,897,391
root_title"TIL: NEM cryptotoken consensus algorithm and blockchain features"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id3,354,838
net_rshares0
@ontofractal ·
$0.02
well, I am happy the post was useful then :)
👍  
properties (23)
authorontofractal
permlinkre-jocra-re-ontofractal-til-about-nem-cryptotoken-consensus-algorithm-and-blockchain-features-20170512t150356572z
categorytil
json_metadata{"tags":["til"],"app":"steemit/0.1"}
created2017-05-12 15:03:57
last_update2017-05-12 15:03:57
depth2
children0
last_payout2017-05-19 15:03:57
cashout_time1969-12-31 23:59:59
total_payout_value0.019 HBD
curator_payout_value0.003 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length44
author_reputation61,670,850,962,884
root_title"TIL: NEM cryptotoken consensus algorithm and blockchain features"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id3,356,150
net_rshares20,944,002,323
author_curate_reward""
vote details (1)
@lazariko12 ·
That you for sharing this information with us, it is truly useful, @ontofractal! I upvoted & Followed you as well.
properties (22)
authorlazariko12
permlinkre-ontofractal-til-about-nem-cryptotoken-consensus-algorithm-and-blockchain-features-20170512t160159606z
categorytil
json_metadata{"tags":["til"],"app":"busy/1.0.0"}
created2017-05-12 16:01:51
last_update2017-05-12 16:01:51
depth1
children0
last_payout2017-05-19 16:01:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length114
author_reputation49,517,697,654,563
root_title"TIL: NEM cryptotoken consensus algorithm and blockchain features"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id3,357,404
net_rshares0
@mammasitta ·
I love those kind of posts and researches  that I can learn from. I had to bookmark it because it's too long for now. Thanks!!!
properties (22)
authormammasitta
permlinkre-ontofractal-til-about-nem-cryptotoken-consensus-algorithm-and-blockchain-features-20170512t135301708z
categorytil
json_metadata{"tags":["til"],"app":"steemit/0.1"}
created2017-05-12 13:53:00
last_update2017-05-12 13:53:00
depth1
children2
last_payout2017-05-19 13:53:00
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length127
author_reputation112,725,079,546,542
root_title"TIL: NEM cryptotoken consensus algorithm and blockchain features"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id3,354,608
net_rshares0
@ontofractal ·
Cool, let me know if you'd like me to add something  :)
👍  
properties (23)
authorontofractal
permlinkre-mammasitta-re-ontofractal-til-about-nem-cryptotoken-consensus-algorithm-and-blockchain-features-20170512t135650812z
categorytil
json_metadata{"tags":["til"],"app":"steemit/0.1"}
created2017-05-12 13:56:51
last_update2017-05-12 13:56:51
depth2
children1
last_payout2017-05-19 13:56:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length55
author_reputation61,670,850,962,884
root_title"TIL: NEM cryptotoken consensus algorithm and blockchain features"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id3,354,693
net_rshares4,025,401,581
author_curate_reward""
vote details (1)
@mammasitta ·
I would need the whole stories behind every coin and blockchain 😜☺️ I just bought into peerplay and have no idea if peercoin is related. I am a total newbie with trading. Kind off.
properties (22)
authormammasitta
permlinkre-ontofractal-re-mammasitta-re-ontofractal-til-about-nem-cryptotoken-consensus-algorithm-and-blockchain-features-20170512t140129281z
categorytil
json_metadata{"tags":["til"],"app":"steemit/0.1"}
created2017-05-12 14:01:27
last_update2017-05-12 14:01:27
depth3
children0
last_payout2017-05-19 14:01:27
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length180
author_reputation112,725,079,546,542
root_title"TIL: NEM cryptotoken consensus algorithm and blockchain features"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id3,354,788
net_rshares0