The hash is a truncated sha1 hash, in big-endian order, as a hex-string.
- calculate the sha1 sum of the address
- take the first 16 bytes
- reverse the byte order
- convert to a hexadecimal string, and prepend "0x"
### Keybase proof | |
I hereby claim: | |
* I am blockpane on github. | |
* I am blockpane (https://keybase.io/blockpane) on keybase. | |
* I have a public key ASDQzusGbwFegxVQI-cPfq6zTfumSCSxuttTZki-LKGHqgo | |
To claim this, I am signing this object: |
### Keybase proof | |
I hereby claim: | |
* I am blockpane on github. | |
* I am frameloss (https://keybase.io/frameloss) on keybase. | |
* I have a public key ASCWEEcnHoD7hz7Bs1-NAA-VzpDUl4nZh-Q4e6yv345jtQo | |
To claim this, I am signing this object: |
FROM ubuntu:18.04 | |
RUN apt-get update; apt-get -y dist-upgrade; apt-get -y install wget jq | |
RUN wget "https://bin.fioprotocol.io/mainnet/fioprotocol-2.0.x-latest-ubuntu-18.04-amd64.deb" && \ | |
apt-get install -y ./fioprotocol-2.0.x-latest-ubuntu-18.04-amd64.deb && rm -f ./fioprotocol-2.0.x-latest-ubuntu-18.04-amd64.deb | |
# testnet: | |
#WORKDIR /etc/fio/nodeos | |
#RUN rm -f config.ini genesis.json && ln -s genesis-testnet.json genesis.json && ln -s testnet-config.ini config.ini |
package main | |
import ( | |
"encoding/json" | |
"errors" | |
"flag" | |
"fmt" | |
"github.com/fioprotocol/fio-go" | |
"github.com/fioprotocol/fio-go/imports/eos-go" | |
"io/ioutil" |
package main | |
import ( | |
"flag" | |
"fmt" | |
"github.com/fioprotocol/fio-go" // note: need 'go get github.com/fioprotocol/fio-go@develop' at time of writing. | |
"github.com/fioprotocol/fio-go/imports/eos-go" | |
"os" | |
) |