Created
June 30, 2025 20:28
-
-
Save alanshaw/56c7164e76924150083fe58ef92bae61 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"io" | |
"net/http" | |
) | |
func main() { | |
fmt.Println(ResolveDIDKey()) | |
} | |
func ResolveDIDKey() string { | |
res, _ := http.Get("https://indexer.storacha.network/.well-known/did.json") | |
doc, _ := io.ReadAll(res.Body) | |
return string(doc) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment