RENAME to on-chain-judge

state-channel
pubkey 7 years ago
parent c3b724848f
commit 9858292cb9
  1. 4
      README.md
  2. 8
      contracts/OnChainJudge.sol
  3. 2
      tutorials/on-chain-judge.md

@ -24,9 +24,9 @@ Cryptographic javascript-functions for ethereum and how to use them together wit
In this tutorial we will use the ethereum-identites and asymmetric cryptography to send an encrypted and signed message from Alice to Bob.
- **[Using a state-channel to transaction cost](./tutorials/state-channel.md)**
- **[Using a state-channel to transaction cost](./tutorials/on-chain-judge.md)**
In this tutorial we will create a voting where the smart-contract interacts a judge of a state-channel which reduces the gas cost of the voting.
In this tutorial we will create a voting where the smart-contract interacts as judge of a voting outcome which reduces the gas cost of the voting.
## Functions

@ -3,15 +3,15 @@ pragma experimental ABIEncoderV2;
/**
* this contract is used in the state-channel-tutorial under ./tutorials/state-channel.md
* this contract is used in the on-chain-judge-tutorial under ./tutorials/on-chain-judge.md
*/
contract StateChannelVoting {
contract OnChainJudge {
/**
* to ensure the signatures for this contract cannot be
* replayed somewhere else, we add this prefix to the signed hash
*/
string public signPrefix = "Signed for StateChannelVoting:";
string public signPrefix = "Signed for OnChainJudge:";
// if a voting is older than this limit, it will be closeable
uint public timeLimit = 60 * 60 * 24; // 1 day
@ -75,7 +75,7 @@ contract StateChannelVoting {
}
// constructor
function StateChannelVoting() public {
function OnChainJudge() public {
// add owner to boardMembers
addToBoardMember(msg.sender);
}

@ -1,3 +1,3 @@
# Tutorial: Using a state-channel to transaction cost
In this tutorial we will create a voting where the smart-contract interacts a judge of a state-channel which reduces the gas cost of the voting.
In this tutorial we will create a voting where the smart-contract interacts as judge of a voting outcome which reduces the gas cost of the voting.
Loading…
Cancel
Save