BlockScience Team
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
      • Invitee
    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Sharing URL Help
Menu
Options
Versions and GitHub Sync Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
Invitee
Publish Note

Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

Your note will be visible on your profile and discoverable by anyone.
Your note is now live.
This note is visible on your profile and discoverable online.
Everyone on the web can find and read all notes of this public team.
See published notes
Unpublish note
Please check the box to agree to the Community Guidelines.
View profile
Engagement control
Commenting
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
  • Everyone
Suggest edit
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
Emoji Reply
Enable
Import from Dropbox Google Drive Gist Clipboard
   owned this note    owned this note      
Published Linked with GitHub
Subscribed
  • Any changes
    Be notified of any changes
  • Mention me
    Be notified of mention me
  • Unsubscribe
Subscribe
# SCF Voting Mechanism PoC Design <style> body { counter-reset: heading; } h2:before { content: counter(heading)". "; counter-increment: heading; } h2 { counter-reset: subheading; } h3:before { content: counter(heading)"." counter(subheading)". "; counter-increment: subheading; } h3 { counter-reset: subsubheading; } h4:before { content: counter(heading)"." counter(subheading)"." counter(subsubheading)". "; counter-increment: subsubheading; } h4 { counter-reset: subsubsubheading; } h5:before { content: counter(heading)"." counter(subheading)"." counter(subsubheading)"."counter(subsubsubheading)". "; counter-increment: subsubsubheading; } </style> ## Intro During the first phase of collaboration, the SDF and BlockScience teams collectively uncovered requirements and desirables for the design of a Proof of Concept voting mechanism for the Stellar Development Fund. As an output of the second phase, this document describes the design of a voting mechanism PoC. This PoC was developed jointly by BlockScience and the SDF. ## Purpose Design a POC for a novel Voting Mechanism for the Stellar Community Fund (SCF) that would be implemented and deployed using Soroban, Stellar’s native smart contracts platform (currently in preview release). Votes will be cast on proposals for distribution of SCF funds to projects to benefit the Stellar Community. Votes can have differing weights and can be both provided directly by the users or indirectly through delegation. ## PoC Design Goals * Award SCF funds in a manner that brings long-term value to the ecosystem. * This requires the mechanism to be contextually “**fair**” and “**good**”, * coordinating participants around **value-adding activities**. * Modular and flexible. * This enables adaptability to further use-cases (eg. **Public Goods** vs. VC style funding) and * allows the community to **co-own** and **co-operate** the mechanisms. * Additionally, the mechanism should be **scalable** beyond currently limited groups of participants * Limited complexity --- i.e., **simplicity**. Users should not feel overwhelmed by the logical parts of the mechanism. * Similarities to already established concepts around Stellar Consensus Protocol (such as trust and Quorums) are regarded as being highly desirable. * Additionally, SDF strives to enable innovative mechanisms rather than porting of (potentially) contextually non-fitting but already established mechanisms. * (Definitions:) * “**fair**”: The mechanism should not without good reason benefit some members of the community over others. * “**good**”: The mechanism should work for the benefit of the community and not harm its development. * **value-adding activities**: The activities resulting from the mechanism should bring positive value to the community. * **Public Goods**: Goods and services that are available to all, but might not have enough incentive for individuals to fund them alone. As opposed to Private Goods, which are owned and benefit individuals, leaving them enough incentive to fund them. * **co-own**: The mechanism should not be owned by individuals, but by the community as a whole. * **co-operate**: The community should be able to operate and adapt the mechanisms without relying on specific actors. * **scalable**: The mechanism should be effective still when numbers of participants are increasing. * **simplicity**: The community should not feel overwhelmed in understanding, using and adapting the mechanism. ### Proposal Voting Round Protocol Overview ![RoundTimeline](https://lucid.app/publicSegments/view/860cacb3-db44-4e03-bc57-566f5de5305a/image.png "Voting round timeline") *Figure Round Timeline: The timeline followed by this PoC* ## PoC Requirements in terms of User Stories To assess whether the PoC implementation conforms to surfaced requirements and desirables, we express them in relationship to User Stories. In this section, we enumerate a semi-exhaustive set of stories, grouped across User Categories (Generic SCF User, Voter, Monitor and Administrator) ### Generic SCF User As a generic SCF User, I want * the mechanisms used in the SCF to be simple enough for me to reason about them and flexible enough for them to be adapted to a changing environment or new use-cases. * Neural Governance consists of several reasonably simple components, which show complexity only through composition. It allows allows to be parametrized to a changed environment and is designed with separate modules, which can be omitted, changed as well as new modules added to. * the mechanisms used to be novel applications but also show familiarity to concepts I already know. * Quorum Voting has similarities to well-known delegation schemes as well as the Stellar Consensus Protocol known to the community and allows for variable Quorum sizes, thresholds, formation and conditional logic to be added to. * Quorum Voting and Neural Governance are novel applications and combinations of concepts seen before. The way on which the PoC achieves those stories can roughly mapped by: * simple flexible $\rightarrow$ Neural Governance * novel familiar $\rightarrow$ Quorum Voting * round voting results as signal $\rightarrow$ voting power ### Voter User * As an eligible voter in the Stellar Network community, I want to be able to and have the choice to vote in a round so that I can assign my voting power for or against each proposal in the round. * As an eligible voter in the Stellar Network community, I want to be able to delegate my vote on any proposal that I do not want to vote on so that I can entrust my voting power to other users. * As an eligible voter in the Stellar Network community, I want to be able to check my voting power at any time so that I make informed decisions about delegating my vote. * As an eligible voter in the Stellar Network community, I want to be able to change my vote for any proposal prior to vote tallying so that I account for changes in my understanding of the issues involved. * As an eligible voter in the Stellar Network community, I want to be informed of changes in estimated voting power of my delegated votes prior to vote tallying so that I can update my delegations. ### Monitor User * As a voting round monitor, I want to be informed of the operational status of the Stellar Voting System so that I can alert an administrator of issues. * As a voting round monitor, I want to be able to check the progress of a voting round so that I can provide feedback to the community. * As a voting round monitor, I want to be informed of the results of vote tallying so that I can inform the community. ### Administrator * As a voting round administrator, I want to configure the Neural Governance component so that it fulfills the agreed upon rules for a voting round. * As a voting round administrator I want to be able to configure a voting round so that a RoundBallot can be generated. * As a voting round administrator, I want to be informed of operational issues so that I can * fix issues if I am able to do so, or * escalate issues if I am unable to fix them. ## PoC Components The proposed implementation of the SDF Voting Mechanism consists of three main components: 1. PollingPlace 2. PrecinctHQ 3. NeuralGovernance The following figure illustrates how these components are integrated into a voting mechanism in the PoC. Each component is described in detail in the following sections. ![SystemDiagram](https://lucid.app/publicSegments/view/9108ff08-1808-4c88-88bc-30c1b3eec9b2/image.png "Neural Governance System Diagram") Figure SystemDiagram: This figure shows the components that will be implemented in the POC including interfaces required by and provided by each component. ### The PollingPlace Component The PollingPlace component implements the user interface with which a voter casts their votes for proposals in a given round of voting using a ballot. PollingPlace transmits a voter's ballot to the Governance component's input interface. | Interface ID | Method Description | Method Signature | Method Return | | ------- | ------------------ | --------------------- | ------------- | | 1 | Voter UI | vote(voterID, ballot) | JSON | | 2 | Governance module interface | Non-specified | Non-specified | #### The User Interface SubComponent * Voting UI --- Fills out a ballot * Vote Delegation (UI) --- Specifies a delegation policy ### The PrecinctHQ Component The PrecinctHQ component implements a governor interface through which the governance component transmits the results of a voting round. PrecintHQ implements two user interfaces --- an administrative interface with which a voting round is configured and operated, and an interface from which to monitor the status of a voting round. PrecintHQ calls into the Monitoring and Administration interfaces exposed by the Governance component. PrecinctHQ | Interface ID | Method Description | Method Signature | Method Return | | -------- | -------- | -------- | ------ | | 1 | Retrieve Vote Data | JSON | JSON | | 2 | Retrieve Round Configuration | JSON | JSON | | 3 | Precint Configuration | JSON | JSON | | 4 | Ballot Results | JSON | JSON | ### The Governance Component --- Neural Governance The Governance component with which business rules for voting and vote weighting and vote aggregation are specified in subcomponents called neurons. The Governance component also implements non-neural subcomponents which provide input and output interfaces. ![NeuralGovernanceComponent](https://lucid.app/publicSegments/view/91ee8d70-640e-4b45-85af-7f2d27c68670/image.png "Neural Governance Component interfaces" =400x250) *Figure NeuralGovernanceComponent: externally exposed interfaces of the Neural Governance Component.* The neural governance component interfaces with operational polling place and PrecinctHQ modules through well defined, fixed, interfaces that have no dependence on the internal of the neural governance component. The neural components that implement voting policy within the neural governance component each communicates. ![NeuralSubcomponent](https://lucid.app/publicSegments/view/215186f0-0005-4709-86d2-dc44d9eae21f/image.png "Standardized neural subcomponent interfaces") *Figure NeuralSubcomponent: Each neuron is a modularized subcomponent that implements a vote accounting rule. Externally, communication with a neuron is mediated through a standard set of interfaces. Internally, the functionality of a neuron is implemented by a standardized framework of elements.* Becuase of this combination of internal modulatity and fixed external interfaces, Neural Governance can be extensively modified without altering the existing architecture. #### Non-neural Subcomponents The non-neural components implement the interfaces that the VotingPlace and PrecintHQ must acquire in order to communicate with the Governance component. ##### Neural Governance Voting Subcomponent The Neural Governance Voting subcomponent provides the interface acquired by Polling Place. Neural Governance Voting acquires the Input interface provided by the QuorumVotingInputNeuron. Each voter's ballot is passed from the Polling Place to the Neural Governance Voting subcomponent via this interface as a RoundBallot. The Neural Governance Voting subcomponent collates RoundBallots from all voters in a round into a RoundVotingMatrix. | Interface ID | Method Description | Method Signature | Method Return | | -------- | -------- | -------- | ------ | | 1 | Ballot input | Text | JSON | ##### Neural Governance Monitoring Subcomponent | Interface ID | Method Description | Method Signature | Method Return | | -------- | -------- | -------- | ------ | | 1 | Text | Text | JSON | #### Neural Subcomponents Each neural subcomponent exposes the same interfaces shown in Fig. NeuralSubcomponent. Neurons are wired Output to Input as shown in Fig. SystemDiagram. | Interface ID | Method Description | Method Signature | Method Return | | ----- | ------------- | -------- | ---- | | 1 | Input | Text | JSON | | 2 | Oracle | Text | JSON | | 3 | Configuration | Text | JSON | | 4 | Output | Text | JSON | ## PoC Data Structures On this section, we describe schemas for the API Calls that users would invoke for interacting the the PoC components ### Round Ballot The Round Ballot call encapsulates the user action of participating on an Voting Round. An user can either Vote or Delegate. On the first case, he also must provide an list of projects being voted, and on the second case he must provide his list of candidate users to form his Quorum. ```json! { "$schema": "http://json-schema.org/draft-06/schema#", "$id": "https://stellar.org/QuorumVoting.json.schema", "definitions": { "RoundBallot": { "type": "object", "additionalProperties": false, "properties": { "roundID": { "type": "string" }, "voterID": { "type": "string", "format": "integer" }, "ballotType": { "type": "string", "enum": ["Vote", "Delegate"] } "votes": { "type": "array", "items": { "$ref": "#/definitions/Vote" } } }, "required": [ "roundID", "voterID", "ballotType", "votes" ], "if": { "properties": { "voteType": { "const": "Delegate" } } }, "then": { "properties": { "delegatePolicy": "$ref": "#/definitions/VoterDelegationPolicy" } } }, "title": "RoundBallot" } } } ``` ### Vote The Vote Schema encapsulates an User Vote towards an Specific Project. ```json! { "$schema": "http://json-schema.org/draft-06/schema#", "$id": "https://stellar.org/QuorumVoting.json.schema", "definitions": { "Vote": { "type": "object", "additionalProperties": false, "properties": { "voterID": { "type": "string", "format": "integer" }, "proposalID": { "type": "string", "format": "integer" }, "roundID": { "type": "string" }, "voteCast": { "type": "string", "enum": ["Yes", "No", "Abstain"] } }, "required": [ "proposalID", "roundID", "voteCast", "voterID" ], "title": "Vote", "description": "Schema of a Vote object for Stellar. Represents a single vote cast by a voter.", } } } ``` ### Voter Delegation Policy The Voter Delegation Policy object encapsulates an list of 5 to 10 Potential Delegatees for forming an User Quorum. ```json! { "$schema": "http://json-schema.org/draft-06/schema#", "$id": "https://stellar.org/QuorumVoting.json.schema", "definitions": { "VoterDelegationPolicy": { "type": "object", "additionalProperties": false, "properties": { "voterID": { "type": "string", "format": "integer", "description": "The ID of the voter to whom this policy belongs." }, "roundID": { "type": "string", "description": "The ID of the voting round to which this policy applies." }, "delegateList": { "type": "array", "items": { "type": "string", "format": "integer", "minItems": 5, "maxItems": 10, "uniqueItems": true }, "description": "A list of voter IDs specified for delegation by this policy." } }, "required": [ "voterID", "roundID", "delegateList" ], "title": "Voter Delegation Policy", "description": "Schema of a VoterDelegationPolicy object for Stellar. Represents to whom a voter is delegating vote." } } } ``` ## References [SCF Voting Mechanism PoC Specification](/GMs8iB1MQEGsJirqqPm3NA)

