gopenpgp icon indicating copy to clipboard operation
gopenpgp copied to clipboard

feat: add GetFingerprints & GetJsonFingerprints for primary and sub keys

Open Jun-Amane opened this issue 5 months ago • 0 comments
trafficstars

  • 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).

Jun-Amane avatar Jun 16 '25 03:06 Jun-Amane