Receive identity struct

This commit is contained in:
lash
2025-01-13 17:47:03 +00:00
parent b55686e830
commit 6afccefd1f

View File

@@ -6,6 +6,14 @@ import (
"git.grassecon.net/grassrootseconomics/common/phone"
)
// Identity contains all flavors of identifiers used across stream, api and
// client for a single agent.
type Identity struct {
NormalAddress string
ChecksumAddress string
SessionId string
}
// CheckRecipient validates the recipient format based on the criteria
func CheckRecipient(recipient string) (string, error) {
if phone.IsValidPhoneNumber(recipient) {