Import from clipboard

Paste your markdown or webpage here...

Advanced permission required

Your current role can only read. Ask the system administrator to acquire write and comment permission.

This team is disabled

Sorry, this team is disabled. You can't edit this note.

This note is locked

Sorry, only owner can edit this note.

Reach the limit

Sorry, you've reached the max length this note can be.
Please reduce the content or divide it to more notes, thank you!

Import from Gist

Import from Snippet

or

Export to Snippet

Are you sure?

Do you really want to delete this note?
All users will lose their connection.

Create a note from template

Create a note from template

Oops...
This template has been removed or transferred.
Upgrade
All
  • All
  • Team
No template.

Create a template

Upgrade

Delete template

Do you really want to delete this template?
Turn this template into a regular note and keep its content, versions, and comments.

This page need refresh

You have an incompatible client version.
Refresh to update.
New version available!
See releases notes here
Refresh to enjoy new features.
Your user state has changed.
Refresh to load new user state.

Sign in

Forgot password

or

By clicking below, you agree to our terms of service.

Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
Wallet ( )
Connect another wallet

New to HackMD? Sign up

Help

  • English
  • 中文
  • Français
  • Deutsch
  • 日本語
  • Español
  • Català
  • Ελληνικά
  • Português
  • italiano
  • Türkçe
  • Русский
  • Nederlands
  • hrvatski jezik
  • język polski
  • Українська
  • हिन्दी
  • svenska
  • Esperanto
  • dansk

