(no commit message provided)

This commit is contained in:
Prad Nukala authored and Prad Nukala (aider) committed 2024-07-06 00:34:41 -04:00
1 parent 5fd43dfd6b
commit 2f976209db
345 files changed
+409 -72177

No files matched your search

-16
View File
@@ -1,21 +1,5 @@
package did
import (
"fmt"
"github.com/onsonr/hway/internal/orm"
)
// Format.Credential formats a credential as a DID
func (f formatter) Credential(c *orm.Credential) string {
return fmt.Sprintf("did:web:%s@%s#%s", c.DisplayName, c.Origin, c.ID)
}
// Format.Wallet formats a wallet as a DID
func (f formatter) Wallet(w *orm.Wallet) string {
return fmt.Sprintf("did:sonr:%s", w.Address)
}
// Format is the formatter to use for DIDs
var Format = formatter{}