Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CryptoImpl ¶
type CryptoImpl struct { Creator []byte PrivKey *ecdsa.PrivateKey SignCert *x509.Certificate }
func (CryptoImpl) Serialize ¶
func (s CryptoImpl) Serialize() ([]byte, error)
type ECDSASignature ¶
type Serializer ¶
Serializer is an interface which wraps the Serialize function.
Serialize converts an identity to bytes. It returns an error on failure.
type Signer ¶
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.
Click to show internal directories.
Click to hide internal directories.