go-waku/waku/v2/protocol/rln/bindata.go

275 lines
9.1 MiB
Go
Raw Normal View History

2022-07-05 21:28:34 +00:00
// Code generated by go-bindata. DO NOT EDIT.
// sources:
// parameters.key (2.392MB)
package rln
import (
"bytes"
"compress/gzip"
"crypto/sha256"
"fmt"
"io"
"io/ioutil"
"os"
"path/filepath"
"strings"
"time"
)
func bindataRead(data []byte, name string) ([]byte, error) {
gz, err := gzip.NewReader(bytes.NewBuffer(data))
if err != nil {
return nil, fmt.Errorf("read %q: %w", name, err)
}
var buf bytes.Buffer
_, err = io.Copy(&buf, gz)
clErr := gz.Close()
if err != nil {
return nil, fmt.Errorf("read %q: %w", name, err)
}
if clErr != nil {
return nil, err
}
return buf.Bytes(), nil
}
type asset struct {
bytes []byte
info os.FileInfo
digest [sha256.Size]byte
}
type bindataFileInfo struct {
name string
size int64
mode os.FileMode
modTime time.Time
}
func (fi bindataFileInfo) Name() string {
return fi.name
}
func (fi bindataFileInfo) Size() int64 {
return fi.size
}
func (fi bindataFileInfo) Mode() os.FileMode {
return fi.mode
}
func (fi bindataFileInfo) ModTime() time.Time {
return fi.modTime
}
func (fi bindataFileInfo) IsDir() bool {
return false
}
func (fi bindataFileInfo) Sys() interface{} {
return nil
}
var _parametersKey = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x00\x00\x40\xff\xbf\x1e\xb1\x6b\xaa\x23\x7d\x50\x91\xa4\x81\x6f\x9e\x22\xc8\x44\x3e\xad\x76\xed\xfc\xbb\x82\xfc\xf3\xb0\x4d\xc1\x79\xab\xc0\xdb\x4c\x21\x46\xaa\x16\xae\x19\xe1\x80\x73\x4e\x05\x3c\x7f\xb5\x90\x6b\x46\xfd\x6c\x8e\x43\x3d\xdb\x28\x70\x15\x50\x00\x81\x33\x88\x0c\x04\x5f\xe1\xe0\xda\xc1\x77\xd0\xa0\xe1\x91\x3c\x71\x2f\x3c\x21\xab\xb6\x70\x9c\xbb\xb8\x93\x58\xa9\x85\x72\x32\x0e\x08\x21\x44\x12\xbc\x0e\xd1\x0d\xcf\xbb\x16\xcd\x7f\xd6\x70\xc4\x94\x95\xd3\x71\x2a\xcb\xc0\x93\xf3\x5c\x66\x1a\xfa\xbd\x21\x1b\xf3\x58\x7c\x19\x2c\xbe\xe9\x1b\x7c\x12\x5d\x48\xfa\x68\xeb\x56\x3b\xd4\x91\xc6\x86\x95\xbc\x3b\x2d\xb9\xc1\xbb\x85\x07\x1c\x0f\x61\xfd\x0e\x0d\x83\x78\xe9\x98\x43\xc0\xb2\xd8\x7a\x7b\x39\x9d\x98\xc6\xe9\x51\xf7\x01\x08\xca\x45\xab\x00\x33\x47\x90\x9c\xef\x40\x29\x3c\x17\xbe\xbf\x18\xeb\x1a\xc0\xed\x20\x6e\x23\xca\x38\x73\x72\x1f\x43\x19\xbe\x6e\xac\xe8\x8a\x25\x2e\x48\x36\x2b\xbe\x7f\x1e\xbd\x1b\xc4\xb5\x39\x2a\x65\x3f\x46\x59\x63\x33\x36\xba\xdf\xa7\x0b\x3e\x2a\x45\xe9\x87\xcc\xc7\x49\xb7\x6b\x4e\x87\x08\x95\x5a\x63\x0f\x46\x65\xfe\xbd\x4d\x9b\xc2\xa3\xc7\x47\xb1\x00\x56\xde\x0f\xd5\x99\xdd\x83\x0e\x29\x92\x99\xa9\x39\x27\x60\xed\x8e\xd8\x14\x06\xb5\x0b\x3b\x73\xdf\x8d\x15\xb6\x0d\xf0\x82\x0f\xd8\x00\x5d\x59\x1b\xeb\x4f\x80\xbf\x71\xd8\xd0\xd4\xea\x62\x83\x63\x02\x61\x27\x91\x1b\x41\x27\x8e\x84\x72\x2a\xf4\x49\x8e\xce\x7b\x1b\xf1\xbe\x91\x59\x9d\x5e\xb3\x92\x0a\x6d\xf9\x25\xda\xf0\x4f\x4b\xc9\x2d\x44\x64\x40\x29\x3f\x48\xea\x19\xff\x69\x6a\xee\x15\xc4\x6b\xc3\xe2\xda\xf1\x2a\xf6\xc2\x11\x8c\x1a\xcb\xae\x3e\xab\x7b\xab\x20\xfd\x16\x39\x72\xc1\xf5\x74\x5e\x2d\xaf\x55\xef\x16\xca\x67\xf3\x3b\x5d\x1e\x4f\x9f\x88\xa4\x19\xc4\x38\x17\xf1\xb5\x95\x50\x08\x1a\x10\xe0\xa5\x55\x41\x30\x02\xa3\x9d\x9b\x0e\x27\xc9\xce\x8e\xed\x87\x80\x29\xe3\x6a\xc2\x08\x6a\xcd\x86\x80\x71\x5b\x07\x11\xbf\xf3\x9f\x77\xa4\xae\xef\x0c\x2b\xb2\xa4\xcb\x06\x5b\x8f\xa2\x7b\x92\x7e\xbb\x03\xd9\x15\x29\x54\x3b\xcd\x90\x54\x39\xf0\x10\xb0\x21\x7c\x75\xff\xff\x87\xcf\x86\x9b\x2f\xae\x89\x37\x2e\xe5\x5e\xe1\x9d\x74\x24\x16\x57\x49\x4d\x41\x99\x46\xe0\xae\x49\x21\x16\x51\x16\x18\x38\x7f\xe2\x7d\xd0\xd8\xa6\x36\x1a\x4a\x33\xaa\x13\xbb\x56\xba\x43\xa7\x8a\xfc\x91\x2a\xaa\x35\xe2\xa0\x01\x17\xd0\x12\x37\xd4\x10\xd7\x8e\x4d\x16\x15\x3e\xf7\x43\xef\xdf\x21\x12\xc4\x29\x4d\x2b\xdd\x9e\x58\x26\x2d\xbe\x4d\x90\x3c\x71\x00\x00\x00\x06\x2f\x63\x73\x82\xd1\x0b\x0b\xe5\xcd\xf3\xe4\xb5\x2c\xa1\xd5\xcd\x41\x50\xdc\x14\x78\x97\x6a\x19\xa3\x4a\x48\xce\xca\xaa\xad\x37\x2d\x16\x30\xba\xd7\xe9\x54\x9e\x1a\x6e\x9c\x82\x42\x5c\xb9\x56\x89\x65\xfd\x4a\x16\xd3\x1d\xaa\x2c\x73\x97\x37\x6b\x85\x9c\x0b\x2e\x52\x14\x78\xd6\xa6\x47\xf9\x23\x97\xa9\xbe\xd3\x31\xb2\x6f\x23\x29\x90\x25\x03\xc0\xd9\x41\xa1\x71\xe5\xd6\xff\x3e\xa5\xa7\x29\xa1\x36\x2f\xe8\xdc\x5a\xf9\xa4\x0b\xd5\x23\x64\x2e\xf6\x5b\xc9\x5c\x7b\x5c\xe2\xc3\x21\x73\x5b\x8d\xeb\x82\xea\x40\x27\xe9\x12\xb7\xe5\x73\xe1\x86\xbe\xe6\xbb\xb0\x0b\x9f\x07\x16\xd2\x36\x45\x02\xa8\x91\x68\xbc\xeb\xc1\xf1\xc0\xd3\x73\x8f\xa6\x69\x39\x23\xd2\xe0\x85\xeb\x5b\x99\xc0\x33\x7b\xc7\xb8\x27\x2f\x4e\x9c\xbc\x9a\x50\xf2\x47\x6b\x25\xea\xfa\x1e\xc5\x87\xf4\xaf\x4f\xbf\x17\x76\x72\x0b\xb8\x59\x63\xab\xac\xd6\x0d\x7f\x2c\xe3\x35\x4b\x94\xb0\x1d\xa7\x35\x17\x6e\xee\x82\x34\x2f\xa7\x77\xcd\xf6\xbc\x21\x6b\x42\xf7\x77\x03\x96\xa3\x18\x75\x02\x5b\x46\xf7\x67\x33\x05\x4e\xef\xb4\x08\x7b\x13\x3c\x05\x36\x50\x3a\x6f\xca\x75\x99\x1c\x2f\x33\x14\x3f\xeb\x09\x5b\xf6\xae\x84\x7e\x15\x85\x9a\x34\x70\x68\x0a\x44\x02\x01\x3b\xef\xb9\x8d\x72\x85\xbf\x16\x69\xdf\x2c\x71\xce\x0e\x99\xde\xb4\x46\xd2\xa5\xaa\x74\x8f\x8f\x11\x64\x8e\x0a\xec\x6e\x85\xe5\xe5\xc3\x6d\x4f\x97\xb9\x0f\x9b\x67\xc6\x08\x3d\xf5\xca\xda\x47\x33\x94\x2c\x5c\xd9\x11\x6f\x10\x2a\x23\xf1\x6b\x6a\xe1\xf7\x37\x07\x10\xab\x73\x81\xf2\xa7\x58\x7b\xb4\x15\x33\x07\x28\xcf\xd5\xc1\x4d\x2c\x7c\xfc\x5d\x73\xbe\x0d\x57\x83\x4b\xc6\x01\xeb\x45\xb4\x46\x0f\x45\x5e\x56\x6d\x5a\x4c\xef\x00\x00\x1f\xff\x1e\x9e\x80\x8c\x4c\x22\xfd\x15\xe0\x9a\x2c\x0d\x8a\x9e\xcc\x25\x2e\x94\xb1\x2b\x35\xad\xd5\xb5\xcb\xf2\x27\x78\x04\x9b\x2f\xee\x0a\x
func parametersKeyBytes() ([]byte, error) {
return bindataRead(
_parametersKey,
"parameters.key",
)
}
func parametersKey() (*asset, error) {
bytes, err := parametersKeyBytes()
if err != nil {
return nil, err
}
info := bindataFileInfo{name: "parameters.key", size: 2392664, mode: os.FileMode(0664), modTime: time.Unix(1657050139, 0)}
a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xbe, 0x13, 0xc7, 0xc1, 0x55, 0x31, 0x3b, 0x42, 0xa4, 0xef, 0xbb, 0xdd, 0x59, 0xf, 0x36, 0x34, 0xd7, 0xb9, 0xa2, 0x3, 0xf5, 0x54, 0xad, 0x60, 0x4b, 0x8e, 0xec, 0x85, 0xc5, 0xeb, 0xda, 0x7a}}
return a, nil
}
// Asset loads and returns the asset for the given name.
// It returns an error if the asset could not be found or
// could not be loaded.
func Asset(name string) ([]byte, error) {
canonicalName := strings.Replace(name, "\\", "/", -1)
if f, ok := _bindata[canonicalName]; ok {
a, err := f()
if err != nil {
return nil, fmt.Errorf("Asset %s can't read by error: %v", name, err)
}
return a.bytes, nil
}
return nil, fmt.Errorf("Asset %s not found", name)
}
// AssetString returns the asset contents as a string (instead of a []byte).
func AssetString(name string) (string, error) {
data, err := Asset(name)
return string(data), err
}
// MustAsset is like Asset but panics when Asset would return an error.
// It simplifies safe initialization of global variables.
func MustAsset(name string) []byte {
a, err := Asset(name)
if err != nil {
panic("asset: Asset(" + name + "): " + err.Error())
}
return a
}
// MustAssetString is like AssetString but panics when Asset would return an
// error. It simplifies safe initialization of global variables.
func MustAssetString(name string) string {
return string(MustAsset(name))
}
// AssetInfo loads and returns the asset info for the given name.
// It returns an error if the asset could not be found or
// could not be loaded.
func AssetInfo(name string) (os.FileInfo, error) {
canonicalName := strings.Replace(name, "\\", "/", -1)
if f, ok := _bindata[canonicalName]; ok {
a, err := f()
if err != nil {
return nil, fmt.Errorf("AssetInfo %s can't read by error: %v", name, err)
}
return a.info, nil
}
return nil, fmt.Errorf("AssetInfo %s not found", name)
}
// AssetDigest returns the digest of the file with the given name. It returns an
// error if the asset could not be found or the digest could not be loaded.
func AssetDigest(name string) ([sha256.Size]byte, error) {
canonicalName := strings.Replace(name, "\\", "/", -1)
if f, ok := _bindata[canonicalName]; ok {
a, err := f()
if err != nil {
return [sha256.Size]byte{}, fmt.Errorf("AssetDigest %s can't read by error: %v", name, err)
}
return a.digest, nil
}
return [sha256.Size]byte{}, fmt.Errorf("AssetDigest %s not found", name)
}
// Digests returns a map of all known files and their checksums.
func Digests() (map[string][sha256.Size]byte, error) {
mp := make(map[string][sha256.Size]byte, len(_bindata))
for name := range _bindata {
a, err := _bindata[name]()
if err != nil {
return nil, err
}
mp[name] = a.digest
}
return mp, nil
}
// AssetNames returns the names of the assets.
func AssetNames() []string {
names := make([]string, 0, len(_bindata))
for name := range _bindata {
names = append(names, name)
}
return names
}
// _bindata is a table, holding each asset generator, mapped to its name.
var _bindata = map[string]func() (*asset, error){
"parameters.key": parametersKey,
}
// AssetDebug is true if the assets were built with the debug flag enabled.
const AssetDebug = false
// AssetDir returns the file names below a certain
// directory embedded in the file by go-bindata.
// For example if you run go-bindata on data/... and data contains the
// following hierarchy:
// data/
// foo.txt
// img/
// a.png
// b.png
// then AssetDir("data") would return []string{"foo.txt", "img"},
// AssetDir("data/img") would return []string{"a.png", "b.png"},
// AssetDir("foo.txt") and AssetDir("notexist") would return an error, and
// AssetDir("") will return []string{"data"}.
func AssetDir(name string) ([]string, error) {
node := _bintree
if len(name) != 0 {
canonicalName := strings.Replace(name, "\\", "/", -1)
pathList := strings.Split(canonicalName, "/")
for _, p := range pathList {
node = node.Children[p]
if node == nil {
return nil, fmt.Errorf("Asset %s not found", name)
}
}
}
if node.Func != nil {
return nil, fmt.Errorf("Asset %s not found", name)
}
rv := make([]string, 0, len(node.Children))
for childName := range node.Children {
rv = append(rv, childName)
}
return rv, nil
}
type bintree struct {
Func func() (*asset, error)
Children map[string]*bintree
}
var _bintree = &bintree{nil, map[string]*bintree{
"parameters.key": {parametersKey, map[string]*bintree{}},
}}
// RestoreAsset restores an asset under the given directory.
func RestoreAsset(dir, name string) error {
data, err := Asset(name)
if err != nil {
return err
}
info, err := AssetInfo(name)
if err != nil {
return err
}
err = os.MkdirAll(_filePath(dir, filepath.Dir(name)), os.FileMode(0755))
if err != nil {
return err
}
err = ioutil.WriteFile(_filePath(dir, name), data, info.Mode())
if err != nil {
return err
}
return os.Chtimes(_filePath(dir, name), info.ModTime(), info.ModTime())
}
// RestoreAssets restores an asset under the given directory recursively.
func RestoreAssets(dir, name string) error {
children, err := AssetDir(name)
// File
if err != nil {
return RestoreAsset(dir, name)
}
// Dir
for _, child := range children {
err = RestoreAssets(dir, filepath.Join(name, child))
if err != nil {
return err
}
}
return nil
}
func _filePath(dir, name string) string {
canonicalName := strings.Replace(name, "\\", "/", -1)
return filepath.Join(append([]string{dir}, strings.Split(canonicalName, "/")...)...)
}