PGP Server
PGP Server application based on Ethereum address identity.
Getting Started
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Prerequisites
Installing
Use go to clone the project
go get git.proxeus.com/web/pgp_service
Running the tests
There are unit tests at test package. To run it:
cd test
go test
Run the server
To run the server:
go run main.go
Some flags can also be passed to the previous comand. To see a list of possible flags and a description:
go run main.go -h
Available flags
Available flags are:
- storageDir - to change the directory and name of the database (default is the current directory with 'database' name)
- serverAddress - to change the host and port where the server will run (default is ':8080')
- contractAddress - ProxeusFS contract address (default is current directory)
Example: to change databaseName to 'anotherName':
go run main.go -storageDir=anotherName
How to use
To add a public key:
Open the file test.html (test purpose only) in a browser. There there is two options:
Note: In order to facilitate the test an identity was already added at the html form. The public key for the corresponding identity was already added to the database.
Built With
- Bolt - An embedded key/value database for Go
- Echo - High performance, minimalist Go web framework