Skip to content

Instantly share code, notes, and snippets.

View dr-orlovsky's full-sized avatar
🔬
Transumanizing

Dr. Maxim Orlovsky dr-orlovsky

🔬
Transumanizing
View GitHub Profile
@dr-orlovsky
dr-orlovsky / contractum.md
Last active December 17, 2023 17:59
Contractum examples

Screenshot from 2023-12-17 18-50-44

Screenshot from 2023-12-17 18-58-49

@dr-orlovsky
dr-orlovsky / descriptor-script.md
Created February 22, 2023 09:05
Descriptor script fragment

Descriptor script fragment

Miniscript is great, but:

  1. Can’t represent many wallet types inside descriptor (lightning wallet, multisigs re-using keys in different branches)
  2. Do not yet supports tapscript
  3. Still not stable, i.e. not durable enough for long storage of wallet descriptor backups

As of today, there is no standard way to write a descriptor covering all forms of UTXOs which may be present in bitcoin transactions. This standards aims to bridge that gap. It also defines a canonical form of a wallet descriptor, which is unique for each wallet and allows to commit to the wallet structure in a non-ambigous way, which may be important for wallet comparison, identification, especially in multi-party protocols.

@dr-orlovsky
dr-orlovsky / rust-bitcoin-withdrawal.md
Last active July 7, 2022 11:28
Permanent withdrawal from rust-bitcoin maintainer role

On the 12th of April, 2022 I was "temporally suspended" by Andrew Poelstra from being a maintainer of rust-bitcoin repository. I was notified about this action by a letter from him without any prior discussion. The cause of the decision was my public expression of the statement that cases of plagiarism must not be tolerated and must be acted upon (thread starting from https://twitter.com/dr_orlovsky/status/1513555717218873355?s=21).

Andrew referenced to the fact that while rust-bitcoin is an anti-CoC community, he still considered my words as those which can't be acceptable for a maintainer of rust-bitcoin, since they may be read as a threat of physical violence. We had a mailing after, where I clarified that there were no threats of physical violence. I was surprised that ethic compatibility was a part of requirements for being rust-bitcoin maintainer, which was not what I expected from "anti-CoC" policy of the repo. Andrew agreed that this "anti-CoC" policy and requirements for maintainer conduct are in co

@dr-orlovsky
dr-orlovsky / stingerjet.sh
Last active April 2, 2022 00:22
Stingerjet language for wallet descriptors and bitcoin scripting
# This means derivation standard used. Here we use m/33/chain/org/unit/account/scope/index
use lnpbp derivation
# This defines organization units in derivation (see "unit" in the path above).
let board = unit 1
# This defines account index used by all participants under the same org unit
# (see "account" in the path above).
let current = account 2
@dr-orlovsky
dr-orlovsky / clightning-signet-chainparams.diff
Last active September 19, 2020 13:08
New c-Lightning signet chainparams
diff --git a/bitcoin/chainparams.c b/bitcoin/chainparams.c
index 5a79e7e8e..7e0501271 100644
--- a/bitcoin/chainparams.c
+++ b/bitcoin/chainparams.c
@@ -80,9 +80,14 @@ const struct chainparams networks[] = {
.bip32_privkey_version = BIP32_VER_TEST_PRIVATE},
.is_elements = false},
{.network_name = "signet",
- .bip173_name = "sb",
+ .bip173_name = "tb",
@dr-orlovsky
dr-orlovsky / LockScript.rs
Created January 24, 2020 16:07
LockScript
///
/// The following charts represent possible relations between script types:
///
/// ```text
/// [txout.pubkeyScript]
/// PubkeyScript --?--(P2PK, custom scripts)--> LockScript <--+-------+---+---------+
/// | | | |
/// [txin.sigScript] | | | |
/// SigScript --+--?!----------(P2PKH: #=PubkeyHash)----------+ | | |
/// | | | |
@dr-orlovsky
dr-orlovsky / RGB_notation.md
Last active July 25, 2019 09:41
RGB Notation

Bitcoin

Transaction: [txid][@version]<inputs|outputs>[@timelock]

Inputs (same for outputs): input1,input2 (enumerated all inputs) or input1,input2,...,inputN,... (some inputs are omitted)

Inputs order (same for outputs): , for strict sequential order, ; for non-strict (arbitrary) order

Single input: #no(txid:vout-[nSeqence]-[[keys/signatures]]-[[unlocking-script]])

@dr-orlovsky
dr-orlovsky / FreeAI_Manifesto_Instructions_RU.md
Last active July 28, 2018 04:28
Instructions to sign FreeAI Manifesto (RU)
  1. Если у вас еще не установлен keybase, закачайте его и настройте свои identitites (см. https://keybase.io/)
  2. Вступите в группу freeai либо через GUI, либо с помощью команды
keybase team request-access freeai
  1. Выполните следующие команды в командной строке
git clone keybase://team/freeai/freeai-manifesto
cd freeai-manifesto
keybase pgp sign -i the_freeai_manifesto.txt -o signatures/`keybase status | grep 'Username:' | awk '{print $2}'`

Keybase proof

I hereby claim:

  • I am dr-orlovsky on github.
  • I am dr_orlovsky (https://keybase.io/dr_orlovsky) on keybase.
  • I have a public key ASDFNYhFyWfxGYRj-0Ilt_M-VmW7XCl3eWqHrFzEyozgwAo

To claim this, I am signing this object: