Versions in this module Expand all Collapse all v1 v1.0.0 May 25, 2018 Changes in this version + type BrainKey struct + AccessTokenProvider sdk.AccessTokenProvider + Client *Client + Crypto *pythia.Pythia + KeypairType virgil_crypto_go.KeyType + func NewBrainKey(params *BrainKeyContext) *BrainKey + func (b *BrainKey) GenerateKeypair(password string, brainKeyId string) (keypair cryptoapi.Keypair, err error) + type BrainKeyContext struct + Client *Client + KeypairType virgil_crypto_go.KeyType + Provider sdk.AccessTokenProvider + Pythia *pythia.Pythia + func CreateBrainKeyContext(accessTokenProvider sdk.AccessTokenProvider) (*BrainKeyContext, error) + type BreachProofPassword struct + DeblindedPassword []byte + Salt []byte + Version uint + type Client struct + HttpClient common.HttpClient + ServiceURL string + VirgilHttpClient *common.VirgilHttpClient + func NewClient(serviceURL string) *Client + func (c *Client) GenerateSeed(blindedPassword []byte, brainKeyId string, token string) ([]byte, error) + func (c *Client) TransformPassword(salt, blindedPassword []byte, version uint, includeProof bool, token string) (*PasswordResp, error) + type Context struct + Client *Client + Crypto *pythia.Pythia + ProofKeys ProofKeys + Provider sdk.AccessTokenProvider + func CreateContext(apiKey, apiKeyID, appID string, proofKeys ...string) (*Context, error) + type PasswordReq struct + BlindedPassword []byte + IncludeProof bool + UserId []byte + Version uint + type PasswordResp struct + Proof *Proof + TransformedPassword []byte + Version uint + type Proof struct + ValueC []byte + ValueU []byte + type ProofKey struct + Key []byte + Version uint + type ProofKeys []*ProofKey + func NewProofKeys(proofKeys ...string) (ProofKeys, error) + func (t ProofKeys) Get(version uint) ([]byte, error) + func (t ProofKeys) GetCurrent() (*ProofKey, error) + type Protocol struct + AccessTokenProvider sdk.AccessTokenProvider + Client *Client + ProofKeys ProofKeys + Pythia *pythia.Pythia + func New(params *Context) *Protocol + func (p *Protocol) CreateBreachProofPassword(password string) (*BreachProofPassword, error) + func (p *Protocol) UpdateBreachProofPassword(updateToken string, pwd *BreachProofPassword) (*BreachProofPassword, error) + func (p *Protocol) VerifyBreachProofPassword(password string, pwd *BreachProofPassword, prove bool) (err error) + type SeedReq struct + BlindedPassword []byte + BrainKeyId string + type SeedResp struct + Seed []byte