Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadCertificate ¶ added in v0.0.1
func ReadCertificate(f string) (*x509.Certificate, error)
func ReadPrivateKey ¶ added in v0.1.0
func ReadPrivateKey(f string) (crypto.PrivateKey, error)
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 SigningIdentity ¶
SigningIdentity represents an identity that is able to sign messages.
func NewPrivateKeySigningIdentity ¶
func NewPrivateKeySigningIdentity(mspID string, certificate *x509.Certificate, privateKey crypto.PrivateKey) (SigningIdentity, error)
Click to show internal directories.
Click to hide internal directories.