-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upcoming Sapphire 0.6.0 allows Epoch to be specified, clients/js should support this #160
Comments
This will work around problems like:
|
This last error actually seems unrelated and has to do with signed queries instead. |
I'm including it in my mental bundle of tangentially related things to signed queries & calls, and handling epochs & block transitions more reliably in the client when using leashes. Not sure why it can't find the block from the block number specified in the leash, but that's something I see as related and in the line of investigation. |
Re: oasis-sdk/pull/1420
The
callformat.rs::CallEnvelopeX25519DeoxysII
struct is expanded with an optionalepoch
parameter.This allows encrypted calls to specify which epoch they are encrypting a transaction for, otherwise the endpoint will try the previous 2 epochs and fail if neither match.
Additionally an
epoch
parameters is returned fromcallDataPublicKey
which will need to be returned by the Web3 gateway in https://github.com/oasisprotocol/oasis-web3-gateway/blob/main/rpc/oasis/api.goThe result from the web3 gateway can be used by the JS & Go clients when encrypting transactions.
The text was updated successfully, but these errors were encountered: