MCPcopy Create free account
hub / github.com/belak/gitdir / PrivateKey

Interface PrivateKey

models/private_key.go:17–21  ·  view source on GitHub ↗

PrivateKey is a wrapper to make dealing with private keys easier to deal with.

Source from the content-addressed store, hash-verified

15// PrivateKey is a wrapper to make dealing with private keys easier to deal
16// with.
17type PrivateKey interface {
18 crypto.Signer
19
20 MarshalPrivateKey() ([]byte, error)
21}
22
23type ed25519PrivateKey struct {
24 ed25519.PrivateKey

Callers 2

ensureAdminEd25519KeyMethod · 0.65
ensureAdminRSAKeyMethod · 0.65

Implementers 2

ed25519PrivateKeymodels/private_key.go
rsaPrivateKeymodels/private_key.go

Calls

no outgoing calls

Tested by

no test coverage detected