How Validators and Storage Nodes will be Rewarded - Asking for Dev Feedback

in SPK Network3 years ago

▶️ Watch on 3Speak



spkvalidatstonmode.png

Join @starkerz and @disregardfiat in this conversation about validators and storage nodes.

Storage Contracts:

Example:

“QmXedNPCLxXxMrSkBjYgMaKy1uCmixiJ2LGdruLfeCsRgs”: {
  Broca: 1000,  //remaining? Can get pretty fuzzy here depending on how Broca is rewarded
  Bytes: 1024000,
  Expires: 70000000,
  BrocaPerCheck: 50,
  Author: “author-a”
  Validator: “account-v”,
  Storage-A: “account-a”,
  Storage-B: “account-b”,
  Storage-C: “account-c”,
}

Validator Example:

“account-v”: {
         domain: "api.val.io",
         self: from,
         strikes: 0, //what bad actions?
         branded: 100000, //larynx burned into account
         Delegated: 100000,
         Pingaverage: 500,
         delegators: {
      “delegator-a”: 100000
},
         contracts: {
 “QmXedNPCLxXxMrSkBjYgMaKy1uCmixiJ2LGdruLfeCsRgs”: 70000000
}, //not sure if needed here
         PubKey: “STM6EUEaEywYoxpeVDX1fPDxrsyQLGTsgYf1LLDSHWwiKBdgRhGrx”,
    }

Storage Example:

“account-a”: {
         domain: "api.storage.io",
         strikes: 0, //what bad actions?
         branded: 100000, //larynx burned into account
         Bytes_total: 1024000000
         Delegated: 100000,
         delegators: {
      “delegator-a”: 100000
},
         contracts: {
 “QmXedNPCLxXxMrSkBjYgMaKy1uCmixiJ2LGdruLfeCsRgs”: 1024000
},
         PubKey: “STM6EUEaEywYoxpeVDX1fPDxrsyQLGTsgYf1LLDSHWwiKBdgRhGrx”,
 }

Contract/functions:

Add Validator:

Builds “account-v” with larynx. Add Brand: Burns more larynx into an account, to mine for SPK

Add Storage Node:

Bundle: { //from validator node with new files to store
    “QmXedNPCLxXxMrSkBjYgMaKy1uCmixiJ2LGdruLfeCsRgs”:  1024000
    “Author”: “author-a”
}

Report: {
  Checks: {
   “QmXedNPCLxXxMrSkBjYgMaKy1uCmixiJ2LGdruLfeCsRgs”:{
     “Storage-a”: 750,
     “Storage-b”: 500,
     “Storage-c”: OFFLINE,
    },
    …
  },
  OldSecret: mysecret.
  NewSecrets:{
   A: “#mysecret”
   B: “#mysecret”
  }

Vote for our Witness:


image.png


About the SPK Network:

The SPK Network is a decentralized Web 3.0 protocol that rewards value creators and infrastructure providers appropriately and autonomously by distributing reward tokens so that every user, creator, and platform, will be able to earn rewards on a level playing field.

@eddiespino


▶️ 3Speak

Sort:  

Looks clean! Web3 is where it's at 💪
Keep those //comment lines coming too, that really helps old and new eyes alike :)

Very exciting to see the progress and the network mechanics being fleshed out! What you are describing makes sense.

Notes/comments:

  • If there was a standardized software package that frontends could install which performed checks on each video played by the frontend's users, then that could act as a checking mechanism. The software could have a standard way of checking the time it took to play the video and the quality of its encoding. Results of these checks (all results or just more significant ones) could be logged somewhere in the network itself such that they are visible to all. So, if based on the frontend reports it looks like there is poor encoding quality, or long time to play, coming from a particular encoding or storage node, then the validator nodes could check those particular nodes. So the validator nodes would be checking other nodes based on performance. Frontends have incentive to give good experience to their users so a collusion between them and encoding/storage nodes seems unlikely. What do you think?

  • At one point, the question came up of what would happen if people who have SPK disappear. A potential way to address this could be what we did on Hive - the governance votes of an account stop having effect if that account hasn't participated in governance for a year.

  • Regarding "The hard part" - preventing double spend of Broca for video uploads. Could this be addressed by the Broca being paid in advance to an escrow account? The upload job could start only after the Broca has been paid to the escrow. After the upload is finished, the Broca is sent to the storage node.

And a little feedback about the video - the volume seems very low, it was hard to hear. I imagine most people would not be able to hear the conversation if they don't have a headset and turn the volume to the max. Don't know if you have a way to increase the volume.

These code actually burns larynx in order to generate spk tokens. Can this node be run on a cloud based service?

Gracias por tu voto 😊

Ahora, te voté. :D

Posted Using LeoFinance Beta

Gracias por tu voto 😊 y por visitar mi blog.

Gracias por tu voto 😊 y por visitar mi blog.

Gracias 😁 por tu voto.

Congratulations @spknetwork! Your post has been a top performer on the Hive blockchain and you have been rewarded with the following badge:

Post with the highest payout of the day.

You can view your badges on your board and compare yourself to others in the Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

Support the HiveBuzz project. Vote for our proposal!