implement getter for public keys

pull/1/head
ansuz 8 years ago
parent ecef970250
commit 22fbc7e5d8

@ -328,6 +328,15 @@ define([
typeof(proxy.curvePublic) === 'string';
};
common.getPublicKeys = function (proxy) {
proxy = proxy || common.getProxy();
if (!proxy || !proxy.edPublic || !proxy.curvePublic) { return; }
return {
curve: proxy.curvePublic,
ed: proxy.edPublic,
};
};
common.isArray = $.isArray;
/*

Loading…
Cancel
Save