flow
flow copied to clipboard
Domain tags
The docs don't include domain tags anywhere, especially the page: Documentation page: https://docs.onflow.org/concepts/accounts-and-keys/ should probably be updated to include them. It would be nice for domain tags to be explained separately and also how the payload is composed with them.
what're domain tags?
Domain tags is data that gets prefixed to the payload used for signing in order to prevent some malicious behaviour like giving a user to sign some data that is actually a transaction.
To Kerry: Tarak has most context on this. Would recommend book a interview session with him to collect more details so that we can explain this in the Flow doc site
As an example see: https://github.com/onflow/fcl-js/blob/master/packages/sdk/src/encode/encode.js#L15
related issue: https://github.com/onflow/flow/issues/27