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:
Luke Parker 2023-07-16 20:38:13 -04:00
parent b0c28a1cf0
commit a9072e6b1b
No known key found for this signature in database

View file

@ -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();