proof

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateProof

func ValidateProof(proof *Proof, publicBase58 string) error

ValidateProof validates proof. @param proof: proof @param public_base58: public key base 58 used to create the proof

Types

type Proof

type Proof struct {
	IssuerDid  string
	IssuerName string
	Content    []byte
	Signature  string
}

Proof struct

func NewProof

func NewProof(privateKey *ecdsa.PrivateKey, issuerDid string, issuerName string, content []byte) (*Proof, error)

NewProof builds a proof.

Jump to

Keyboard shortcuts

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