Documents

Help & Tutorial

How to use Book mode

Slide Example

API Docs

Edit in VSCode

Install browser extension

Contacts

Feedback

Discord

Send us email

Resources

Releases

Pricing

Blog

Policy

Terms

Privacy

Cheatsheet

Syntax Example Reference
# Header Header 基本排版
- Unordered List
  • Unordered List
1. Ordered List
  1. Ordered List
- [ ] Todo List
  • Todo List
> Blockquote
Blockquote
**Bold font** Bold font
*Italics font* Italics font
~~Strikethrough~~ Strikethrough
19^th^ 19th
H~2~O H2O
++Inserted text++ Inserted text
==Marked text== Marked text
[link text](https:// "title") Link
![image alt](https:// "title") Image
`Code` Code 在筆記中貼入程式碼
```javascript
var i = 0;
```
var i = 0;
:smile: :smile: Emoji list
{%youtube youtube_id %} Externals
$L^aT_eX$ LaTeX
:::info
This is a alert area.
:::

This is a alert area.

Versions and GitHub Sync
Get Full History Access

  • Edit version name
  • Delete

revision author avatar     named on  

More Less

Note content is identical to the latest version.
Compare
    Choose a version
    No search result
    Version not found
Sign in to link this note to GitHub
Learn more
This note is not linked with GitHub
 

Feedback

Submission failed, please try again

Thanks for your support.

On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

Please give us some advice and help us improve HackMD.

 

Thanks for your feedback

Remove version name

Do you want to remove this version name and description?

Transfer ownership

Transfer to
    Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

      Link with GitHub

      Please authorize HackMD on GitHub
      • Please sign in to GitHub and install the HackMD app on your GitHub repo.
      • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
      Learn more  Sign in to GitHub

      Push the note to GitHub Push to GitHub Pull a file from GitHub

        Authorize again
       

      Choose which file to push to

      Select repo
      Refresh Authorize more repos
      Select branch
      Select file
      Select branch
      Choose version(s) to push
      • Save a new version and push
      • Choose from existing versions
      Include title and tags
      Available push count

      Pull from GitHub

       
      File from GitHub
      File from HackMD

      GitHub Link Settings

      File linked

      Linked by
      File path
      Last synced branch
      Available push count

      Danger Zone

      Unlink
      You will no longer receive notification when GitHub file changes after unlink.

      Syncing

      Push failed

      Push successfully