@gleif-it/did-webs-ts
Version:
did-webs typescript library
12 lines (11 loc) • 443 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.createKeyState = void 0;
const Key_js_1 = require("./Key.js");
const Threshold_js_1 = require("./Threshold.js");
const createKeyState = (kt, k) => {
const threshold = (0, Threshold_js_1.createThreshold)(kt);
const keys = k.map((key) => (0, Key_js_1.createKey)(key));
return { kt: threshold, k: keys };
};
exports.createKeyState = createKeyState;