You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
1.2 KiB

3 years ago
3 years ago
  1. ## A toy chain
  2. The chain should have these properties:
  3. - Running on at least 2 pre-defined nodes (IP addresses given in a config file / no additional discovery necessary)-
  4. - PoW, with every node a miner-
  5. - The difficulty is fixed (i.e., block time is not), each block rewards 100 coins-
  6. - ECDSA cryptography; addresses may be pure public keys-
  7. - Protect against double spending
  8. - Transactions can have additional data payload, signed by the sender (and there needs to be a way to set it)
  9. - Blocks can have additional data payload (and there needs to be a way to set it)
  10. - Implement a simple REST-like web service API which implements the following services and returns JSON data:
  11. * Query the block count.
  12. * Query a single block and return all its transaction data.
  13. * Query a single transaction and return all its data.
  14. * Create a transaction from JSON data and accept it for mining
  15. note:
  16. sensitive data are encrypted w/ git-crypt;
  17. please send your public key if you need access
  18. or ask for a shared DH secret
  19. decrypt can be done with the command :
  20. ```sh
  21. export GPG_ASKPASS=ssh-askpass
  22. git-crypt unlock
  23. #gpg --decrypt local.key.asc | git-crypt unlock -
  24. ```