publicKeyKidOfBase64 function

String publicKeyKidOfBase64(
  1. String pub
)

publicKeyKid for a key held as base64, which is how every advertisement carries one. Decoding here rather than at each call site is what keeps the preimage the material rather than the encoding.

Implementation

String publicKeyKidOfBase64(String pub) => publicKeyKid(base64Decode(pub));