You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some feature requests that I thought of while trying to build an app that must pass a message and the same message signed by a wallet to a predicate. Repo here: https://github.com/Dhaiwat10/fuel-session-keys-demo
The code looks like this right now:
constmessageToSign=Uint8Array.from([
...toUtf8Bytes("gFUEL"),
...newUint8Array(27),]);// @ts-expect-error signMessage does not accept Uint8Array in the type definitionconstsignedMessage=awaitwalletA.signMessage(messageToSign);constmessageHash=sha256(Buffer.from(messageToSign));constpredicateData: TestPredicateInputs=[signedMessage,messageHash];
Some feature requests that I thought of while trying to build an app that must pass a message and the same message signed by a wallet to a predicate. Repo here: https://github.com/Dhaiwat10/fuel-session-keys-demo
It needs to be as simple as this:
Passing in signed messages + messages to a predicate is a very common use for predicates, so this should be documented in the cookbook.
Helpers
B256.from('xyz')
andB512.from('xyz')
The text was updated successfully, but these errors were encountered: