Skip to content

Instantly share code, notes, and snippets.

View KarolTrzeszczkowski's full-sized avatar

Karol Trzeszczkowski KarolTrzeszczkowski

View GitHub Profile
Title: BLOCK_INTERVAL adjustment mechanism
Author: Karol Trzeszczkowski (Licho)
Status:
Type:
Created: 2020-05-18

Abstract

@KarolTrzeszczkowski
KarolTrzeszczkowski / DAA spec sketch.md
Last active May 28, 2020 07:48
A proposal of Bitcoin Cash difficulty adjustment algo
Title: DAA improvement proposal (Billy the Algorithm)
Author: Karol Trzeszczkowski (Licho)
Status:
Type:
Created: 2020-05-01

Abstract

@KarolTrzeszczkowski
KarolTrzeszczkowski / p2sh notification protocol.md
Last active August 9, 2022 01:11
Description of p2sh notification protocol

Abstract

The p2sh notification protocol is to pin the p2sh address to the wallets of contract participants and provide aditional informations that will help participants deduce what contract is it.

Motivation

The main motivation of this protocol is to make p2sh smart contracts recoverable from the seed. Some smart contracts, like Licho Last Will or Moser-Eyal-Sirrer vault may be used for long term storage of savings. In this case it is desirable to have a way to reconstruct the contract address just from the seed.

Specification

p2sh notification message is a transaction with 1 OP_RETURN output and as many p2pkh dust outputs as the number of participants of the contract and possibly a change output.

The OP_RETURN output consists of: