Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Convert2StdPrivateKey ¶
func Convert2StdPrivateKey(privKey crypto.PrivateKey) crypto2.PrivateKey
func GenerateKey ¶
func GenerateKey(opt AlgorithmOption) (crypto.PrivateKey, error)
Types ¶
type AlgorithmOption ¶
type AlgorithmOption int
const ( // RSA is an enum for the supported RSA key type RSA AlgorithmOption = iota // ECDSASecp256k1 is an enum for the supported ECDSA key type ECDSASecp256k1 // ECDSASecp256r1 is an enum for the supported ECDSA key type ECDSASecp256r1 // Ed25519 is an enum for the supported Ed25519 key type Ed25519 )
Click to show internal directories.
Click to hide internal directories.