Skip to content

Instantly share code, notes, and snippets.

View DaveAppleton's full-sized avatar

Dave Appleton DaveAppleton

View GitHub Profile
@DaveAppleton
DaveAppleton / NewDecimal.sol
Created February 10, 2017 17:19
NewDecimals for Solidity
pragma solidity ^0.4.0;
// Passing in numbers must uint256 with top 248 bits representing a number and last 8 bits as a negative exponent
//
// 256 -> 1
// 2560 -> 10
// 2561 -> 1.0
// 257 -> 0.1
// 258 -> 0.01
@DaveAppleton
DaveAppleton / JOIN_ME.md
Last active November 23, 2016 09:19
Joins
@DaveAppleton
DaveAppleton / crypt_fail.go
Created April 2, 2015 21:18
Sample for GoSodium - which seems to encrypt but not decrypt - need help.
package main
import (
"github.com/jasonmccampbell/GoSodium"
"github.com/jasonmccampbell/GoSodium/sodium"
"fmt"
)
func main() {
alice_pk := gosodium.AllocPublicKey()