Skip to content

Instantly share code, notes, and snippets.

View webmaster128's full-sized avatar

Simon Warta webmaster128

View GitHub Profile

A Tale of Two Name Services

Problem

The name alice can exist on multiple chains, owned by different accounts.

For example, alice.stars can point to a stars address that is associated with a different key than alice.stars on ICNS.

Solution 1: Merge ICNS and Stargaze Names

@dio
dio / hello-wasm.js
Last active September 10, 2023 07:42
This is a simpe example on embedding wasm inside an offline single html page
// this code is from a simple add function in c:
//
// // hello.c
// int add(int a, int b) {
// return a + b;
// }
//
// compiles it with emcc (http://webassembly.org/getting-started/developers-guide/)
// $ git clone https://github.com/juj/emsdk.git
@devinrsmith
devinrsmith / elgamal_test_vectors.csv
Last active May 24, 2019 09:29
Randomly generated elgamal test vectors
p g x k m a b
11 3 2 2 0 9 0
23 6 7 6 9 12 6
47 24 6 16 0 34 0
83 28 29 11 34 10 76
167 88 21 69 82 42 135
359 292 11 3 272 79 79
983 368 39 253 457 489 239
1283 269 375 604 1260 940 334
2903 1697 762 133 311 2339 826
@joshdholtz
joshdholtz / SomeFragment.java
Last active December 22, 2022 09:41
Android Google Maps V2 - MapView in XML
public class SomeFragment extends Fragment {
MapView mapView;
GoogleMap map;
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View v = inflater.inflate(R.layout.some_layout, container, false);