on master help sign in
keys: address PR feedback for `compileMultiKey`
fdf8e6etomholford
src/lib/keys.js+1−1
@@ -234,7 +234,7 @@ export const compileMultikey = (point, pair1, pair2, revision1, revision2) => {
234 const bnsec1 = new BN(createRing(pair1), 'hex');
234 const bnsec1 = new BN(createRing(pair1), 'hex');
235 const bnsec2 = new BN(createRing(pair2), 'hex');
235 const bnsec2 = new BN(createRing(pair2), 'hex');
236
236
237− const tag = noun.dwim(noun.Atom.fromString('1'), noun.Atom.yes);
237+ const tag = noun.dwim(noun.Atom.fromInt(1), noun.Atom.yes);
238 const ship = noun.Atom.fromInt(point);
238 const ship = noun.Atom.fromInt(point);
239 const key1 = noun.dwim(
239 const key1 = noun.dwim(
240 noun.Atom.fromInt(revision1),
240 noun.Atom.fromInt(revision1),
src/lib/useKeyfileGenerator.ts+4
@@ -28,6 +28,10 @@ interface useKeyfileGeneratorArgs {
28 point?: number;
28 point?: number;
29}
29}
30
30
31+/**
32+ * @deprecated
33+ * Use `useMultikeyFileGenerator` instead
34+ */
31export default function useKeyfileGenerator({
35export default function useKeyfileGenerator({
32 seed,
36 seed,
33 point,
37 point,