This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "encoding/json" | |
| "reflect" | |
| ) | |
| type Something interface{} | |
| type Something1 struct { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| "math/big" | |
| "github.com/ethereum/go-ethereum/accounts/abi" | |
| "github.com/ethereum/go-ethereum/common" | |
| "github.com/ethereum/go-ethereum/common/hexutil" | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Utility class to read encrypted PEM files and generate a | |
| * SSL Socket Factory based on the provided certificates. | |
| * | |
| * Note: | |
| * Java use jks (Java KeyStore) format, but openssl usual use pem format. | |
| * We can convert it by keytool (jdk build-in tool), or use BouncyCastle | |
| * library to handle pem. | |
| * | |
| * The original code is by Sharon Asher (link below). I have modified |