Documentation ¶
Index ¶
- func GetKey(cmd *cobra.Command, ...) (interface{}, error)
- func GetServices(serviceFilePath string) ([]docdid.Service, error)
- func GetVDRPublicKeysFromFile(publicKeyFilePath string) (*docdid.Doc, error)
- func ParsePrivateKey(der []byte) (crypto.PrivateKey, error)
- func PrivateKeyFromFile(file string, password []byte) (crypto.PrivateKey, error)
- func PrivateKeyFromPEM(privateKeyPEM, password []byte) (crypto.PrivateKey, error)
- func PublicKeyFromFile(file string) (crypto.PublicKey, error)
- func PublicKeyFromPEM(pubKeyPEM []byte) (crypto.PublicKey, error)
- type PublicKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetKey ¶
func GetKey(cmd *cobra.Command, keyFlagName, keyEnvKey, keyFileFlagName, keyFileEnvKey string, password []byte, privateKey bool) (interface{}, error)
GetKey get key
func GetServices ¶
GetServices get services
func GetVDRPublicKeysFromFile ¶
GetVDRPublicKeysFromFile get public keys from file
func ParsePrivateKey ¶
func ParsePrivateKey(der []byte) (crypto.PrivateKey, error)
ParsePrivateKey parse private key
func PrivateKeyFromFile ¶
func PrivateKeyFromFile(file string, password []byte) (crypto.PrivateKey, error)
PrivateKeyFromFile private key from file
func PrivateKeyFromPEM ¶
func PrivateKeyFromPEM(privateKeyPEM, password []byte) (crypto.PrivateKey, error)
PrivateKeyFromPEM private key pem
func PublicKeyFromFile ¶
PublicKeyFromFile public key from file
Types ¶
Click to show internal directories.
Click to hide internal directories.