Skip to content

Commit

Permalink
chore(zetaclient): mask compliance addresses (#3216)
Browse files Browse the repository at this point in the history
* chore(zetaclient): mask compliance addresses

* register masker
  • Loading branch information
gartnera authored Nov 26, 2024
1 parent ed2352f commit f23fd40
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion zetaclient/config/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ type TONConfig struct {
// ComplianceConfig is the config for compliance
type ComplianceConfig struct {
LogPath string `json:"LogPath"`
RestrictedAddresses []string `json:"RestrictedAddresses"`
RestrictedAddresses []string `json:"RestrictedAddresses" mask:"zero"`
}

// Config is the config for ZetaClient
Expand Down Expand Up @@ -167,6 +167,7 @@ func (c Config) StringMasked() string {
// create a masker
masker := mask.NewMasker()
masker.RegisterMaskStringFunc(mask.MaskTypeFilled, masker.MaskFilledString)
masker.RegisterMaskAnyFunc(mask.MaskTypeFilled, masker.MaskZero)

// mask the config
masked, err := masker.Mask(c)
Expand Down

0 comments on commit f23fd40

Please sign in to comment.