mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
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
|