sui

package
v0.2.9 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ADDRESS_LENGTH = 64
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SuiProcessor

type SuiProcessor struct{}

func NewSuiProcessor

func NewSuiProcessor() *SuiProcessor

func (SuiProcessor) GetCredentialJsons

func (s SuiProcessor) GetCredentialJsons(presentation string) ([]string, error)

func (SuiProcessor) Sign

func (s SuiProcessor) Sign(did string, index int, msg []byte) ([]byte, error)

func (SuiProcessor) VerifyCredential

func (s SuiProcessor) VerifyCredential(credential string, trustedDIDs []string) error

func (SuiProcessor) VerifyPresentation

func (s SuiProcessor) VerifyPresentation(presentation string, requiredTypes []*modules.VCFilter) error

func (SuiProcessor) VerifySig

func (s SuiProcessor) VerifySig(did string, index int, msg []byte, sig []byte, pubkeyBytes []byte) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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