MCPcopy
hub / github.com/perkeep/perkeep / NewEntity

Function NewEntity

pkg/jsonsign/keys.go:144–149  ·  view source on GitHub ↗

NewEntity returns a new OpenPGP entity.

()

Source from the content-addressed store, hash-verified

142
143// NewEntity returns a new OpenPGP entity.
144func NewEntity() (*openpgp.Entity, error) {
145 name := "" // intentionally empty
146 comment := "camlistore"
147 email := "" // intentionally empty
148 return openpgp.NewEntity(name, comment, email, nil)
149}
150
151func WriteKeyRing(w io.Writer, el openpgp.EntityList) error {
152 armoredWriter, err := armor.Encode(w, openpgp.PrivateKeyType, nil)

Callers 5

newSignerFunction · 0.92
newSignerFunction · 0.92
TestSignerFunction · 0.92
TestClaimDateFunction · 0.92
GenerateNewSecRingFunction · 0.85

Calls

no outgoing calls

Tested by 4

newSignerFunction · 0.74
newSignerFunction · 0.74
TestSignerFunction · 0.74
TestClaimDateFunction · 0.74