func networkToPrefix(network string) (diemid.NetworkPrefix, error) {
	switch network {
	case "mainnet":
		return diemid.MainnetPrefix, nil
	case "premainnet":
		return diemid.PreMainnetPrefix, nil
	case "testnet":
		return diemid.TestnetPrefix, nil
	default:
		return diemid.NetworkPrefix(""), fmt.Errorf("Invalid network=%s supplied, no network prefix")
	}
}
networkToPrefix converts from a human friendly format to a prefix usable by the bech32 address format
package main
import (
	"encoding/binary"
	"errors"
	"flag"
	"fmt"
	"os"
	"strconv"
	"github.com/diem/client-sdk-go/diemid"
	"github.com/diem/client-sdk-go/diemkeys"
	"github.com/diem/client-sdk-go/diemtypes"
)