orion

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Overview

Copyright IBM Corp. All Rights Reserved.

SPDX-License-Identifier: Apache-2.0

Index

Constants

View Source
const (
	Custodian = "orion.custodian"
)
View Source
const (
	Extension = `` /* 4046-byte string literal not displayed */

)

Variables

This section is empty.

Functions

func SetCustodian

func SetCustodian(tms *topology.TMS, custodian string) *topology.TMS

Types

type Entry

type Entry struct {
	TMS     *topology2.TMS
	Wallets map[string]*generators.Wallets
}

type HelperConfig added in v0.4.0

type HelperConfig struct {
	PPInitConfigs []*PPInitConfig `yaml:"ppInits"`
}

func ReadHelperConfig added in v0.4.0

func ReadHelperConfig(path string) (*HelperConfig, error)

func (*HelperConfig) GetByTMSID added in v0.4.0

func (c *HelperConfig) GetByTMSID(tmsID token.TMSID) *PPInitConfig

type NetworkHandler

type NetworkHandler struct {
	common2.NetworkHandler
	Entries map[string]*Entry
}

func NewNetworkHandler

func NewNetworkHandler(tokenPlatform common2.TokenPlatform, builder api2.Builder) *NetworkHandler

func (*NetworkHandler) AddInitConfig added in v0.4.0

func (p *NetworkHandler) AddInitConfig(tms *topology2.TMS) error

func (*NetworkHandler) Cleanup added in v0.3.0

func (p *NetworkHandler) Cleanup()

func (*NetworkHandler) GenIssuerCryptoMaterial

func (p *NetworkHandler) GenIssuerCryptoMaterial(tms *topology2.TMS, nodeID string, walletID string) string

func (*NetworkHandler) GenOwnerCryptoMaterial added in v0.2.0

func (p *NetworkHandler) GenOwnerCryptoMaterial(tms *topology2.TMS, nodeID string, walletID string, useCAIfAvailable bool) (res token.IdentityConfiguration)

func (*NetworkHandler) GenerateArtifacts

func (p *NetworkHandler) GenerateArtifacts(tms *topology2.TMS)

func (*NetworkHandler) GenerateCryptoMaterial

func (p *NetworkHandler) GenerateCryptoMaterial(cmGenerator generators.CryptoMaterialGenerator, tms *topology2.TMS, node *sfcnode.Node)

func (*NetworkHandler) GenerateExtension

func (p *NetworkHandler) GenerateExtension(tms *topology2.TMS, node *sfcnode.Node, uniqueName string) string

func (*NetworkHandler) GetEntry

func (p *NetworkHandler) GetEntry(tms *topology2.TMS) *Entry

func (*NetworkHandler) PostRun

func (p *NetworkHandler) PostRun(load bool, tms *topology2.TMS)

func (*NetworkHandler) SetCryptoMaterialGenerator

func (p *NetworkHandler) SetCryptoMaterialGenerator(driver string, generator generators.CryptoMaterialGenerator)

func (*NetworkHandler) UpdatePublicParams added in v0.4.0

func (p *NetworkHandler) UpdatePublicParams(tms *topology2.TMS, ppRaw []byte)

type PPInitConfig added in v0.4.0

type PPInitConfig struct {
	TMSID                   token.TMSID `yaml:"tmsID"`
	PPPath                  string      `yaml:"ppPath"`
	CustodianID             string      `yaml:"custodianId"`
	CustodianCertPath       string      `yaml:"custodianCertPath"`
	CustodianPrivateKeyPath string      `yaml:"custodianPrivateKeyPath"`
	CACertPath              string      `yaml:"caCertPath"`
	ServerID                string      `yaml:"serverId"`
	ServerUrl               string      `yaml:"serverUrl"`
}

func (*PPInitConfig) Init added in v0.4.0

func (p *PPInitConfig) Init() error

type RWSWrapper

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

func (*RWSWrapper) Bytes

func (r *RWSWrapper) Bytes() ([]byte, error)

func (*RWSWrapper) DeleteState

func (r *RWSWrapper) DeleteState(namespace string, key string) error

func (*RWSWrapper) Done

func (r *RWSWrapper) Done()

func (*RWSWrapper) Equals

func (r *RWSWrapper) Equals(right interface{}, namespace string) error

func (*RWSWrapper) GetState

func (r *RWSWrapper) GetState(namespace string, key string) ([]byte, error)

func (*RWSWrapper) SetState

func (r *RWSWrapper) SetState(namespace string, key string, value []byte) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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