Skip to content

Instantly share code, notes, and snippets.

View yashbhutwala's full-sized avatar
spreading tribal knowledge

Yash Bhutwala yashbhutwala

spreading tribal knowledge
View GitHub Profile
set -o errexit -o nounset -o pipefail
# this line enables debugging
set -xv
# create cluster
kind -v 3 create cluster --kubeconfig ~/.kube/kind-kubeconfigs --name clusterapi
cp ~/.kube/kind-kubeconfigs ~/.kube/config
yashbhutwala /
Created November 8, 2019 14:05
Install Helm v3-rc.3 on macOS darwin amd64
set -eou pipefail
#set helm version
#download helm version
tar xvzf $helmVersion
# References:
kind: Cluster
- role: control-plane
image: kindest/node:v1.15.3
- role: worker
"apiVersion": "",
"auditID": "cd2da677-f8a1-4c65-8033-a020a7e9f2a8",
"kind": "Event",
"level": "Metadata",
"objectRef": {
"resource": "pods",
"namespace": "kube-system",
"name": "kube-apiserver-single-control-plane",
"apiVersion": "v1"
kind: Cluster
- role: control-plane
- hostPath: ~/kind/audit-policy.yaml
containerPath: /etc/kubernetes/audit-policy.yaml
- hostPath: ~/kind/apiserver-audit.log
containerPath: /var/log/apiserver-audit.log
kind: Policy
- level: Metadata

A description of known problems in Satoshi Nakamoto's paper, "Bitcoin: A Peer-to-Peer Electronic Cash System", as well as notes on terminology changes and how Bitcoin's implementation differs from that described in the paper.


The longest chain not only serves as proof of the sequence of events witnessed, but proof that it came from the largest pool of CPU power.

I'll first give some thoughts on the design of the wallet in general, before explaining current and future SegWit wallet support.

Current design

Conceptually, a wallet currently contains mapKeys, mapScripts, and setWatchOnly, which together determine which outputs are considered "ours" (IsMine), and how to solve and sign for them. Then the wallet further contains key metadata, key chains, and key pool at the wallet level that feed into this.

We determine whether outputs are ours using ad-hoc logic that mostly answers the question "Could we sign this?", but with some notable exceptions:

yashbhutwala / blockstack
Created December 20, 2017 03:02
blockstack verification gist
Verifying my Blockstack ID is secured with the address 1GyegMsvvzyAtdbMFucVyPaYj1i2QWxRDp
yashbhutwala /
Created November 10, 2017 20:01
Github Keybase Proof

Keybase proof

I hereby claim:

  • I am yashbhutwala on github.
  • I am ybhutwala ( on keybase.
  • I have a public key ASDLySZySwjW577_8tBZLNEU6bhkU3DfompmzvKNS29_tgo

To claim this, I am signing this object: