This commit is contained in:
lash
2025-01-21 15:59:44 +00:00
parent ba8cbbccea
commit 9fbae0471f
5 changed files with 9 additions and 9 deletions

View File

@@ -3,6 +3,7 @@ package identity
import (
"regexp"
)
// Define the regex patterns as constants
const (
addressRegex = `^0x[a-fA-F0-9]{40}$`

View File

@@ -9,9 +9,9 @@ import (
// Identity contains all flavors of identifiers used across stream, api and
// client for a single agent.
type Identity struct {
NormalAddress string
NormalAddress string
ChecksumAddress string
SessionId string
SessionId string
}
// CheckRecipient validates the recipient format based on the criteria