Open SpaceManiac opened 2 months ago
Draft pending #389.
mina-delegation
DelegationOrder
DelegationCommand
MinaDelegationCache
@paima-sdk/providers
gameName
IProvider.signMessage
Uint8Array
string
IProvider
personal_sign
TODO:
mina-delgation
mina-contracts
Demo at https://github.com/PaimaStudios/paima-game-templates/pull/81.
Draft pending #389.
mina-delegation
package to deal with usability issues.DelegationOrder
toDelegationCommand
.MinaDelegationCache
to@paima-sdk/providers
.gameName
, this uses localStorage + a background worker to generate and cache a DelegationCommand proof.IProvider.signMessage
implementations acceptUint8Array
in addition tostring
.IProvider
interface itself only acceptsstring
still.personal_sign
data is treated as text, so it won't look pretty.TODO:
mina-delgation
back tomina-contracts
since caching is out & no longer demands that we split packages per program/contract.Demo at https://github.com/PaimaStudios/paima-game-templates/pull/81.