implement getter for public keys
This commit is contained in:
parent
ecef970250
commit
22fbc7e5d8
@ -328,6 +328,15 @@ define([
|
|||||||
typeof(proxy.curvePublic) === 'string';
|
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;
|
common.isArray = $.isArray;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user