# Packages
No description provided by the author
# Functions
CertificatesWithSamePublicKey returns nil if both byte slices are valid DER encoding of certificates with the same public key.
ExpiresAt returns when the given identity expires, or a zero time.Time in case we cannot determine that.
GetRandomBytes returns len random looking bytes.
GetRandomNonce returns a random byte array of length NonceSize.
LogNonPubKeyMismatchErr logs an error which is not an ErrPubKeyMismatch error.
NewSignatureHeaderCreator creates new signature headers.
TrackExpiration warns a week before one of the certificates expires.
# Constants
NonceSize is the default NonceSize.
# Variables
ErrPubKeyMismatch is used by CertificatesWithSamePublicKey to indicate the two public keys mismatch.
# Structs
SignatureHeaderCreator creates signature headers.
# Interfaces
IdentitySerializer serializes identities.
LocalSigner is a temporary stub interface which will be implemented by the local MSP.
SignatureHeaderMaker creates a new SignatureHeader.
Signer signs messages.
SignerSupport implements the needed support for LocalSigner.
# Type aliases
MessageFunc notifies a message happened with the given format, and can be replaced with Warnf or Infof of a logger.
Scheduler invokes f after d time, and can be replaced with time.AfterFunc.