_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c161500
train
// CreateTeamTLF implements the KeybaseService interface for // KeybaseServiceMeasured.
{ "resource": "" }
c161501
train
// GetTeamSettings implements the KeybaseService interface for // KeybaseServiceMeasured.
{ "resource": "" }
c161502
train
// GetCurrentMerkleRoot implements the KeybaseService interface for // KeybaseServiceMeasured.
{ "resource": "" }
c161503
train
// VerifyMerkleRoot implements the KBPKI interface for // KeybaseServiceMeasured.
{ "resource": "" }
c161504
train
// CurrentSession implements the KeybaseService interface for // KeybaseServiceMeasured.
{ "resource": "" }
c161505
train
// FavoriteAdd implements the KeybaseService interface for // KeybaseServiceMeasured.
{ "resource": "" }
c161506
train
// FavoriteDelete implements the KeybaseService interface for // KeybaseServiceMeasured.
{ "resource": "" }
c161507
train
// FavoriteList implements the KeybaseService interface for // KeybaseServiceMeasured.
{ "resource": "" }
c161508
train
// EncryptFavorites implements the KeybaseService interface for // KeybaseServiceMeasured.
{ "resource": "" }
c161509
train
// NotifyOnlineStatusChanged implements the KeybaseService interface for // KeybaseServiceMeasured.
{ "resource": "" }
c161510
train
// Notify implements the KeybaseService interface for KeybaseServiceMeasured.
{ "resource": "" }
c161511
train
// NotifyPathUpdated implements the KeybaseService interface for // KeybaseServiceMeasured.
{ "resource": "" }
c161512
train
// NotifySyncStatus implements the KeybaseService interface for // KeybaseServiceMeasured.
{ "resource": "" }
c161513
train
// NotifyOverallSyncStatus implements the KeybaseService interface for // KeybaseServiceMeasured.
{ "resource": "" }
c161514
train
// FlushUserFromLocalCache implements the KeybaseService interface for // KeybaseServiceMeasured.
{ "resource": "" }
c161515
train
// ClearCaches implements the KeybaseService interface for // KeybaseServiceMeasured.
{ "resource": "" }
c161516
train
// EstablishMountDir implements the KeybaseDaemon interface for KeybaseDaemonLocal.
{ "resource": "" }
c161517
train
// PutGitMetadata implements the KeybaseDaemon interface for // KeybaseServiceMeasured.
{ "resource": "" }
c161518
train
// NewRPCHandlerWithCtx returns a new instance of a Git RPC handler.
{ "resource": "" }
c161519
train
// CreateRepo implements keybase1.KBFSGitInterface for KeybaseServiceBase.
{ "resource": "" }
c161520
train
// DeleteRepo implements keybase1.KBFSGitInterface for KeybaseServiceBase.
{ "resource": "" }
c161521
train
// Gc implements keybase1.KBFSGitInterface for KeybaseServiceBase.
{ "resource": "" }
c161522
train
// PassphraseStream returns a copy of the currently cached passphrase stream, // or nil if none exists.
{ "resource": "" }
c161523
train
// AddPUK returns no error unless the user has no PUK, in which case it returns a libkb.NoNaClEncryptionKeyError
{ "resource": "" }
c161524
train
// String for flag interface.
{ "resource": "" }
c161525
train
// Set for flag interface.
{ "resource": "" }
c161526
train
// NewPGPKeyfinder creates a PGPKeyfinder engine.
{ "resource": "" }
c161527
train
// don't identify or track, just load the users
{ "resource": "" }
c161528
train
// NewUntrackEngine creates a default UntrackEngine for tracking theirName.
{ "resource": "" }
c161529
train
// NewAuditor makes a new auditor
{ "resource": "" }
c161530
train
// NewAuditorAndInstall makes a new Auditor and dangles it // off of the given GlobalContext.
{ "resource": "" }
c161531
train
// doPreProbes probabilistically checks that no team occupied the slot before the team // in question was created. It selects probes from before the team was created. Each // probed leaf must not be occupied.
{ "resource": "" }
c161532
train
// GetCurrentSessionIfPossible returns the current username and UID // from kbpki.GetCurrentSession. If sessionNotRequired is true // NoCurrentSessionError is ignored and empty username and uid will be // returned. If it is false all errors are returned.
{ "resource": "" }
c161533
train
// SessionInfoFromProtocol returns SessionInfo from Session
{ "resource": "" }
c161534
train
// Size implements the Measurable interface.
{ "resource": "" }
c161535
train
// NewLogin creates a Login engine. username is optional. // deviceType should be libkb.DeviceTypeDesktop or // libkb.DeviceTypeMobile.
{ "resource": "" }
c161536
train
// notProvisionedErr will return true if err signifies that login // failed because this device has not yet been provisioned.
{ "resource": "" }
c161537
train
// NewRandomEvictedCache returns a Cache that uses random eviction strategy. // The cache will have a capacity of maxBytes bytes. A zero-byte capacity cache // is valid. // // Internally we store a memoizing wrapper for the raw Measurable to avoid // unnecessarily frequent size calculations. // // Note that memoizing s...
{ "resource": "" }
c161538
train
// NewLRUEvictedCache returns a Cache that uses LRU eviction strategy. // The cache will have a capacity of maxBytes bytes. A zero-byte capacity cache // is valid. // // Internally we store a memoizing wrapper for the raw Measurable to avoid // unnecessarily frequent size calculations. // // Note that this means once t...
{ "resource": "" }
c161539
train
// NewArchiveRelTimeFile returns a special read file that contains a // by-revision directory name that corresponds to the given relative // time string for the given folder.
{ "resource": "" }
c161540
train
// setDropFlag puts a flag into the drop channel if the channel is // empty. This is to signal that external log messages have been // dropped.
{ "resource": "" }
c161541
train
// checkDropFlag checks to see if anything is in the drop channel. // If there is a flag in there, it will warn client that log // messages were dropped.
{ "resource": "" }
c161542
train
// Get convs. May return fewer or no conversations.
{ "resource": "" }
c161543
train
// Returns an array of information about accounts configured on the local // machine. Currently configured accounts are defined as those that have stored // secrets, but this definition may be expanded in the future.
{ "resource": "" }
c161544
train
// Performs login. deviceType should be libkb.DeviceTypeDesktop // or libkb.DeviceTypeMobile. username is optional. If the current // device isn't provisioned, this function will provision it.
{ "resource": "" }
c161545
train
// Login a user only if the user is on a provisioned device. Username is optional. // If noPassphrasePrompt is set, then only a stored secret will be used to unlock // the device keys.
{ "resource": "" }
c161546
train
// Login and unlock by // - trying unlocked device keys if available // - prompting for a paper key and using that
{ "resource": "" }
c161547
train
// PaperKey generates paper backup keys for restoring an account. // It calls login_ui.displayPaperKeyPhrase with the phrase.
{ "resource": "" }
c161548
train
// paperKeySubmit checks that paperPhrase is a valid paper key // for the logged in user, caches the keys, and sends a notification.
{ "resource": "" }
c161549
train
// Unlock restores access to local key store by priming passphrase stream cache.
{ "resource": "" }
c161550
train
// loginOneshot allows a service to have a "onetime login", without // provisioning a device. It bootstraps credentials with the given // paperkey
{ "resource": "" }
c161551
train
// NetworkOptions returns stellar1.NetworkOptions that is less than 1 hour old.
{ "resource": "" }
c161552
train
// ParseStellarSecretKey parses a secret key and returns it and the AccountID it is the master key of. // Returns helpful error messages than can be shown to users.
{ "resource": "" }
c161553
train
// ParseStellarAccountID parses an account ID and returns it. // Returns helpful error messages than can be shown to users.
{ "resource": "" }
c161554
train
// AutoFork? Standalone? ClientServer? Brew service? This function deals with the // various run configurations that we can run in.
{ "resource": "" }
c161555
train
// configurePath sends the client's PATH to the service.
{ "resource": "" }
c161556
train
// stripFieldsFromAppStatusError is an error prettifier. By default, AppStatusErrors print optional // fields that were problematic. But they make for pretty ugly error messages spit back to the user. // So strip that out, but still leave in an error-code integer, since those are quite helpful.
{ "resource": "" }
c161557
train
// NewKeyServerMemory returns a KeyServerLocal with an in-memory leveldb // instance.
{ "resource": "" }
c161558
train
// NewKeyServerDir constructs a new KeyServerLocal that stores its // data in the given directory.
{ "resource": "" }
c161559
train
// NewKeyServerTempDir constructs a new KeyServerLocal that stores its // data in a temp directory which is cleaned up on shutdown.
{ "resource": "" }
c161560
train
// GetTLFCryptKeyServerHalf implements the KeyServer interface for // KeyServerLocal.
{ "resource": "" }
c161561
train
// PutTLFCryptKeyServerHalves implements the KeyServer interface for // KeyServerLocal.
{ "resource": "" }
c161562
train
// DeleteTLFCryptKeyServerHalf implements the KeyServer interface for // KeyServerLocal.
{ "resource": "" }
c161563
train
// CopyWithConfigAndLogger copies a key server but swaps the config // and the logger.
{ "resource": "" }
c161564
train
// Shutdown implements the KeyServer interface for KeyServerLocal.
{ "resource": "" }
c161565
train
// getPermissions returns the permissions that username has on p. This method // should only be called on the root aclCheckerV1.
{ "resource": "" }
c161566
train
// AddPlatformFlags adds platform-specific flags to the given FlagSet // and returns a PlatformParams object that will be filled in when the // given FlagSet is parsed.
{ "resource": "" }
c161567
train
// If there was an error importing a gpg key into the local // keyring, tell the user and offer to switch to GPG signing // with this key. Return true to switch to GPG signing, // false to abort provisioning.
{ "resource": "" }
c161568
train
// DisplaySecretExchanged is called when the kex2 secret has successfully been exchanged by the two // devices.
{ "resource": "" }
c161569
train
// PromptNewDeviceName is called when the device provisioning process needs a name for the new device. // To help the clients not send a duplicate name, existingDevices is populated with the current device // names for the user. If the device name returned to the service is invalid or already // taken, it will call th...
{ "resource": "" }
c161570
train
// ProvisioneeSuccess is called on provisionee when it is successfully provisioned.
{ "resource": "" }
c161571
train
// ProvisionerSuccess is called on provisioner when it successfully provisions another device.
{ "resource": "" }
c161572
train
// Decode data into out, but make sure that all bytes in data are // used.
{ "resource": "" }
c161573
train
// MakePseudonym makes a TLF pseudonym from the given input.
{ "resource": "" }
c161574
train
// GetTlfPseudonyms fetches info for a list of pseudonyms. // The output structs are returned in the order corresponding to the inputs. // The top-level error is filled if the entire request fails. // The each-struct errors may be filled for per-pseudonym errors.
{ "resource": "" }
c161575
train
// MakePseudonym makes a key pseudonym from the given input.
{ "resource": "" }
c161576
train
// MakeAndPostKeyPseudonyms fills the KeyPseudonym field of each of the pnymInfos with the appropriate KeyPseudonym.
{ "resource": "" }
c161577
train
// GetKeyPseudonyms fetches info for a list of pseudonyms. // The output structs are returned in the order corresponding to the inputs. // The top-level error is filled if the entire request fails. // The error in each of the returned structs may be filled for per-pseudonym errors.
{ "resource": "" }
c161578
train
// RandomPseudonymNonce returns a random nonce, which is used as an HMAC key.
{ "resource": "" }
c161579
train
// GetMySecretKey uses ActiveDevice to get a secret key for the current user. // // It used to have functionality to load the user and prompt for a passphrase to // unlock the keys, but that is outdated now. Either you are logged in and // have your device keys cached, or you aren't. // // If the key isn't found in th...
{ "resource": "" }
c161580
train
// SignED25519 signs the given message with the current user's private // signing key.
{ "resource": "" }
c161581
train
// SignED25519ForKBFS signs the given message with the current user's private // signing key on behalf of KBFS.
{ "resource": "" }
c161582
train
// SignToString signs the given message with the current user's private // signing key and outputs the serialized NaclSigInfo string.
{ "resource": "" }
c161583
train
// UnboxBytes32 decrypts the given message with the current user's // private encryption key and the given nonce and peer public key.
{ "resource": "" }
c161584
train
// check cached keys for arg.Bundles match.
{ "resource": "" }
c161585
train
// check device key for arg.Bundles match.
{ "resource": "" }
c161586
train
// check all the user's paper keys for arg.Bundles match
{ "resource": "" }
c161587
train
// NewCrypto returns a Crypto object.
{ "resource": "" }
c161588
train
// Box encrypts the plaintext with the most current key for the given team. It yields a NaCl // ciphertext and nonce, and also says which generation of the key it used.
{ "resource": "" }
c161589
train
// Unbox decrypts the given ciphertext with the given nonce, for the given generation of the // given team. Can return an error. Will return a non-nil plaintext on success.
{ "resource": "" }
c161590
train
// NewBackgroundTask creates a BackgroundTask engine.
{ "resource": "" }
c161591
train
// Name is the unique engine name.
{ "resource": "" }
c161592
train
// MarshalBinary implements the encoding.BinaryMarshaler interface for BranchID.
{ "resource": "" }
c161593
train
// UnmarshalBinary implements the encoding.BinaryUnmarshaler interface // for BranchID.
{ "resource": "" }
c161594
train
// ParseBranchID parses a hex encoded BranchID. Returns NullBranchID // and an InvalidBranchID on falire.
{ "resource": "" }
c161595
train
// MakeRandomBranchID generates a per-device branch ID using a CSPRNG. // It will not return LocalSquashBranchID or NullBranchID.
{ "resource": "" }
c161596
train
// FakeBranchID creates a fake branch ID from the given byte.
{ "resource": "" }
c161597
train
// NewRetryAPIArg creates an APIArg that will cause the http client // to use a much smaller request timeout, but retry the request // several times, backing off on the timeout each time.
{ "resource": "" }
c161598
train
// ShouldCreate asks the server whether to create this user's initial wallet.
{ "resource": "" }
c161599
train
// Post a bundle to the server with a chainlink.
{ "resource": "" }