TBD54566975 / web5-go

Apache License 2.0
10 stars 6 forks source link

Add DHT method resolve support #3

Closed mihai-chiorean closed 7 months ago

mihai-chiorean commented 7 months ago

Summary

Implements the resolve functionality of the DHT DID method spec.

Usage

package main

import (
          ...
    "github.com/tbd545669675/web5-go/dids", 
)

func main() {
    result, err := dids.ResolveDIDDHT("did:dht:cwxob5rbhhu3z9x3gfqy6cthqgm6ngrh4k8s615n7pw11czoq4fy", "https://diddht.tbddev.org",  http.DefaultClient)

}