Skip to content

Conversation

Jun-Amane
Copy link

  • GetFingerprints() []string
    Returns SHA-1 fingerprints of primary key and all subkeys.

  • GetJsonFingerprints() (string, error)
    Same data, JSON-encoded for gomobile bind where slice-of-string
    is not always stable across language bindings.

This allows apps to list every fingerprint including subkeys
without re-implementing the walk logic outside the library.

Unit test included (crypto/key_test.go).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant