mirror of
https://github.com/serai-dex/serai.git
synced 2024-12-22 19:49:22 +00:00
Remove signature from get_next_message
Duee to signature replaying, it's very annoying to provide meanigful data access privacy. None of these messages should be private/have sensitive data anyways though.
This commit is contained in:
parent
b0c28a1cf0
commit
a9072e6b1b
1 changed files with 2 additions and 12 deletions
|
@ -44,13 +44,7 @@ fn queue_message(meta: Metadata, msg: Vec<u8>, sig: SchnorrSignature<Ristretto>)
|
|||
}
|
||||
|
||||
// get RPC method
|
||||
fn get_next_message(
|
||||
service: Service,
|
||||
_expected: u64,
|
||||
_signature: SchnorrSignature<Ristretto>,
|
||||
) -> Option<QueuedMessage> {
|
||||
// TODO: Verify the signature
|
||||
|
||||
fn get_next_message(service: Service, _expected: u64) -> Option<QueuedMessage> {
|
||||
// TODO: Verify the expected next message ID matches
|
||||
|
||||
let queue_outer = (*QUEUES).read().unwrap();
|
||||
|
@ -129,11 +123,7 @@ async fn main() {
|
|||
module
|
||||
.register_method("next", |args, _| {
|
||||
let args = args.parse::<(Service, u64, Vec<u8>)>().unwrap();
|
||||
get_next_message(
|
||||
args.0,
|
||||
args.1,
|
||||
SchnorrSignature::<Ristretto>::read(&mut args.2.as_slice()).unwrap(),
|
||||
);
|
||||
get_next_message(args.0, args.1);
|
||||
Ok(())
|
||||
})
|
||||
.unwrap();
|
||||
|
|
Loading…
Reference in a new issue