syntax = "proto3";

package nonce;
option go_package = "github.com/letsencrypt/boulder/nonce/proto";

import "core/proto/core.proto";

service NonceService {
  rpc Nonce(core.Empty) returns (NonceMessage) {}
  rpc Redeem(NonceMessage) returns (ValidMessage) {}
}

message NonceMessage {
  string nonce = 1;
}

message ValidMessage {
  bool valid = 1;
}
