identity

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2023 License: Apache-2.0 Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Identity

type Identity interface {
	MspID() string       // ID of the Membership Service Provider to which this identity belongs.
	Credentials() []byte // Implementation-specific credentials.
}

Identity used to interact with a Fabric network.

type Signer

type Signer interface {
	Sign(message []byte) ([]byte, error)
}

Signer can sign messages using an identity's private credentials.

type SigningIdentity

type SigningIdentity interface {
	Identity
	Signer
}

SigningIdentity represents an identity that is able to sign messages.

func NewPrivateKeySigningIdentity

func NewPrivateKeySigningIdentity(mspID string, certificate *x509.Certificate, privateKey crypto.PrivateKey) (SigningIdentity, error)

Jump to

Keyboard shortcuts

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