MCPcopy Index your code
hub / github.com/mailvelope/mailvelope / getKeyBinding

Function getKeyBinding

src/modules/keyBinding.js:47–53  ·  view source on GitHub ↗
(keyring, email)

Source from the content-addressed store, hash-verified

45}
46
47export async function getKeyBinding(keyring, email) {
48 const keyBindingMap = await getKeyringAttr(keyring.id, KEY_BINDING) || {};
49 const keyBinding = keyBindingMap[email];
50 if (keyBinding) {
51 return keyBinding.fingerprint;
52 }
53}
54
55export async function isKeyBound(keyring, email, key) {
56 const fpr = await getKeyBinding(keyring, email);

Callers 2

getKeyByAddressFunction · 0.90
isKeyBoundFunction · 0.85

Calls 1

getKeyringAttrFunction · 0.90

Tested by

no test coverage detected