_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c172800 | validation | // Deterministically generates new priv-key bytes from key. | {
"resource": ""
} | ||
c172801 | validation | // Set hashes the key and value and appends it to the kv pairs. | {
"resource": ""
} | ||
c172802 | validation | // NewPrivKeyLedgerSecp256k1 will generate a new key and store the
// public key for later use. | {
"resource": ""
} | ||
c172803 | validation | // ValidateKey allows us to verify the sanity of a key
// after loading it from disk | {
"resource": ""
} | ||
c172804 | validation | // Sign calls the ledger and stores the PubKey for future use
//
// Communication is checked on NewPrivKeyLedger and PrivKeyFromBytes,
// returning an error, so this should only trigger if the privkey is held
// in memory for a while before use. | {
"resource": ""
} | ||
c172805 | validation | // getPubKey reads the pubkey the ledger itself
// since this involves IO, it may return an error, which is not exposed
// in the PubKey interface, so this function allows better error handling | {
"resource": ""
} | ||
c172806 | validation | // Equals fulfils PrivKey Interface - makes sure both keys refer to the
// same | {
"resource": ""
} | ||
c172807 | validation | // SimpleHashFromHashers computes a Merkle tree from items that can be hashed. | {
"resource": ""
} | ||
c172808 | validation | // Verify that leafHash is a leaf hash of the simple-merkle-tree
// which hashes to rootHash. | {
"resource": ""
} | ||
c172809 | validation | // Use the leafHash and innerHashes to get the root merkle hash.
// If the length of the innerHashes slice isn't exactly correct, the result is nil.
// Recursive impl. | {
"resource": ""
} | ||
c172810 | validation | // ComputePrivateKey returns the private key using the master mprivHex and chainCodeHex
// for the given path and index. | {
"resource": ""
} | ||
c172811 | validation | // ComputeBTCAddressForPrivKey returns the Bitcoin address for the given privKey. | {
"resource": ""
} | ||
c172812 | validation | // SignBTCMessage signs a "Bitcoin Signed Message". | {
"resource": ""
} | ||
c172813 | validation | // ComputeMastersFromSeed returns the master public key, master secret, and chain code in hex. | {
"resource": ""
} | ||
c172814 | validation | // ComputeWIF returns the privKey in Wallet Import Format. | {
"resource": ""
} | ||
c172815 | validation | // DerivePublicKeyForPath derives the public key by following the path from pubKeyBytes
// using the given chainCode. | {
"resource": ""
} | ||
c172816 | validation | // DerivePrivateKey derives the private key with index and chainCode.
// If prime is true, the derivation is 'hardened'.
// It returns the new private key and new chain code. | {
"resource": ""
} | ||
c172817 | validation | // DerivePublicKey derives the public key with index and chainCode.
// It returns the new public key and new chain code. | {
"resource": ""
} | ||
c172818 | validation | // eliptic curve pubkey addition | {
"resource": ""
} | ||
c172819 | validation | // modular big endian addition | {
"resource": ""
} | ||
c172820 | validation | // HexDecode hex decodes the str. If str is not valid hex
// it will return an empty byte slice. | {
"resource": ""
} | ||
c172821 | validation | // I64 returns the two halfs of the SHA512 HMAC of key and data. | {
"resource": ""
} | ||
c172822 | validation | // BTCAddrFromPubKeyBytes returns a B58 encoded Bitcoin mainnet address. | {
"resource": ""
} | ||
c172823 | validation | // BTCAddrBytesFromPubKeyBytes returns a hex Bitcoin mainnet address and its checksum. | {
"resource": ""
} | ||
c172824 | validation | // WIFFromPrivKeyBytes returns the privKeyBytes in Wallet Import Format. | {
"resource": ""
} | ||
c172825 | validation | // PubKeyBytesFromPrivKeyBytes returns the optionally compressed public key bytes. | {
"resource": ""
} | ||
c172826 | validation | // ReverseBytes returns the buf in the opposite order | {
"resource": ""
} | ||
c172827 | validation | // getLedger gets a copy of the device, and caches it | {
"resource": ""
} | ||
c172828 | validation | // CreateLedger creates a new locally-stored reference to a Ledger keypair
// It returns the created key info and an error if the Ledger could not be queried | {
"resource": ""
} | ||
c172829 | validation | // CreateOffline creates a new reference to an offline keypair
// It returns the created key info | {
"resource": ""
} | ||
c172830 | validation | // Recover converts a seedphrase to a private key and persists it,
// encrypted with the given passphrase. Functions like Create, but
// seedphrase is input not output. | {
"resource": ""
} | ||
c172831 | validation | // List returns the keys from storage in alphabetical order. | {
"resource": ""
} | ||
c172832 | validation | // Get returns the public information about one key. | {
"resource": ""
} | ||
c172833 | validation | // Sign signs the msg with the named key.
// It returns an error if the key doesn't exist or the decryption fails. | {
"resource": ""
} | ||
c172834 | validation | // ExportPubKey returns public keys in ASCII armored format.
// Retrieve a Info object by its name and return the public key in
// a portable format. | {
"resource": ""
} | ||
c172835 | validation | // ImportPubKey imports ASCII-armored public keys.
// Store a new Info object holding a public key only, i.e. it will
// not be possible to sign with it as it lacks the secret key. | {
"resource": ""
} | ||
c172836 | validation | // Update changes the passphrase with which an already stored key is
// encrypted.
//
// oldpass must be the current passphrase used for encryption,
// newpass will be the only valid passphrase from this time forward. | {
"resource": ""
} | ||
c172837 | validation | // This only uses the OS's randomness | {
"resource": ""
} | ||
c172838 | validation | // CompareHashAndPassword compares a bcrypt hashed password with its possible
// plaintext equivalent. Returns nil on success, or an error on failure. | {
"resource": ""
} | ||
c172839 | validation | // Cost returns the hashing cost used to create the given hashed
// password. When, in the future, the hashing cost of a password system needs
// to be increased in order to adjust for greater computational power, this
// function allows one to establish which passwords need to be updated. | {
"resource": ""
} | ||
c172840 | validation | // sbytes should begin where decodeVersion left off. | {
"resource": ""
} | ||
c172841 | validation | // ASTToString returns the demangled name of the AST. | {
"resource": ""
} | ||
c172842 | validation | // writeByte adds a byte to the string being printed. | {
"resource": ""
} | ||
c172843 | validation | // writeString adds a string to the string being printed. | {
"resource": ""
} | ||
c172844 | validation | // Print an AST. | {
"resource": ""
} | ||
c172845 | validation | // Print qualifiers as an inner type by just printing the qualifiers. | {
"resource": ""
} | ||
c172846 | validation | // printBase is common print code for types that are printed with a
// simple suffix. | {
"resource": ""
} | ||
c172847 | validation | // Print the array dimension. | {
"resource": ""
} | ||
c172848 | validation | // printArgs prints the arguments of a function type. It looks at the
// inner types for spacing. | {
"resource": ""
} | ||
c172849 | validation | // The parenthesize function prints the string for val, wrapped in
// parentheses if necessary. | {
"resource": ""
} | ||
c172850 | validation | // Print the inner types. | {
"resource": ""
} | ||
c172851 | validation | // Print the most recent inner type. If save is not nil, only print
// prefixes. | {
"resource": ""
} | ||
c172852 | validation | // isEmpty returns whether printing a will not print anything. | {
"resource": ""
} | ||
c172853 | validation | // Filter demangles a C++ symbol name, returning the human-readable C++ name.
// If any error occurs during demangling, the input string is returned. | {
"resource": ""
} | ||
c172854 | validation | // ToString demangles a C++ symbol name, returning human-readable C++
// name or an error.
// If the name does not appear to be a C++ symbol name at all, the
// error will be ErrNotMangledName. | {
"resource": ""
} | ||
c172855 | validation | // ToAST demangles a C++ symbol name into an abstract syntax tree
// representing the symbol.
// If the NoParams option is passed, and the name has a function type,
// the parameter types are not demangled.
// If the name does not appear to be a C++ symbol name at all, the
// error will be ErrNotMangledName. | {
"resource": ""
} | ||
c172856 | validation | // The doDemangle function is the entry point into the demangler proper. | {
"resource": ""
} | ||
c172857 | validation | // copy returns a copy of the current state. | {
"resource": ""
} | ||
c172858 | validation | // fail panics with demangleErr, to be caught in doDemangle. | {
"resource": ""
} | ||
c172859 | validation | // failEarlier is like fail, but decrements the offset to indicate
// that the point of failure occurred earlier in the string. | {
"resource": ""
} | ||
c172860 | validation | // advance advances the current string offset. | {
"resource": ""
} | ||
c172861 | validation | // checkChar requires that the next character in the string be c, and
// advances past it. | {
"resource": ""
} | ||
c172862 | validation | // Error implements the builtin error interface for demangleErr. | {
"resource": ""
} | ||
c172863 | validation | // adjustErr adjusts the position of err, if it is a demangleErr,
// and returns err. | {
"resource": ""
} | ||
c172864 | validation | // hasReturnType returns whether the mangled form of a will have a
// return type. | {
"resource": ""
} | ||
c172865 | validation | // isCDtorConversion returns when an AST is a constructor, a
// destructor, or a conversion operator. | {
"resource": ""
} | ||
c172866 | validation | // Parse a Java resource special-name. | {
"resource": ""
} | ||
c172867 | validation | // mergeQualifiers merges two qualifer lists into one. | {
"resource": ""
} | ||
c172868 | validation | // setTemplate sets the Template field of any TemplateParam's in a.
// This handles the forward referencing template parameters found in
// cast operators. | {
"resource": ""
} | ||
c172869 | validation | // clearTemplateArgs gives an error for any unset Template field in
// args. This handles erroneous cases where a cast operator with a
// forward referenced template is in the scope of another cast
// operator. | {
"resource": ""
} | ||
c172870 | validation | // exprList parses a sequence of expressions up to a terminating character. | {
"resource": ""
} | ||
c172871 | validation | // Recognize a clone suffix. These are not part of the mangling API,
// but are added by GCC when cloning functions. | {
"resource": ""
} | ||
c172872 | validation | // simplify replaces template parameters with their expansions, and
// merges qualifiers. | {
"resource": ""
} | ||
c172873 | validation | // findArgumentPack walks the AST looking for the argument pack for a
// pack expansion. We find it via a template parameter. | {
"resource": ""
} | ||
c172874 | validation | // Demangle a string just as the GNU c++filt program does. | {
"resource": ""
} | ||
c172875 | validation | // options returns the demangling options to use based on the command
// line flags. | {
"resource": ""
} | ||
c172876 | validation | // ErrorHandler simply counts the number of errors in the
// context and, if more than 0, writes a response with an
// error code and a JSON payload describing the errors.
// The response will have a JSON content-type.
// Middleware remaining on the stack will not even see the request
// if, by this point, there are an... | {
"resource": ""
} | ||
c172877 | validation | // Idle indicates to the server that the client is ready to receive unsolicited
// mailbox update messages. When the client wants to send commands again, it
// must first close stop. | {
"resource": ""
} | ||
c172878 | validation | // IdleWithFallback tries to idle if the server supports it. If it doesn't, it
// falls back to polling. If pollInterval is zero, a sensible default will be
// used. | {
"resource": ""
} | ||
c172879 | validation | // putToBottom puts Sentinel address to the bottom of address list.
// We call this method internally when see that some Sentinel failed to answer
// on application request so next time we start with another one.
//
// Lock must be held by caller. | {
"resource": ""
} | ||
c172880 | validation | // defaultPool returns a connection pool to one Sentinel. This allows
// us to call concurrent requests to Sentinel using connection Do method. | {
"resource": ""
} | ||
c172881 | validation | // close connection pool to Sentinel.
// Lock must be hold by caller. | {
"resource": ""
} | ||
c172882 | validation | // MasterAddr returns an address of current Redis master instance. | {
"resource": ""
} | ||
c172883 | validation | // SlaveAddrs returns a slice with known slave addresses of current master instance. | {
"resource": ""
} | ||
c172884 | validation | // Addr returns an address of slave. | {
"resource": ""
} | ||
c172885 | validation | // Available returns if slave is in working state at moment based on information in slave flags. | {
"resource": ""
} | ||
c172886 | validation | // Slaves returns a slice with known slaves of master instance. | {
"resource": ""
} | ||
c172887 | validation | // SentinelAddrs returns a slice of known Sentinel addresses Sentinel server aware of. | {
"resource": ""
} | ||
c172888 | validation | // Close closes current connection to Sentinel. | {
"resource": ""
} | ||
c172889 | validation | // NewServerList returns a new ServerList with the given servers.
// All servers have the same weight. To give a server more weight,
// list it multiple times.
//
// NewServerList returns an error if any of the received addresses
// is not valid or fails to resolve, but it doesn't try to connect
// to the provided serv... | {
"resource": ""
} | ||
c172890 | validation | // NewFromServers returns a new Client using the provided Servers. | {
"resource": ""
} | ||
c172891 | validation | // Close closes all currently open connections. | {
"resource": ""
} | ||
c172892 | validation | // Increment atomically increments key by delta. The return value is
// the new value after being incremented or an error. If the value
// didn't exist in memcached the error is ErrCacheMiss. The value in
// memcached must be an decimal number, or an error will be returned.
// On 64-bit overflow, the new value wraps ar... | {
"resource": ""
} | ||
c172893 | validation | // Flush removes all the items in the cache after expiration seconds. If
// expiration is <= 0, it removes all the items right now. | {
"resource": ""
} | ||
c172894 | validation | // Closing returns whether the child is closing | {
"resource": ""
} | ||
c172895 | validation | // OnClosingContext derives a context from a given goprocess that will
// be 'Done' when the process is closing | {
"resource": ""
} | ||
c172896 | validation | // OnClosedContext derives a context from a given goprocess that will
// be 'Done' when the process is closed | {
"resource": ""
} | ||
c172897 | validation | // LimitChan returns a rate-limiting channel. it is the usual, simple,
// golang-idiomatic rate-limiting semaphore. This function merely
// initializes it with certain buffer size, and sends that many values,
// so it is ready to be used. | {
"resource": ""
} | ||
c172898 | validation | // WithParent constructs and returns a Process with a given parent. | {
"resource": ""
} | ||
c172899 | validation | // WithContextAndTeardown is a helper function to set teardown at initiation
// of WithContext | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.