From 6afccefd1f05b49061d3a66eca0f127577b68517 Mon Sep 17 00:00:00 2001 From: lash Date: Mon, 13 Jan 2025 17:47:03 +0000 Subject: [PATCH] Receive identity struct --- identity/identity.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/identity/identity.go b/identity/identity.go index eac61aa..87c7702 100644 --- a/identity/identity.go +++ b/identity/identity.go @@ -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) {