Back to godoc.org

Package identity

v1.0.0-beta2.0...-f34cc66
Latest Go to latest

The latest major version is .

Published: Aug 4, 2020 | License: Apache-2.0 | Module: github.com/hyperledger/fabric-sdk-go

Index

type Serializer

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

Serializer is an interface which wraps the Serialize function.

Serialize converts an identity to bytes. It returns an error on failure.

type Signer

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

Signer is an interface which wraps the Sign method.

Sign signs message bytes and returns the signature or an error on failure.

type SignerSerializer

type SignerSerializer interface {
	Signer
	Serializer
}

SignerSerializer groups the Sign and Serialize methods.

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier