You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current guesses are it's the seed being generated causing an invalid key,
or we just generate an invalid key,
or we create a bad did from a key
I've managed to reproduce with the following code
import { describe, it } from 'vitest';
import { Curve, KeyTypes } from "../../src/domain";
import Castor from "../../src/castor/Castor";
import Apollo from "../../src/apollo/Apollo";
describe("unknown bug", () => {
// 500 seems to be the sweet spot for bug occurrence
for (let loop = 0; loop < 500; loop++) {
it("minimal repro", async () => {
const apollo = new Apollo();
const castor = new Castor(apollo);
const seed = apollo.createRandomSeed().seed;
const key = apollo.createPrivateKey({
type: KeyTypes.EC,
curve: Curve.SECP256K1,
seed: Buffer.from(seed.value).toString("hex"),
});
const did = await castor.createPrismDID(key.publicKey());
await castor.resolveDID(did.toString());
});
}
});
The text was updated successfully, but these errors were encountered:
Is this a regression?
Yes
Description
CI has highlighted an intermittently occurring bug.
Examples:
https://github.com/hyperledger/identus-edge-agent-sdk-ts/actions/runs/12300926616/job/34330763881#step:9:841
https://github.com/hyperledger/identus-edge-agent-sdk-ts/actions/runs/12315609102/job/34374173505#step:9:841
Current guesses are it's the seed being generated causing an invalid key,
or we just generate an invalid key,
or we create a bad did from a key
I've managed to reproduce with the following code
The text was updated successfully, but these errors were encountered: