mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-19 13:27:35 +02:00
git-subtree-dir: src/simplicity git-subtree-split: 86ac0f92c4b2b6d694dca85dce3b6909aed25894
15 lines
485 B
C
15 lines
485 B
C
#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 simplicity_generic_taptweak(frameItem* dst, frameItem *src, const unsigned char *tag, size_t tagLen);
|
|
|
|
#endif
|