Skip to content

Instantly share code, notes, and snippets.

This file has been truncated, but you can view the full file.
Index: README.md
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/README.md b/README.md
--- a/README.md (revision 079be9b31d47472217278460a5b25183156695cc)
+++ b/README.md (revision a9b7b4818e8d6a6622163927bef667eff2dca2dd)
@@ -1,147 +1,71 @@
-# Tendermint
package main
import (
"fmt"
"crypto/sha256"
"github.com/btcsuite/btcd/btcec"
)
func main() {
@liamsi
liamsi / custom_amino.go
Last active January 15, 2019 15:14
Custom marshaller
package main
import (
"fmt"
"github.com/tendermint/go-amino"
)
type HelloType struct {
}
@liamsi
liamsi / dump_tx.go
Last active March 20, 2019 12:08
Unmarshal TX
package main
import (
"encoding/base64"
"fmt"
"github.com/cosmos/cosmos-sdk/codec"
"github.com/cosmos/cosmos-sdk/x/auth"
distr "github.com/cosmos/cosmos-sdk/x/distribution"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/x/bank"
@liamsi
liamsi / dump_privval_key.go
Last active January 8, 2019 15:03
dump validator privkey for kms
package main
import (
"fmt"
"io/ioutil"
"github.com/tendermint/tendermint/crypto/ed25519"
"github.com/tendermint/tendermint/privval"
)
// compat.proto:
//
syntax = "proto3";
package proto3tests;
message Test32 {
fixed32 foo = 1;
int32 bar = 2;
}
// +build extensive_tests
// only built if manually enforced
package proto3
import (
"testing"
"github.com/golang/protobuf/proto"
pbf "github.com/golang/protobuf/proto/proto3_proto"
package main
import (
"encoding/hex"
"fmt"
tyler "github.com/tyler-smith/go-bip39"
bartekn "github.com/bartekn/go-bip39"
)
package main
import (
"encoding/hex"
"fmt"
tyler "github.com/tyler-smith/go-bip39"
bartekn "github.com/bartekn/go-bip39"
)
package main
import (
"fmt"
"github.com/tendermint/go-amino"
)
func main() {
fmt.Println(fmt.Sprintf("Expected field type %X, got %X", amino.Typ3_8Byte, amino.Typ3_Interface))
fmt.Println(fmt.Sprintf("Expected field type %v, got %v", amino.Typ3_8Byte, amino.Typ3_Interface))