packagemanager

package
v0.0.0-...-ddc7cff Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2025 License: Apache-2.0, MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPackageManager

func NewPackageManager(
	supportedRPC map[string]string,
	supportedStateContracts map[string]string,
	opts ...Option,
) (*iden3comm.PackageManager, error)

Types

type CustomDIDMethods

type CustomDIDMethods struct {
	Blockchain  string `tip:"Identity blockchain for custom network"`
	Network     string `tip:"Identity network for custom network"`
	NetworkFlag byte   `tip:"Identity network flag for custom network"`
	ChainID     int    `tip:"Chain id for custom network"`
}

CustomDIDMethods struct Example: SUPPORTED_CUSTOM_DID_METHODS='[{"blockchain":"linea","network":"testnet","networkFlag":"0b01000001","chainID":59140}]'

func (*CustomDIDMethods) UnmarshalJSON

func (cn *CustomDIDMethods) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the Unmarshal interface for CustomDIDMethods

type Option

type Option func(*Options)

func WithCustomDIDMethods

func WithCustomDIDMethods(jsonStr string) Option

func WithGlobalStateValidDuration

func WithGlobalStateValidDuration(duration time.Duration) Option

func WithVerificationKeyPath

func WithVerificationKeyPath(path string) Option

type Options

type Options struct {
	VerificationKeyPath      string
	GlobalStateValidDuration time.Duration
	CustomDIDMethods         []CustomDIDMethods `mapstructure:"-"`
}

Jump to

Keyboard shortcuts

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