eth

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2024 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ETHVerifySig

func ETHVerifySig(from string, sig []byte, msg []byte) bool

func EthSignHash

func EthSignHash(data []byte) []byte

Types

type EthProcessor

type EthProcessor struct {
}

func NewEthProcessor

func NewEthProcessor() *EthProcessor

func (EthProcessor) GetCredentialJsons

func (e EthProcessor) GetCredentialJsons(presentation string) ([]string, error)

func (EthProcessor) Sign

func (e EthProcessor) Sign(did string, index int, msg []byte) ([]byte, error)

func (EthProcessor) VerifyCredential

func (e EthProcessor) VerifyCredential(credential string, trustedDIDs []string) error

func (EthProcessor) VerifyPresentation

func (e EthProcessor) VerifyPresentation(presentation string, requiredTypes []*modules.VCFilter) error

func (EthProcessor) VerifySig

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

Jump to

Keyboard shortcuts

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