Closed conanoc closed 10 months ago
So as I understand it, the seed that was used in Indy SDK is actually the private key (encoded to string), and thus to achieve the same result for Askar as that you got for Indy SDK you need to use treat it as a private key.
@andrewwhitehead — can you answer this one?
I've tested with LocalKey::from_secret_bytes(KeyAlg::Ed25519, seed)
and it generates the same key as create_and_store_my_did(<config with the same seed>)
. Thanks @TimoGlastra
I wonder if
LocalKey::from_seed(KeyAlg::Ed25519, seed, None)
andcreate_and_store_my_did(<config with the same seed>)
generate the same key. Askar's LocalKey is usingRandomDet::new(seed)
for rng, but I cannot figure out what Indy SDK is using.