anza-xyz / wallet-standard

Solana extensions to the Wallet Standard.
Apache License 2.0
79 stars 42 forks source link

More Sign In changes #28

Closed jordaaash closed 1 year ago

jordaaash commented 1 year ago

This PR targets the alpha branch.

jordaaash commented 1 year ago

The effect of this change is to build and parse the following kinds of messages:

No statement, no fields, optional terminating LFs:

solana.com wants you to sign in with your Solana account:
XYZ

Statement, no fields, optional terminating LFs:

solana.com wants you to sign in with your Solana account:
XYZ

This is a statement

Statement, no fields, multiple lines, optional terminating LFs:

solana.com wants you to sign in with your Solana account:
XYZ

This is a statement

It has multiple lines

Statement, multiple lines, fields:

solana.com wants you to sign in with your Solana account:
XYZ

This is a statement

It has multiple lines

URI: foo.com