func (digest Digest) GoString() string {
	return "<SHA3-256-BE:" + hex.EncodeToString(reversed(digest)) + ">"
}
GoString - convert a binary digest to Big Endian hex string for use by the fmt package (for %#v)
package merkle
import (
	"encoding/hex"
	"fmt"
	"golang.org/x/crypto/sha3"
	"github.com/bitmark-inc/bitmarkd/fault"
)
const DigestLength = 32
type Digest [DigestLength]byte
func NewDigest(record []byte) Digest {
	return sha3.Sum256(record)
}
func reversed(d Digest) []byte {
	result := make([]byte, DigestLength)
	for i := 0; i < DigestLength; i += 1 {
		result[i] = d[DigestLength-1-i]
	}
	return result
}
func (digest Digest) String() string {
	return hex.EncodeToString(reversed(digest))
}