Documentation ¶
Index ¶
- func DigestFile(filename string) (string, error)
- func GenCertPair(org, certFile, keyFile string) error
- func RespondWithCopy(w http.ResponseWriter, code int, contentType string, body []byte) error
- func RespondWithError(w http.ResponseWriter, code int, message string)
- func RespondWithJSON(w http.ResponseWriter, code int, payload interface{})
- func VerifyAnchor(url, tx string, mr []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DigestFile ¶
DigestFile returns the SHA256 of a file.
func GenCertPair ¶
GenCertPair generates a key/cert pair to the paths provided.
func RespondWithCopy ¶
func RespondWithError ¶
func RespondWithError(w http.ResponseWriter, code int, message string)
func RespondWithJSON ¶
func RespondWithJSON(w http.ResponseWriter, code int, payload interface{})
func VerifyAnchor ¶
VerifyAnchor verifies proof of existence of the supplied merkle root on the blockchain.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.