sealcheck

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2022 License: MIT Imports: 10 Imported by: 0

README

sealcheck

CLI utility for checking Planet seal proofs. Documentation

Seal is a mechanism for cryptographically proving that a note is created before a specific time.

Seal works by periodically rolling up Planet's event log into a Merkle tree and submitting the root of the tree to the Certificate Transparency public ledger by requesting a certificate for the domain name [root-hash].production.planet-seal.net. Once the proof for a note is generated, you can download it through the "Seal" entry in the note menu.

Usage

$ ./sealcheck validate ./seal_proof.json
SealCheck: ./seal_proof.json
Validation OK. Certificate issued at 2022-06-01 01:12:23 +0000 UTC.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SealCheck

type SealCheck struct {
	Certificate *x509.Certificate
}

func NewSealCheck

func NewSealCheck() *SealCheck

func (*SealCheck) ValidateJson

func (s *SealCheck) ValidateJson(rawProof []byte) error

type SealProof

type SealProof struct {
	LogValue string   `json:"logValue"`
	RootHash string   `json:"rootHash"`
	Domain   string   `json:"domain"`
	Proof    []string `json:"proof"`
}

Directories

Path Synopsis
cmd
sealcheck command

Jump to

Keyboard shortcuts

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