From 6011f0740ab25c4008cdebdd2ef7b4116812b500 Mon Sep 17 00:00:00 2001 From: Steve Moyer Date: Mon, 21 Oct 2024 11:03:43 -0400 Subject: [PATCH] fix(did): finish the GenerateECDSAWithCurve function --- did/crypto.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/did/crypto.go b/did/crypto.go index 4546a52..8eed59a 100644 --- a/did/crypto.go +++ b/did/crypto.go @@ -79,11 +79,9 @@ func GenerateECDSAWithCurve(code multicodec.Code) (crypto.PrivKey, DID, error) { return nil, Undef, err } - _ = priv - _ = pub - - return nil, Undef, nil // TODO + did, err := FromPubKey(pub) + return priv, did, err } // FromPrivKey is a convenience function that returns the DID associated