Bitcoin ABC 0.30.5
P2P Digital Currency
Classes | Functions
secp256k1_multiset.h File Reference
#include "secp256k1.h"
Include dependency graph for secp256k1_multiset.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  secp256k1_multiset
 Opaque multiset; this is actually a group element. More...
 

Functions

SECP256K1_API int secp256k1_multiset_init (const secp256k1_context *ctx, secp256k1_multiset *multiset) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2)
 Initialize a multiset The resulting multiset the multiset for no data elements. More...
 
SECP256K1_API int secp256k1_multiset_add (const secp256k1_context *ctx, secp256k1_multiset *multiset, const unsigned char *input, size_t inputLen) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(3)
 Adds an element to a multiset from single data element. More...
 
SECP256K1_API int secp256k1_multiset_remove (const secp256k1_context *ctx, secp256k1_multiset *multiset, const unsigned char *input, size_t inputLen) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(3)
 Removes an element from a multiset. More...
 
SECP256K1_API int secp256k1_multiset_combine (const secp256k1_context *ctx, secp256k1_multiset *multiset, const secp256k1_multiset *input) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(3)
 Combines two multisets. More...
 
SECP256K1_API int secp256k1_multiset_finalize (const secp256k1_context *ctx, unsigned char *resultHash, const secp256k1_multiset *multiset) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(3)
 Converts a multiset to a hash. More...
 

Function Documentation

◆ secp256k1_multiset_add()

SECP256K1_API int secp256k1_multiset_add ( const secp256k1_context ctx,
secp256k1_multiset multiset,
const unsigned char *  input,
size_t  inputLen 
)

Adds an element to a multiset from single data element.

Returns: 1: success 0: invalid parameter Args: ctx: pointer to a context object (cannot be NULL) Out: multiset: the multiset to update In: input: the data to add inputLen: the size of the data to add

Adds an element to a multiset from single data element.

Definition at line 127 of file main_impl.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ secp256k1_multiset_combine()

SECP256K1_API int secp256k1_multiset_combine ( const secp256k1_context ctx,
secp256k1_multiset multiset,
const secp256k1_multiset input 
)

Combines two multisets.

Returns: 1: success 0: invalid parameter Args: ctx: pointer to a context object (cannot be NULL) In/Out: multiset: the multiset to which the input must be added In: input: the multiset to add

Combines two multisets.

Definition at line 137 of file main_impl.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ secp256k1_multiset_finalize()

SECP256K1_API int secp256k1_multiset_finalize ( const secp256k1_context ctx,
unsigned char *  resultHash,
const secp256k1_multiset multiset 
)

Converts a multiset to a hash.

Returns: 1: success 0: invalid parameter Args: ctx: pointer to a context object (cannot be NULL) Out: hash: the resulting 32-byte hash In: multiset: the multiset to hash

Converts a multiset to a hash.

Definition at line 165 of file main_impl.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ secp256k1_multiset_init()

SECP256K1_API int secp256k1_multiset_init ( const secp256k1_context ctx,
secp256k1_multiset multiset 
)

Initialize a multiset The resulting multiset the multiset for no data elements.

Returns: 1: success 0: invalid parameter Args: ctx: pointer to a context object (cannot be NULL) Out: multiset: the resulting multiset

Initialize a multiset The resulting multiset the multiset for no data elements.

Definition at line 200 of file main_impl.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ secp256k1_multiset_remove()

SECP256K1_API int secp256k1_multiset_remove ( const secp256k1_context ctx,
secp256k1_multiset multiset,
const unsigned char *  input,
size_t  inputLen 
)

Removes an element from a multiset.

Returns: 1: success 0: invalid parameter Args: ctx: pointer to a context object (cannot be NULL) Out: multiset: the multiset to update In: input: the data to remove inputLen: the size of the data to remove

Removes an element from a multiset.

Definition at line 132 of file main_impl.h.

Here is the call graph for this function:
Here is the caller graph for this function: