identity

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadLocalMSPAt

func LoadLocalMSPAt(dir, id, mspType string) (msp.MSP, error)

LoadLocalMSPAt loads an MSP whose configuration is stored at 'dir', and whose id and type are the passed as arguments.

Types

type Identity

type Identity interface {
	Serialize() ([]byte, error)
}

Identity refers to the creator of a tx;

type SigningIdentity

type SigningIdentity interface {
	Identity //extends Identity

	Sign(msg []byte) ([]byte, error)
}

SigningIdentity defines the functions necessary to sign an array of bytes; it is needed to sign the commands transmitted to the prover peer service.

func GetSigningIdentity

func GetSigningIdentity(mspConfigPath, mspID, mspType string) (SigningIdentity, error)

GetSigningIdentity retrieves a signing identity from the passed arguments

Jump to

Keyboard shortcuts

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