_id
stringlengths
2
7
text
stringlengths
6
2.61k
title
stringclasses
1 value
c172800
// Deterministically generates new priv-key bytes from key.
c172801
// Set hashes the key and value and appends it to the kv pairs.
c172802
// NewPrivKeyLedgerSecp256k1 will generate a new key and store the // public key for later use.
c172803
// ValidateKey allows us to verify the sanity of a key // after loading it from disk
c172804
// 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.
c172805
// 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
c172806
// Equals fulfils PrivKey Interface - makes sure both keys refer to the // same
c172807
// SimpleHashFromHashers computes a Merkle tree from items that can be hashed.
c172808
// Verify that leafHash is a leaf hash of the simple-merkle-tree // which hashes to rootHash.
c172809
// 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.
c172810
// ComputePrivateKey returns the private key using the master mprivHex and chainCodeHex // for the given path and index.
c172811
// ComputeBTCAddressForPrivKey returns the Bitcoin address for the given privKey.
c172812
// SignBTCMessage signs a "Bitcoin Signed Message".
c172813
// ComputeMastersFromSeed returns the master public key, master secret, and chain code in hex.
c172814
// ComputeWIF returns the privKey in Wallet Import Format.
c172815
// DerivePublicKeyForPath derives the public key by following the path from pubKeyBytes // using the given chainCode.
c172816
// 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.
c172817
// DerivePublicKey derives the public key with index and chainCode. // It returns the new public key and new chain code.
c172818
// eliptic curve pubkey addition
c172819
// modular big endian addition
c172820
// HexDecode hex decodes the str. If str is not valid hex // it will return an empty byte slice.
c172821
// I64 returns the two halfs of the SHA512 HMAC of key and data.
c172822
// BTCAddrFromPubKeyBytes returns a B58 encoded Bitcoin mainnet address.
c172823
// BTCAddrBytesFromPubKeyBytes returns a hex Bitcoin mainnet address and its checksum.
c172824
// WIFFromPrivKeyBytes returns the privKeyBytes in Wallet Import Format.
c172825
// PubKeyBytesFromPrivKeyBytes returns the optionally compressed public key bytes.
c172826
// ReverseBytes returns the buf in the opposite order
c172827
// getLedger gets a copy of the device, and caches it
c172828
// 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
c172829
// CreateOffline creates a new reference to an offline keypair // It returns the created key info
c172830
// 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.
c172831
// List returns the keys from storage in alphabetical order.
c172832
// Get returns the public information about one key.
c172833
// Sign signs the msg with the named key. // It returns an error if the key doesn't exist or the decryption fails.
c172834
// ExportPubKey returns public keys in ASCII armored format. // Retrieve a Info object by its name and return the public key in // a portable format.
c172835
// 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.
c172836
// 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.
c172837
// This only uses the OS's randomness
c172838
// CompareHashAndPassword compares a bcrypt hashed password with its possible // plaintext equivalent. Returns nil on success, or an error on failure.
c172839
// 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.
c172840
// sbytes should begin where decodeVersion left off.
c172841
// ASTToString returns the demangled name of the AST.
c172842
// writeByte adds a byte to the string being printed.
c172843
// writeString adds a string to the string being printed.
c172844
// Print an AST.
c172845
// Print qualifiers as an inner type by just printing the qualifiers.
c172846
// printBase is common print code for types that are printed with a // simple suffix.
c172847
// Print the array dimension.
c172848
// printArgs prints the arguments of a function type. It looks at the // inner types for spacing.
c172849
// The parenthesize function prints the string for val, wrapped in // parentheses if necessary.
c172850
// Print the inner types.
c172851
// Print the most recent inner type. If save is not nil, only print // prefixes.
c172852
// isEmpty returns whether printing a will not print anything.
c172853
// Filter demangles a C++ symbol name, returning the human-readable C++ name. // If any error occurs during demangling, the input string is returned.
c172854
// 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.
c172855
// 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.
c172856
// The doDemangle function is the entry point into the demangler proper.
c172857
// copy returns a copy of the current state.
c172858
// fail panics with demangleErr, to be caught in doDemangle.
c172859
// failEarlier is like fail, but decrements the offset to indicate // that the point of failure occurred earlier in the string.
c172860
// advance advances the current string offset.
c172861
// checkChar requires that the next character in the string be c, and // advances past it.
c172862
// Error implements the builtin error interface for demangleErr.
c172863
// adjustErr adjusts the position of err, if it is a demangleErr, // and returns err.
c172864
// hasReturnType returns whether the mangled form of a will have a // return type.
c172865
// isCDtorConversion returns when an AST is a constructor, a // destructor, or a conversion operator.
c172866
// Parse a Java resource special-name.
c172867
// mergeQualifiers merges two qualifer lists into one.
c172868
// setTemplate sets the Template field of any TemplateParam's in a. // This handles the forward referencing template parameters found in // cast operators.
c172869
// 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.
c172870
// exprList parses a sequence of expressions up to a terminating character.
c172871
// Recognize a clone suffix. These are not part of the mangling API, // but are added by GCC when cloning functions.
c172872
// simplify replaces template parameters with their expansions, and // merges qualifiers.
c172873
// findArgumentPack walks the AST looking for the argument pack for a // pack expansion. We find it via a template parameter.
c172874
// Demangle a string just as the GNU c++filt program does.
c172875
// options returns the demangling options to use based on the command // line flags.
c172876
// 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...
c172877
// 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.
c172878
// 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.
c172879
// 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.
c172880
// defaultPool returns a connection pool to one Sentinel. This allows // us to call concurrent requests to Sentinel using connection Do method.
c172881
// close connection pool to Sentinel. // Lock must be hold by caller.
c172882
// MasterAddr returns an address of current Redis master instance.
c172883
// SlaveAddrs returns a slice with known slave addresses of current master instance.
c172884
// Addr returns an address of slave.
c172885
// Available returns if slave is in working state at moment based on information in slave flags.
c172886
// Slaves returns a slice with known slaves of master instance.
c172887
// SentinelAddrs returns a slice of known Sentinel addresses Sentinel server aware of.
c172888
// Close closes current connection to Sentinel.
c172889
// 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...
c172890
// NewFromServers returns a new Client using the provided Servers.
c172891
// Close closes all currently open connections.
c172892
// 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...
c172893
// Flush removes all the items in the cache after expiration seconds. If // expiration is <= 0, it removes all the items right now.
c172894
// Closing returns whether the child is closing
c172895
// OnClosingContext derives a context from a given goprocess that will // be 'Done' when the process is closing
c172896
// OnClosedContext derives a context from a given goprocess that will // be 'Done' when the process is closed
c172897
// 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.
c172898
// WithParent constructs and returns a Process with a given parent.
c172899
// WithContextAndTeardown is a helper function to set teardown at initiation // of WithContext