Skip to content

Instantly share code, notes, and snippets.

View ChristopherA's full-sized avatar

Christopher Allen ChristopherA

View GitHub Profile
@ChristopherA
ChristopherA / MuSig2_Sequence_Diagrams.md
Last active November 2, 2024 22:40
MuSig2 Sequence Diagrams

MuSig2 Sequence Diagrams

  • ABSTRACT: This document provides sequence diagrams for the MuSig2 multisignature protocol, covering 2-of-2 multisig with direct peer-to-peer interaction and 3-of-3 multisig with a Coordinator. It integrates GSTP and ESC to ensure secure, trustless communication, offering a practical guide for implementing efficient, private, and secure multisig solutions.

  • COPYRIGHT: This text of this guide is Copyright ©️2024 by Blockchain Commons, and was written by Christopher Allen. It is shared under spdx:CC-BY4.0 open-source license.

  • MAIN BRANCH: The main branch of this diagram is now part of the Blockchain Commons Developer Website. Use the Gordian Developer Community Discussions if you have questions or use the [Issues](https://github.com/Blockchai

@ChristopherA
ChristopherA / Schnorr_Opportunities.md
Last active October 9, 2024 23:44
Schnorr Opportunities
  • Adaptor Signatures (n.d.). [web article]. Bitcoin Optech. Retrieved 2024-10-09 from: https://bitcoinops.org/en/topics/adaptor-signatures/.

    TAGS: #AdaptorSignatures #Bitcoin #SchnorrSignatures #CryptographicProtocols #PrivacyEnhancement #AtomicSwaps #BitcoinContracts #CryptographicAdaptors #DigitalSignatures #ScriptlessScripts

    SHORT ABSTRACT: "Adaptor signatures are cryptographic tools that commit to a hidden value, revealing it only when combined with a corresponding signature. They offer efficiency and privacy advantages for Bitcoin contracts compared to traditional hashlocks, playing a critical role in advanced mechanisms like atomic swaps, coinswaps, and multiparty contracts."

    KEY POINTS:

    • Efficiency Over Hashlocks: Adaptor signatures do not need to be published on-chain, unlike hashlocks, which makes them more efficient and private. > - Coinswap Mechanism: Describes how two parties can use adaptors to securely commit to transactions, ensuring atomicity
@ChristopherA
ChristopherA / Web_Based_Markdown_Tools.md
Last active September 19, 2024 18:43
Web-Based Markdown Tools
@ChristopherA
ChristopherA / useful_jekyll_blog_snippets.md
Last active June 12, 2024 21:46
Useful Jekyll Blog Snippets
@ChristopherA
ChristopherA / progressive_trust_links.md
Last active June 13, 2024 05:44
Progressive Trust Links
@ChristopherA
ChristopherA / zsh_opinionated_best_practices.md
Last active October 16, 2024 05:21
Zsh - Opinionated Best Practices

Zsh Opinionated - A Guide to Best Practices

  • Abstract: This guide provides best practices for writing clear, maintainable, and robust Zsh scripts. Aimed at helping developers transition from Bash to Zsh, particularly on macOS, this guide offers practical advice and examples for creating standardized and efficient scripts.

  • Copyright This text of this guide is Copyright ©️2024 by Christopher Allen, and is shared under spdx:CC-BY-SA-4.0 open-source license. All the example code is relenquished to the public domain under spx:CC0-1.0.

  • Tags: #zsh #scripting #cli #opinionated

@ChristopherA
ChristopherA / git_repo_dir_structure.md
Last active May 15, 2024 07:57
Git Repository Directory Structure

Git Repository Directory Structure

First pass of organizing various data and scripts about a repository. One open question is seperation of data about a repository vs scripts that use that data.

Note that much of this doesn't currently work with various Git hosting services (for instance GitHub & GitLab put their files in .github/ .gitlab/ respectively). Instead, this is more of a proposal.

Git itself uses .git/hooks. but you can set git config core.hooksPath /path/to/your/hooks to the path you want.

v0

@ChristopherA
ChristopherA / git_object-format_sha256.md
Last active May 15, 2024 06:22
Support for Git Commits using SHA-256

Support for Git Commits using SHA-256

Git started supporting SHA-256 based commit hashes in version 2.29, officially released on October 19, 2020.

This version included the --object-format=sha256 option for the git init command.

This feature is part of Git's ongoing efforts to enhance security and address potential vulnerabilities related to the use of SHA-1 hash algorithm.

Use of SHA-1 in Git Commits