WordOfWisdom

module
v0.0.0-...-2f6ec98 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 27, 2022 License: MIT

README

WordOfWisdom

Linux

The code has been tested only on Ubuntu 18.04

Requirements

Client mode local allows you to type commands to request quotes from the server, where docker mode sends one quote and that's it. If you start the application without docker you can specify CLIENT_MODE

export CLIENT_MODE=local

OR

export CLIENT_MODE=docker

Run in docker

  1. make build-docker
  2. make run-on-docker

Testing

  1. Run all tests:

    make test-with-component

  2. Run only unit tests:

    make test

Other Makefile commands

  1. make start-server
  2. make start-client

PoW

I choose to work with CPU-bound function - hashcash. I could find most documentation about this pow scheme and it was perfect for the task requirements.

Directories

Path Synopsis
cmd
internal
repository
Used to track random generated numbers used in hashcash.Stamps to prevent replay attacks
Used to track random generated numbers used in hashcash.Stamps to prevent replay attacks
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL