Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
CryptoClientPicker func() CryptoClient
)
Functions ¶
func GenKeyPair ¶
func InitCryptoClient ¶
func RegisterCryptoClient ¶
func RegisterCryptoClient(fn func() CryptoClient)
RegisterCryptoClient registers a crypto client initialization function.
Types ¶
type CryptoClient ¶
type DefaultCryptoClient ¶
type DefaultCryptoClient struct { SK *ecdsa.PrivateKey PK *ecdsa.PublicKey }
DefaultCryptoClient is a simple crypto client uses NIST P256.
Click to show internal directories.
Click to hide internal directories.