pkg

package
v0.0.0-...-7f85523 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(src interface{}, dst interface{}) error

Copy makes a 1-1 copy of src into dst.

func GenerateEd25519Key

func GenerateEd25519Key() (ed25519.PublicKey, ed25519.PrivateKey, error)

func ToJSON

func ToJSON(i interface{}) (string, error)

Types

type Proof

type Proof struct {
	Type               string `json:"type"`
	Created            string `json:"created"`
	VerificationMethod string `json:"verificationMethod"`
	Challenge          string `json:"challenge,omitempty"`
	SignatureValue     string `json:"signatureValue,omitempty"`
}

type Tweet

type Tweet struct {
	Tweet string `json:"tweet"`
	Proof Proof  `json:"proof"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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