Skip to content

Instantly share code, notes, and snippets.

@narodnik
Last active May 9, 2018 07:03
Show Gist options
  • Save narodnik/0e355e119b905b620057e7ef80c9aef9 to your computer and use it in GitHub Desktop.
Save narodnik/0e355e119b905b620057e7ef80c9aef9 to your computer and use it in GitHub Desktop.
typedef std::vector<point_list> key_rings;
typedef std::vector<ec_secret> secret_list;
typedef std::vector<secret_list> s_values_type;
struct ring_signature
{
ec_secret e;
s_value_type s;
};
BC_API bool sign(
ring_signature& out,
const secret_list& secrets,
const key_rings& rings,
const data_slice message);
BC_API bool verify(
const key_rings& rings,
const data_slice message,
const ring_signature& signature);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment