Versions in this module Expand all Collapse all v1 v1.0.0 Jan 9, 2019 Changes in this version + var ErrCannotVerifyPayment = errors.New("cannot verify payment at this time") + func Base64File(filename string) (string, error) + func CleanAndExpandPath(path, homeDir string) string + func ConvertBodyToByteArray(r io.Reader, print bool) []byte + func ConvertDigest(d string) ([sha256.Size]byte, bool) + func ConvertSignature(s string) ([identity.SignatureSize]byte, error) + func ConvertStringToken(token string) ([]byte, error) + func CreateProposalNameRegex() string + func DerivePaywallAddress(params *chaincfg.Params, xpub string, index uint32) (string, error) + func Digest(b []byte) []byte + func DigestFile(filename string) (string, error) + func DigestFileBytes(filename string) ([]byte, error) + func FQDN() string + func FetchTxWithBlockExplorers(address string, amount uint64, txnotbefore int64, minConfirmations uint64) (string, uint64, error) + func FileExists(name string) bool + func GenCertPair(curve elliptic.Curve, org, certFile, keyFile string) error + func GetErrorFromJSON(r io.Reader) (interface{}, error) + func GetProposalName(payload string) (string, error) + func HcStringToAmount(hcstr string) (uint64, error) + func IdentityFromString(id string) (*identity.PublicIdentity, error) + func IsDigest(digest string) bool + func IsValidProposalName(str string) bool + func LoadFile(filename string) (mimeType string, digest string, payload string, err error) + func MimeFile(filename string) (string, error) + func NewClient(skipVerify bool, certFilename string) (*http.Client, error) + func NormalizeAddress(addr, defaultPort string) string + func ParseGetParams(r *http.Request, dst interface{}) error + func PayWithTestnetFaucet(faucetURL string, address string, amount uint64, overridetoken string) (string, error) + func Random(n int) ([]byte, error) + func RandomUint64() (uint64, error) + func RemoteIdentity(skipTLSVerify bool, host, cert string) (*identity.PublicIdentity, error) + func RespondWithCopy(w http.ResponseWriter, code int, contentType string, body []byte) error + func RespondWithError(w http.ResponseWriter, code int, message string) + func RespondWithJSON(w http.ResponseWriter, code int, payload interface{}) + func Timestamp(host string, digests []*[sha256.Size]byte) error + func Verify(host string, digests []string) (*v1.VerifyReply, error) + func VerifyChallenge(id *identity.PublicIdentity, challenge []byte, signature string) error + type BEBackupTransaction struct + Address string + Amount json.Number + Confirmations uint64 + Timestamp int64 + TxId string + type BEPrimaryTransaction struct + Confirmations uint64 + Timestamp int64 + TxId string + Vout []BEPrimaryTransactionVout + type BEPrimaryTransactionScriptPubkey struct + Addresses []string + type BEPrimaryTransactionVout struct + Amount json.Number + ScriptPubkey BEPrimaryTransactionScriptPubkey + type FaucetResponse struct + Error string + Txid string + type PaywallGatewayNewOrderResponse struct + Error string + OrderID string + PaywallAmount uint64 + type TxDetails struct + Address string + Amount uint64 + Confirmations uint64 + Timestamp int64 + TxID string + func FetchTxsForAddress(address string) ([]TxDetails, error) + func FetchTxsForAddressNotBefore(address string, notBefore int64) ([]TxDetails, error)