simplicity-sys 0.6.2

FFI bindings to libsimplicity
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef SIMPLICITY_TAPTWEAK_H
#define SIMPLICITY_TAPTWEAK_H

#include "frame.h"

/* This is a generic taptweak jet implementation parameterized by the tag used in the hash.
 * It is designed to be specialized to implement slightly different taptweak operations for Bitcoin and Elements.
 *
 * PUBKEY * TWO^256 |- PUBKEY
 *
 * Precondition: unsigned char[tagLen] tag
 */
bool rustsimplicity_0_6_generic_taptweak(frameItem* dst, frameItem *src, const unsigned char *tag, size_t tagLen);

#endif