zcapld

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service to provide zcapld functionality

func New

func New(keyManager kms.KeyManager, crypto cryptoapi.Crypto) *Service

New return zcap service

func (*Service) CreateDIDKey

func (s *Service) CreateDIDKey() (string, error)

CreateDIDKey create did key

func (*Service) SignHeader

func (s *Service) SignHeader(req *http.Request, capabilityBytes []byte,
	verificationMethod string) (*http.Header, error)

SignHeader sign header

Jump to

Keyboard shortcuts

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