MCPcopy
hub / github.com/perkeep/perkeep / fingerprintString

Function fingerprintString

pkg/jsonsign/keys.go:53–55  ·  view source on GitHub ↗

fingerprintString returns the fingerprint (40 characters) capital hex GPG key ID of the provided public key.

(pubKey *packet.PublicKey)

Source from the content-addressed store, hash-verified

51// fingerprintString returns the fingerprint (40 characters) capital hex GPG
52// key ID of the provided public key.
53func fingerprintString(pubKey *packet.PublicKey) string {
54 return fmt.Sprintf("%X", pubKey.Fingerprint)
55}
56
57func openArmoredPublicKeyFile(reader io.ReadCloser) (*packet.PublicKey, error) {
58 defer reader.Close()

Callers 3

FetchEntityMethod · 0.85
SignMethod · 0.85
ParseArmoredPublicKeyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected