Versions in this module Expand all Collapse all v1 v1.9.10 Nov 26, 2018 v1.9.8 Nov 19, 2018 Changes in this version + const APIError + const AlreadyExist + const EthNotEnoughGas + const EthOpError + const InvalidAuthentication + const InvalidCard + const InvalidEncoding + const InvalidFile + const InvalidHash + const InvalidJSON + const InvalidKey + const InvalidPassphrase + const InvalidProject + const InvalidProof + const InvalidSignature + const NetworkError + const NetworkError404 + const NoFile + const None + const NotYetImplemented + const SignError + const UnknownElement + const UnknownError + const UnknownProvider + var ServerURL = "https://fireblock.io" + func B32ToECDSA(b32 string) string + func B32ToPGP(b32 string) string + func B32Type(b32 string) string + func CheckAllCard(card, cardID string) (string, string, string, error) + func CheckCard(card, cardID string) (string, string, string, error) + func CheckGithub(url, ghUID, useruid, fingerprint string) bool + func CheckHTTPS(url, dnsUID, useruid, fingerprint string) bool + func CheckLinkedin(url, lkUID, useruid, fingerprint string) bool + func CheckTwitter(url, twUID, useruid, fingerprint string) bool + func DelStore(name string) + func ECDSAExport(privkey string) (string, error) + func ECDSAFingerprint(key string) (string, error) + func ECDSAImport(b64u string) (string, error) + func ECDSASign(privkey, message string) (string, error) + func ECDSAToB32(ecdsa string) string + func ECDSAVerify(pubkey, message, signature string) (bool, error) + func HTTPCard(keyuid, token string) (string, error) + func HTTPKey(keyuid string) (string, error) + func IsInBatch(data, hash string) bool + func IsSha256(value string) bool + func Keccak256(text string) string + func ListFilesInDirectory(root string) ([]string, error) + func LoadB64U(data string) (string, string, error) + func LoadFioContent(content string) (ktype, keyuid, privkey, pubkey string, err error) + func LoadFioFile(filepath string) (string, string, string, string, error) + func PGPExport(key string) string + func PGPFingerprint(key string) (string, error) + func PGPImport(key string) (string, error) + func PGPSign(message, privkey, passphrase string) (string, error) + func PGPToB32(pgp string) string + func PGPVerify(signature, message, pubkey string) (bool, error) + func PostWithToken(c *http.Client, url string, token string, body io.Reader) (resp *http.Response, err error) + func RawSha256(text string) []byte + func Sha1(text string) string + func Sha256(text string) string + func Sha256B(data []byte) [32]byte + func Sha256File(filepath string) (string, error) + func VerifySignature(ktype, pubkey, message, signature string) (bool, error) + type BatchElem struct + Filename string + Hash string + Size int64 + Type string + type CardData struct + Card string + ID string + type CardReq struct + Keyuid string + type ECDSAFIO struct + Keys []json.RawMessage + type ECDSAJWK struct + Crv string + D string + Keyops []string + Kty string + X string + Y string + type ErrorRes struct + Detail string + ID string + type FBKError struct + func NewFBKError(text string, code int) *FBKError + func (e *FBKError) Error() string + func (e *FBKError) Type() int + type GistData struct + ForkOf json.RawMessage + Owner OwnerData + type JSONRes struct + Data json.RawMessage + Errors []ErrorRes + type JWKKey struct + Crv string + D string + Ext bool + KeyOps []string + Kty string + X string + Y string + type KeyFIO struct + KType string + KeyUID string + Privkey string + Pubkey string + type KeyResponseData struct + ID string + Key []interface{} + type Metadata struct + Filename string + Kind string + Size int64 + Type string + func MetadataFile(filepath string) (Metadata, error) + type OwnerData struct + Login string + type ProviderData struct + Date string + Proof string + Provider string + UID string + type ProviderInfo struct + UID string + type ProviderState struct + Proof string + Status string + UID string + type ProviderStates struct + Github ProviderState + Https ProviderState + Linkedin ProviderState + Twitter ProviderState + func VerifyCard(card, pkeyUID, pktype string) (pstates *ProviderStates, err error) + type Store struct + func GetStore(name string) *Store + func NewStore(name string) *Store + func (store *Store) GetBool(key string, def bool) bool + func (store *Store) GetString(key, def string) string + func (store *Store) SetBool(key string, value bool) + func (store *Store) SetString(key, value string)