Documentation ¶
Index ¶
- type Key
- func Download(ctx context.Context, network netconf.ID, name string, typ Type, addr string) (Key, error)
- func FromBytes(typ Type, b []byte) (Key, error)
- func Generate(typ Type) Key
- func GenerateInsecureDeterministic(network netconf.ID, typ Type, seed string) Key
- func UploadNew(ctx context.Context, cfg UploadConfig) (Key, error)
- type Type
- type UploadConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Key ¶
Key wraps a cometBFT private key adding custom a address function.
func Download ¶
func Download(ctx context.Context, network netconf.ID, name string, typ Type, addr string) (Key, error)
Download retrieves a key from the gcp secret manager.
func Generate ¶
Generate generates a cryptographic key of the specified type. It panics since it assumes that the type is valid.
func GenerateInsecureDeterministic ¶
GenerateInsecureDeterministic generates an insecure deterministic key of the specified type from the provided seed. NOTE THIS MUST ONLY BE USED FOR TESTING: It panics if network is not ephemeral.
func UploadNew ¶
func UploadNew(ctx context.Context, cfg UploadConfig) (Key, error)
UploadNew generates a new key and uploads it to the gcp secret manager.
Click to show internal directories.
Click to hide internal directories.