Skip to content

Instantly share code, notes, and snippets.

View davebryson's full-sized avatar
🤠
wrangling a remuda of cayuse code

Dave Bryson davebryson

🤠
wrangling a remuda of cayuse code
View GitHub Profile
@davebryson
davebryson / counter.tla
Created April 30, 2024 10:45
Counter.tla
---- MODULE counter ----
EXTENDS Naturals
CONSTANT Limit
VARIABLE counter
Init == counter = 1
Terminates == counter = Limit
/**
* Example code to create an asset and save the meta to arweave
**/
// base token uri
let URL = 'http://localhost:8081/asset/';
// get the chain id from the eth provider. It's needed for the metadata DID
const chainid = provider.getChainId();

OpenCBDC Secure Minting (UTXO)

Requirements

  • The ability to mint money
  • Only select entities can mint
  • A minter can mint more than once
  • Must follow the same validation requirements as a normal transaction
  • Must support test environments

Mint vs. Normal Transaction

@davebryson
davebryson / keybase.md
Created December 8, 2015 16:28
keybase

Keybase proof

I hereby claim:

  • I am davebryson on github.
  • I am dbryson (https://keybase.io/dbryson) on keybase.
  • I have a public key whose fingerprint is E1F2 3B53 222B 6806 6EF0 B201 801D 1EA5 9B4A 5D6D

To claim this, I am signing this object:

Verifying that +miceda is my blockchain ID. https://onename.com/miceda
@davebryson
davebryson / ruby_2_epmd.rb
Created April 24, 2009 16:26
Example of talking to Erlang's epmd from Ruby
# Example of connecting to Epmd to get the port number
# of an Erlang node
require 'rubygems'
require 'eventmachine'
class EpmdConnection < EM::Connection
include EM::Deferrable
attr_accessor :nodename
def self.lookup_node(nodename)