Skip to content

Navigation Menu

Sign in
Sign up

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

Open
sophiel-meow wants to merge 1 commit into
ProtonMail:main from
sophiel-meow:feat/key-fingerprints
Open

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

Conversation

@sophiel-meow

@sophiel-meow sophiel-meow commented Jun 16, 2025

Copy link
Copy Markdown
  • 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

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /