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