on master help sign in
keys: address PR feedback for `compileMultiKey`

- also, mark legacy implementation as deprecated for future removal

commitfdf8e6e3488fe9763e549d0831c4250c3d1c773e authortomholford <tomholford@users.noreply.github.com> dateWed 15 Dec 2021, 09:21 (5 years ago) parent87fa1a8
2 files changed+5−1
src/lib/keys.js+1−1 src/lib/useKeyfileGenerator.ts+4
src/lib/keys.js+1−1
@@ -234,7 +234,7 @@ export const compileMultikey = (point, pair1, pair2, revision1, revision2) => {
234234 const bnsec1 = new BN(createRing(pair1), 'hex');
235235 const bnsec2 = new BN(createRing(pair2), 'hex');
236236
237− const tag = noun.dwim(noun.Atom.fromString('1'), noun.Atom.yes);
237+ const tag = noun.dwim(noun.Atom.fromInt(1), noun.Atom.yes);
238238 const ship = noun.Atom.fromInt(point);
239239 const key1 = noun.dwim(
240240 noun.Atom.fromInt(revision1),
src/lib/useKeyfileGenerator.ts+4
@@ -28,6 +28,10 @@ interface useKeyfileGeneratorArgs {
2828 point?: number;
2929}
3030
31+/**
32+ * @deprecated
33+ * Use `useMultikeyFileGenerator` instead
34+ */
3135export default function useKeyfileGenerator({
3236 seed,
3337 point,