Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
bbapi_schnorr.hpp
Go to the documentation of this file.
1#pragma once
14
15namespace bb::bbapi {
16
22 static constexpr const char MSGPACK_SCHEMA_NAME[] = "SchnorrComputePublicKey";
23
24 struct Response {
25 static constexpr const char MSGPACK_SCHEMA_NAME[] = "SchnorrComputePublicKeyResponse";
28 bool operator==(const Response&) const = default;
29 };
30
32 Response execute(BBApiRequest& request) &&;
34 bool operator==(const SchnorrComputePublicKey&) const = default;
35};
36
42 static constexpr const char MSGPACK_SCHEMA_NAME[] = "SchnorrConstructSignature";
43
44 struct Response {
45 static constexpr const char MSGPACK_SCHEMA_NAME[] = "SchnorrConstructSignatureResponse";
49 bool operator==(const Response&) const = default;
50 };
51
54 Response execute(BBApiRequest& request) &&;
56 bool operator==(const SchnorrConstructSignature&) const = default;
57};
58
64 static constexpr const char MSGPACK_SCHEMA_NAME[] = "SchnorrVerifySignature";
65
66 struct Response {
67 static constexpr const char MSGPACK_SCHEMA_NAME[] = "SchnorrVerifySignatureResponse";
70 bool operator==(const Response&) const = default;
71 };
72
77 Response execute(BBApiRequest& request) &&;
79 bool operator==(const SchnorrVerifySignature&) const = default;
80};
81
82} // namespace bb::bbapi
Shared type definitions for the Barretenberg RPC API.
bool operator==(const Response &) const =default
static constexpr const char MSGPACK_SCHEMA_NAME[]
Compute Schnorr public key from private key.
Response execute(BBApiRequest &request) &&
static constexpr const char MSGPACK_SCHEMA_NAME[]
bool operator==(const SchnorrComputePublicKey &) const =default
static constexpr const char MSGPACK_SCHEMA_NAME[]
bool operator==(const Response &) const =default
Construct a Schnorr signature.
bool operator==(const SchnorrConstructSignature &) const =default
Response execute(BBApiRequest &request) &&
static constexpr const char MSGPACK_SCHEMA_NAME[]
SERIALIZATION_FIELDS(message_field, private_key)
bool operator==(const Response &) const =default
static constexpr const char MSGPACK_SCHEMA_NAME[]
Verify a Schnorr signature.
SERIALIZATION_FIELDS(message_field, public_key, s, e)
Response execute(BBApiRequest &request) &&
static constexpr const char MSGPACK_SCHEMA_NAME[]
grumpkin::g1::affine_element public_key
bool operator==(const SchnorrVerifySignature &) const =default