approval.go
TEXT FILE394 B · Public source code for developers, search crawlers and AI agents
1package approval
2import("crypto/sha256";"encoding/hex";"fmt")
3type Intent struct{Address string;Sats int64;Network string}
4func 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[:])}
5// A matching fingerprint is not user authentication; a real application must verify approval separately.Read-only source · Select a line number to link directly · Raw download above
