Skip to content

feat: add GetFingerprints & GetJsonFingerprints for primary and sub keys#345

Open
sophiel-meow wants to merge 1 commit intoProtonMail:mainfrom
sophiel-meow:feat/key-fingerprints
Open

feat: add GetFingerprints & GetJsonFingerprints for primary and sub keys#345
sophiel-meow wants to merge 1 commit intoProtonMail:mainfrom
sophiel-meow:feat/key-fingerprints

Conversation

@sophiel-meow
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

1 participant