package approval import("crypto/sha256";"encoding/hex";"fmt") type Intent struct{Address string;Sats int64;Network string} func Fingerprint(i Intent)string{sum:=sha256.Sum256([]byte(fmt.Sprintf("%d:%s:%d:%s",len(i.Address),i.Address,i.Sats,i.Network)));return hex.EncodeToString(sum[:])} // A matching fingerprint is not user authentication; a real application must verify approval separately.