builder

package
v1.0.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2022 License: Apache-2.0 Imports: 6 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(anchorHashlink string, context []string) (*verifiable.Credential, error)

Build will create and sign anchor credential.

type CredentialSubject added in v1.0.0

type CredentialSubject struct {
	ID string `json:"id"`
}

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