certificate

package
v0.0.0-...-9c069ec Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Certificate

type Certificate struct {
	Domain    string         `json:"domain"`
	Payload   Payload        `json:"payload"`
	Purpose   string         `json:"purpose"`
	Signer    string         `json:"signer"`
	Timestamp int64          `json:"timestamp"`
	Signature *hexutil.Bytes `json:"signature,omitempty"`
}

func (*Certificate) Encode

func (c *Certificate) Encode() ([]byte, error)

func (*Certificate) SigningHash

func (c *Certificate) SigningHash() (common.Hash, error)

func (*Certificate) Verify

func (c *Certificate) Verify() bool

type Payload

type Payload struct {
	Content string `json:"content"`
	Type    string `json:"type"`
}

Jump to

Keyboard shortcuts

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