builder

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2021 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(payload *subject.Payload) (*verifiable.Credential, error)

Build will create and sign anchor credential.

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