Skip to content
Snippets Groups Projects
  • Benjamin Gallois's avatar
    dabb2c09
    Offences management (!161) · dabb2c09
    Benjamin Gallois authored and Hugo Trentesaux's avatar Hugo Trentesaux committed
    * fix cargo files
    
    * fix slashing strategy
    
    * refactore remove_member_from_blacklist
    
    * add missing test
    
    * add license
    
    * refac tests
    
    adds comments
    remove some repetitions
    reorder tests (offence test are below)
    rename tests
    
    * feat(pallet_grandpa) add offences handler
    
    * feat(pallet_authority_members) add offences execution
    
    * feat(pallet_offences) add pallet offences
    dabb2c09
    History
    Offences management (!161)
    Benjamin Gallois authored and Hugo Trentesaux's avatar Hugo Trentesaux committed
    * fix cargo files
    
    * fix slashing strategy
    
    * refactore remove_member_from_blacklist
    
    * add missing test
    
    * add license
    
    * refac tests
    
    adds comments
    remove some repetitions
    reorder tests (offence test are below)
    rename tests
    
    * feat(pallet_grandpa) add offences handler
    
    * feat(pallet_authority_members) add offences execution
    
    * feat(pallet_offences) add pallet offences

Duniter pallets

Duniter uses some parity pallets available in our substrate fork, and some defined here. Each pallet has its own readme, but here is a summary:

Business processes pallets

These pallets are at the core of Duniter/Ğ1 currency

  • authority-members Duniter authorities are not selected with staking but through a smith web of trust.
  • certification Certifications are the "edges" of Duniter's dynamic directed graph. They mean the acceptation of a Licence.
  • duniter-account Duniter customized the AccountData defined in the Balances pallet to introduce a RandomId.
  • duniter-wot Merges identities, membership, certifications and distance pallets to implement Duniter Web of Trust.
  • duniter-distance Offchain worker used to compute distance criterion.
  • identity Identities are the "nodes" of Duniter's dynamic directed graph. They are one-to-one mapping to human being.
  • membership Membership defines the state of identities. They can be member or not of the different WoTs.
  • universal-dividend UD is at the basis of Ğ1 "libre currency". It is both a kind of "basic income" and a measure unit.

Functional pallets

  • duniter-test-parameters Test parameters only used in ĞDev to allow tweaking parameters more easily.
  • offences Sorts offences that will be executed by the authority-members pallet.
  • oneshot-account Oneshot accounts are light accounts only used once for anonimity or convenience use case.
  • provide-randomness Lets blockchain users ask for a verifiable random number.
  • session-benchmarking Benchmarks the session pallet.
  • upgrade-origin Allows some origins to dispatch a call as root.