Paperchain is a blockchain-based distributed application for taking contemporaneous notes that are cryptographically verifiable.
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.

24 lines
451 B

package main
import (
"fmt"
"log"
"paperchain.cc/paperchain/chain"
"paperchain.cc/paperchain/server"
"paperchain.cc/paperchain/utils"
)
func main() {
env := utils.LoadEnv()
genblock, _ := chain.GenesisBlock()
chain.AppendBlock(genblock)
fmt.Println("Serving on " + env["PAPERCHAIN_ADDR"] + ":" + env["PAPERCHAIN_PORT"] + "...")
err := server.Serve(env["PAPERCHAIN_ADDR"], env["PAPERCHAIN_PORT"])
if err != nil {
log.Fatal(err)
}
}