Skip to content

Instantly share code, notes, and snippets.

@pavoltravnik
Last active February 17, 2020 16:22
Show Gist options
  • Save pavoltravnik/bd3a336633144a2ab422674499a326ec to your computer and use it in GitHub Desktop.
Save pavoltravnik/bd3a336633144a2ab422674499a326ec to your computer and use it in GitHub Desktop.

Arbitust

Official language is english. Official way of delivery of documents. More of an chanel than binded to just one contract. The system requires a validation of previous actions. There can not be a new action untill previous is finished. It limits litispedence or in othe words multiple decisions in one contract. Arbitrators have to check all previous actions as well to not create a decision, which could disqualify previous decision (res iudicata).

createContract

  • hashContract - Arbitration clause electronically signed by two parties or document converted to electronic form with verified signatures. Object of Contract is unique by sha256 hash of the document of Arbitration Clause. This bond is unique for all parties in Arbitration clause.
  • partiesList - Addresses identyfing Parties.
  • limitArbiters - Number of arbiters able to vote. // For now just one.

createAction

  • hashContract
  • hashAction - This is just commitment of the future Action. Document will be delivered when Arbitratiors are chosen randomly by network.

sendDocument

  • hashContract
  • hashAction
  • ipfsHash - provide a document on IPFS network encrypted by PGP keys.

getDocumentsLength

  • hashContract
  • hashAction

Returns: (uint) get number of documents submitted to the network

getDocumentIPFShash

  • hashContract
  • hashAction
  • order

Returns: (string) returns ipfs hash of specific document

vote

  • hashContract
  • hashAction
  • vote - an actual decision of Arbitrator

isActionFinished

  • hashContract
  • hashAction

Returns: (bool)

getResult

  • hashContract
  • hashAction

Returns: (bool)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment