Skip to content

Instantly share code, notes, and snippets.

@alanshaw
Created June 30, 2025 20:28
Show Gist options
  • Save alanshaw/56c7164e76924150083fe58ef92bae61 to your computer and use it in GitHub Desktop.
Save alanshaw/56c7164e76924150083fe58ef92bae61 to your computer and use it in GitHub Desktop.
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