Integrate obfuscation package

This commit is contained in:
9seconds
2026-02-23 10:12:25 +01:00
parent d0065d35c2
commit 140e9dfc2e
2 changed files with 36 additions and 29 deletions
+10 -3
View File
@@ -1,10 +1,17 @@
package dc
import (
"fmt"
"github.com/9seconds/mtg/v2/mtglib/internal/obfuscation"
)
type Addr struct {
Network string
Address string
Network string
Address string
Obfuscator obfuscation.Obfuscator
}
func (d Addr) String() string {
return d.Address
return fmt.Sprintf("addr=%s, secret=%v", d.Address, d.Obfuscator.Secret)
}