UNPKG

@gleif-it/did-webs-ts

Version:
12 lines (11 loc) 443 B
"use strict"; 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;