builder

package
v1.0.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2022 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

Builder implements building of anchor credential.

func New

func New(params Params) (*Builder, error)

New returns new instance of anchor credential builder.

func (*Builder) Build

func (b *Builder) Build(profile *url.URL, anchorHashlink, coreIndexHashlink string,
	context []string) (*verifiable.Credential, error)

Build will create and sign anchor credential.

type CredentialSubject added in v1.0.0

type CredentialSubject struct {
	HRef    string   `json:"href"`
	Profile string   `json:"profile"`
	Anchor  string   `json:"anchor"`
	Type    []string `json:"type"`
	Rel     string   `json:"rel"`
}

CredentialSubject contains the verifiable credential subject.

type Params

type Params struct {
	Issuer string
	URL    string
}

Params holds required parameters for building anchor credential.

Jump to

Keyboard shortcuts

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